2015-07-02 16:38:17 +02:00
|
|
|
{ stdenv, fetchurl, p7zip }:
|
2018-09-17 16:04:51 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "win-virtio";
|
2018-09-17 16:04:51 +02:00
|
|
|
version = "0.1.141-1";
|
2015-07-02 16:38:17 +02:00
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-09-17 16:04:51 +02:00
|
|
|
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
|
|
|
|
sha256 = "0mn5gcgb9dk59nrw9scdza628yiji4vdkxmixikn9v02kgwnkja3";
|
2015-07-02 16:38:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
${p7zip}/bin/7z x $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
let
|
|
|
|
copy = arch: version: {input, output}: "mkdir -p $out/${arch}/${output}; cp ${input}/${version}/${arch}/* $out/${arch}/${output}/.";
|
|
|
|
virtio = [{input="Balloon"; output="vioballoon";}
|
|
|
|
{input="NetKVM"; output="vionet";}
|
|
|
|
{input="vioscsi"; output="vioscsi";}
|
|
|
|
{input="vioserial"; output="vioserial";}
|
|
|
|
{input="viostor"; output="viostor";}
|
|
|
|
{input="viorng"; output="viorng";}
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.lib.concatStringsSep "\n" ((map (copy "amd64" "w8.1") virtio) ++ (map (copy "x86" "w8.1") virtio));
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Windows VirtIO Drivers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://fedoraproject.org/wiki/Windows_Virtio_Drivers";
|
2015-07-02 16:38:17 +02:00
|
|
|
maintainers = [ maintainers.tstrobel ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|