nixpkgs/pkgs/applications/virtualization/driver/win-virtio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libarchive }:
stdenv.mkDerivation rec {
pname = "win-virtio";
2023-09-23 02:18:45 +00:00
version = "0.1.240-1";
src = fetchurl {
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
2023-09-23 02:18:45 +00:00
hash = "sha256-69SCWGaPf3jgJu0nbCip0Z2D4CD/oICtaZENyGu8vMY=";
};
nativeBuildInputs = [
libarchive
];
unpackCmd = "mkdir source; bsdtar -xf $curSrc -C source";
installPhase = ''
runHook preInstall
mkdir -p $out
cp -R ./. $out/
runHook postInstall
'';
2023-08-16 20:38:41 +00:00
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;
};
}