ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / vi / virtio-win / package.nix
blob77cc8860e38799f2577927fdc861e64e690f2bb1
1 { lib, stdenv, fetchurl, libarchive }:
3 stdenv.mkDerivation rec {
4   pname = "virtio-win";
5   version = "0.1.262-2";
7   src = fetchurl {
8     url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
9     hash = "sha256-vcKtFyegi22KWdQOES2TD1Ois1S974WQOrqtiWIU8KM=";
10   };
12   nativeBuildInputs = [
13     libarchive
14   ];
16   unpackCmd = "mkdir source; bsdtar -xf $curSrc -C source";
18   installPhase = ''
19     runHook preInstall
21     mkdir -p $out
22     cp -R ./. $out/
24     runHook postInstall
25   '';
27   passthru.updateScript = ./update.sh;
29   meta = with lib; {
30     description = "Windows VirtIO Drivers";
31     homepage = "https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html";
32     changelog = "https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG";
33     license = [ licenses.bsd3 ];
34     maintainers = with maintainers; [ anthonyroussel ];
35     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
36     platforms = platforms.linux;
37   };