2023-05-13 18:05:29 +01:00
|
|
|
{ lib, stdenv, fetchurl, libarchive }:
|
2023-08-16 21:14:57 +01:00
|
|
|
|
2018-09-17 15:04:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2023-10-17 22:38:15 +01:00
|
|
|
pname = "virtio-win";
|
2024-08-09 09:18:33 +01:00
|
|
|
version = "0.1.262-2";
|
2015-07-02 15:38:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-09-17 15:04:51 +01:00
|
|
|
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
|
2024-08-09 09:18:33 +01:00
|
|
|
hash = "sha256-vcKtFyegi22KWdQOES2TD1Ois1S974WQOrqtiWIU8KM=";
|
2015-07-02 15:38:17 +01:00
|
|
|
};
|
|
|
|
|
2023-05-13 18:05:29 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
libarchive
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackCmd = "mkdir source; bsdtar -xf $curSrc -C source";
|
2015-07-02 15:38:17 +01:00
|
|
|
|
2023-05-13 18:05:29 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -R ./. $out/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2015-07-02 15:38:17 +01:00
|
|
|
|
2023-08-16 21:38:41 +01:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-07-02 15:38:17 +01:00
|
|
|
description = "Windows VirtIO Drivers";
|
2023-05-13 18:05:29 +01:00
|
|
|
homepage = "https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html";
|
2023-08-16 21:14:57 +01:00
|
|
|
changelog = "https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG";
|
2021-07-28 11:34:19 +01:00
|
|
|
license = [ licenses.bsd3 ];
|
2023-08-16 21:14:57 +01:00
|
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2015-07-02 15:38:17 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|