mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
Merge pull request #249608 from anthonyroussel/win-qemu-deprecated
win-qemu: remove
This commit is contained in:
commit
b62649dfb2
@ -1,38 +0,0 @@
|
||||
{ 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 = [ ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
{ lib, stdenv, fetchurl, libarchive }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "win-virtio";
|
||||
version = "0.1.229-1";
|
||||
@ -23,11 +24,15 @@ stdenv.mkDerivation rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Windows VirtIO Drivers";
|
||||
homepage = "https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html";
|
||||
changelog = "https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG";
|
||||
license = [ licenses.bsd3 ];
|
||||
maintainers = [ ];
|
||||
maintainers = with maintainers; [ anthonyroussel ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
12
pkgs/applications/virtualization/driver/win-virtio/update.sh
Executable file
12
pkgs/applications/virtualization/driver/win-virtio/update.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl pup common-updater-scripts
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
version="$(curl -Ls https://fedorapeople.org/groups/virt/virtio-win/repo/latest/ | \
|
||||
pup 'a[href*="virtio-win-"] text{}' | \
|
||||
sed -E 's/virtio-win-(.*)\.noarch\.rpm/\1/' | \
|
||||
sort -Vu | \
|
||||
tail -n1)"
|
||||
|
||||
update-source-version win-virtio "$version"
|
@ -1835,6 +1835,7 @@ mapAliases ({
|
||||
wineStaging = throw "'wineStaging' has been renamed to/replaced by 'wine-staging'"; # Converted to throw 2022-02-22
|
||||
wineUnstable = throw "'wineUnstable' has been renamed to/replaced by 'winePackages.unstable'"; # Converted to throw 2022-02-22
|
||||
wineWayland = wine-wayland;
|
||||
win-qemu = throw "'win-qemu' has been replaced by 'win-virtio'"; # Added 2023-08-16
|
||||
winpdb = throw "winpdb has been removed: abandoned by upstream"; # Added 2022-04-22
|
||||
winusb = throw "'winusb' has been renamed to/replaced by 'woeusb'"; # Converted to throw 2022-02-22
|
||||
wireguard = throw "'wireguard' has been renamed to/replaced by 'wireguard-tools'"; # Converted to throw 2022-02-22
|
||||
|
@ -36493,7 +36493,6 @@ with pkgs;
|
||||
|
||||
win-spice = callPackage ../applications/virtualization/driver/win-spice { };
|
||||
win-virtio = callPackage ../applications/virtualization/driver/win-virtio { };
|
||||
win-qemu = callPackage ../applications/virtualization/driver/win-qemu { };
|
||||
win-pvdrivers = callPackage ../applications/virtualization/driver/win-pvdrivers { };
|
||||
win-signed-gplpv-drivers = callPackage ../applications/virtualization/driver/win-signed-gplpv-drivers { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user