2023-05-24 13:37:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, libarchive }:
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "virtio-win";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.1.240-1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-69SCWGaPf3jgJu0nbCip0Z2D4CD/oICtaZENyGu8vMY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
libarchive
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackCmd = "mkdir source; bsdtar -xf $curSrc -C source";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -R ./. $out/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Windows VirtIO Drivers";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = [ licenses.bsd3 ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|