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