nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 libarchive,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "virtio-win";
10 version = "0.1.271-1";
11
12 src = fetchurl {
13 url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
14 hash = "sha256-u+YWathqSQyu+tQ4/viqSUkmywobN/oSEpJc/YFlZCk=";
15 };
16
17 nativeBuildInputs = [
18 libarchive
19 ];
20
21 unpackCmd = "mkdir source; bsdtar -xf $curSrc -C source";
22
23 installPhase = ''
24 runHook preInstall
25
26 mkdir -p $out
27 cp -R ./. $out/
28
29 runHook postInstall
30 '';
31
32 passthru.updateScript = ./update.sh;
33
34 meta = with lib; {
35 description = "Windows VirtIO Drivers";
36 homepage = "https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html";
37 changelog = "https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG";
38 license = [ licenses.bsd3 ];
39 maintainers = with maintainers; [ anthonyroussel ];
40 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
41 platforms = platforms.linux;
42 };
43}