mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, libarchive }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "virtio-win";
|
|
version = "0.1.262-2";
|
|
|
|
src = fetchurl {
|
|
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
|
|
hash = "sha256-vcKtFyegi22KWdQOES2TD1Ois1S974WQOrqtiWIU8KM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
libarchive
|
|
];
|
|
|
|
unpackCmd = "mkdir source; bsdtar -xf $curSrc -C source";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
cp -R ./. $out/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = with lib; {
|
|
description = "Windows VirtIO Drivers";
|
|
homepage = "https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html";
|
|
changelog = "https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG";
|
|
license = [ licenses.bsd3 ];
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|