uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "win-pvdrivers";
|
||||
version = "unstable-2015-07-01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ts468";
|
||||
repo = "win-pvdrivers";
|
||||
rev = "3054d645fc3ee182bea3e97ff01869f01cc3637a";
|
||||
sha256 = "6232ca2b7c9af874abbcb9262faf2c74c819727ed2eb64599c790879df535106";
|
||||
};
|
||||
|
||||
buildPhase =
|
||||
let unpack = x: "tar xf $src/${x}.tar; mkdir -p x86/${x} amd64/${x}; cp ${x}/x86/* x86/${x}/.; cp ${x}/x64/* amd64/${x}/.";
|
||||
in lib.concatStringsSep "\n" (map unpack [ "xenbus" "xeniface" "xenvif" "xennet" "xenvbd" ]);
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r x86 $out/.
|
||||
cp -r amd64 $out/.
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Xen Subproject: Windows PV Driver";
|
||||
homepage = "http://xenproject.org/downloads/windows-pv-drivers.html";
|
||||
maintainers = with maintainers; [ tstrobel ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
38
pkgs/applications/virtualization/driver/win-qemu/default.nix
Normal file
38
pkgs/applications/virtualization/driver/win-qemu/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchurl, p7zip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "win-qemu";
|
||||
version = "0.1.105-1";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
|
||||
sha256 = "065gz7s77y0q9kfqbr27451sr28rm9azpi88sqjkfph8c6r8q3wc";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
${p7zip}/bin/7z x $src
|
||||
'';
|
||||
|
||||
installPhase =
|
||||
let
|
||||
copy_pvpanic = arch: version: "mkdir -p $out/${arch}/qemupanic; cp pvpanic/${version}/${arch}/* $out/${arch}/qemupanic/. \n";
|
||||
copy_pciserial = arch: "mkdir -p $out/${arch}/qemupciserial; cp qemupciserial/* $out/${arch}/qemupciserial/. \n";
|
||||
copy_agent = arch: ''
|
||||
mkdir -p $out/${arch}/qemuagent
|
||||
cp guest-agent/${if arch=="x86" then "qemu-ga-x86.msi" else "qemu-ga-x64.msi"} $out/${arch}/qemuagent/qemu-guest-agent.msi
|
||||
(cd $out/${arch}/qemuagent; ${p7zip}/bin/7z x qemu-guest-agent.msi; rm qemu-guest-agent.msi)
|
||||
'';
|
||||
copy = arch: version: (copy_pvpanic arch version) + (copy_pciserial arch) + (copy_agent arch);
|
||||
in
|
||||
(copy "amd64" "w8.1") + (copy "x86" "w8.1");
|
||||
|
||||
meta = with lib; {
|
||||
description = "Windows QEMU Drivers";
|
||||
homepage = "https://fedoraproject.org/wiki/Windows_Virtio_Drivers";
|
||||
maintainers = [ maintainers.tstrobel ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchurl, p7zip }:
|
||||
|
||||
let
|
||||
src_x86 = fetchurl {
|
||||
url = "http://apt.univention.de/download/addons/gplpv-drivers/gplpv_Vista2008x32_signed_0.11.0.373.msi";
|
||||
sha256 = "04r11xw8ikjmcdhrsk878c86g0d0pvras5arsas3zs6dhgjykqap";
|
||||
};
|
||||
|
||||
src_amd64 = fetchurl {
|
||||
url = "http://apt.univention.de/download/addons/gplpv-drivers/gplpv_Vista2008x64_signed_0.11.0.373.msi";
|
||||
sha256 = "00k628mg9b039p8lmg2l9n81dr15svy70p3m6xmq6f0frmci38ph";
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "gplpv";
|
||||
version = "0.11.0.373";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p x86
|
||||
(cd x86; ${p7zip}/bin/7z e ${src_x86})
|
||||
mkdir -p amd64
|
||||
(cd amd64; ${p7zip}/bin/7z e ${src_amd64})
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/x86 $out/amd64
|
||||
cp x86/* $out/x86/.
|
||||
cp amd64/* $out/amd64/.
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
A collection of open source Window PV drivers that allow
|
||||
Windows to be para-virtualized.
|
||||
The drivers are signed by Univention with a Software Publishers
|
||||
Certificate obtained from the VeriSign CA.
|
||||
'';
|
||||
homepage = "http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers";
|
||||
maintainers = [ maintainers.tstrobel ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
{ lib, stdenv, fetchurl, p7zip, win-virtio }:
|
||||
|
||||
let
|
||||
version_usbdk = "1.0.22";
|
||||
src_usbdk_x86 = fetchurl {
|
||||
url = "https://www.spice-space.org/download/windows/UsbDk/UsbDk_${version_usbdk}_x86.msi";
|
||||
sha256 = "1vr8kv37wz6p3xhawyhwxv0g7y89igkvx30zwmyvlgnkv3h5i317";
|
||||
};
|
||||
src_usbdk_amd64 = fetchurl {
|
||||
url = "https://www.spice-space.org/download/windows/UsbDk/UsbDk_${version_usbdk}_x64.msi";
|
||||
sha256 = "19b64jv6pfimd54y0pphbs1xh25z41bbblz64ih6ag71w6azdxli";
|
||||
};
|
||||
|
||||
version_qxlwddm = "0.21";
|
||||
src_qxlwddm = fetchurl {
|
||||
url = "https://www.spice-space.org/download/windows/qxl-wddm-dod/qxl-wddm-dod-${version_qxlwddm}/spice-qxl-wddm-dod-${version_qxlwddm}.zip";
|
||||
sha256 = "0yjq54gxw3lcfghsfs4fzwipa9sgx5b1sn3fss6r5dm7pdvjp20q";
|
||||
};
|
||||
|
||||
version_vdagent = "0.10.0";
|
||||
src_vdagent_x86 = fetchurl {
|
||||
url = "https://www.spice-space.org/download/windows/vdagent/vdagent-win-${version_vdagent}/vdagent-win-${version_vdagent}-x86.zip";
|
||||
sha256 = "142c0lqsqry9dclji2225ppclkn13gbjl1j0pzx8fp6hgy4i02c1";
|
||||
};
|
||||
src_vdagent_amd64 = fetchurl {
|
||||
url = "https://www.spice-space.org/download/windows/vdagent/vdagent-win-${version_vdagent}/vdagent-win-${version_vdagent}-x64.zip";
|
||||
sha256 = "1x2wcvld531kv17a4ks7sh67nhzxzv7nkhpx391n5vj6d12i8g3i";
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
# use version number of qxlwddm as qxlwddm is the most important component
|
||||
pname = "win-spice";
|
||||
version = version_qxlwddm;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
mkdir -p usbdk/x86 usbdk/amd64
|
||||
(cd usbdk/x86; ${p7zip}/bin/7z x -y ${src_usbdk_x86})
|
||||
(cd usbdk/amd64; ${p7zip}/bin/7z x -y ${src_usbdk_amd64})
|
||||
|
||||
mkdir -p vdagent/x86 vdagent/amd64
|
||||
(cd vdagent/x86; ${p7zip}/bin/7z x -y ${src_vdagent_x86}; mv vdagent-win-${version_vdagent}-x86/* .; rm -r vdagent-win-${version_vdagent}-x86)
|
||||
(cd vdagent/amd64; ${p7zip}/bin/7z x -y ${src_vdagent_amd64}; mv vdagent-win-${version_vdagent}-x64/* .; rm -r vdagent-win-${version_vdagent}-x64)
|
||||
|
||||
mkdir -p qxlwddm
|
||||
(cd qxlwddm; ${p7zip}/bin/7z x -y ${src_qxlwddm}; cd w10)
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase =
|
||||
let
|
||||
copy_qxl = arch: version: "mkdir -p $out/${arch}/qxl; cp qxlwddm/${version}/${arch}/* $out/${arch}/qxl/. \n";
|
||||
copy_usbdk = arch: "mkdir -p $out/${arch}/usbdk; cp usbdk/${arch}/* $out/${arch}/usbdk/. \n";
|
||||
copy_vdagent = arch: "mkdir -p $out/${arch}/vdagent; cp vdagent/${arch}/* $out/${arch}/vdagent/. \n";
|
||||
# SPICE needs vioserial
|
||||
# TODO: Link windows version in win-spice (here) to version used in win-virtio.
|
||||
# That way it would never matter whether vioserial is installed from win-virtio or win-spice.
|
||||
copy_vioserial = arch: "mkdir -p $out/${arch}/vioserial; cp ${win-virtio}/${arch}/vioserial/* $out/${arch}/vioserial/. \n";
|
||||
copy = arch: version: (copy_qxl arch version) + (copy_usbdk arch) + (copy_vdagent arch) + (copy_vioserial arch);
|
||||
in ''
|
||||
runHook preInstall
|
||||
${(copy "amd64" "w10") + (copy "x86" "w10")}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Windows SPICE Drivers";
|
||||
homepage = "https://www.spice-space.org/";
|
||||
license = [ licenses.asl20 ]; # See https://github.com/vrozenfe/qxl-dod
|
||||
maintainers = [ maintainers.tstrobel ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl, p7zip }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "win-virtio";
|
||||
version = "0.1.196-1";
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso";
|
||||
sha256 = "1zj53xybygps66m3v5kzi61vqy987zp6bfgk0qin9pja68qq75vx";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
${p7zip}/bin/7z x $src
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
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 ''
|
||||
runHook preInstall
|
||||
${lib.concatStringsSep "\n" ((map (copy "amd64" "w10") virtio) ++ (map (copy "x86" "w10") virtio))}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Windows VirtIO Drivers";
|
||||
homepage = "https://fedoraproject.org/wiki/Windows_Virtio_Drivers";
|
||||
license = [ licenses.bsd3 ];
|
||||
maintainers = [ maintainers.tstrobel ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue