Change:
<!-- Note that these are hard requirements --<!-- You can use the "Go to file" functionality on github to find the package Then you can go to the history for this package Find the latest "packagename: oldversion -newversion" commit The "newversion" is the the current version of the package --- <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- name: win-virtio <!-- The current version can be found easily with the same process than above for checking the master branch If an open PR is present for the package, take this version as the current one and link to the PR --current version: 0.1.141-1 desired version: 0.1.204-1 maintainers: Hi Linus, the original maintainer---Thomas Strobel---appears to be unavailable on GH, so I just tagged you since you made the last version update a few years ago. I'll submit a PR for this myself though.
Good catch, and thanks for the ping :) I think 0.1.141-1 was the stable version at the time, not sure if we want stable or latest? I don't really mind either way though.
Why not package both?
Good point. Using stable seems sensible in this case, it looks like very little time has elapsed between them anyway so I doubt there's much value in bumping to latest. I'll stick with that if there's no objection.

Discussion:
{ lib, stdenv, fetchurl, p7zip, win-virtio }: let <ins> version_usbdk = "1.0.22"; </ins> src_usbdk_x86 = fetchurl { <del> url = "https://www.spice-space.org/download/windows/usbdk/UsbDk_1.0.4_x86.msi"; sha256 = "17hv8034wk1xqnanm5jxs4741nl7asps1fdz6lhnrpp6gvj6yg9y"; </del> <ins> url = "https://www.spice-space.org/download/windows/UsbDk/UsbDk_${version_usbdk}_x86.msi"; sha256 = "1vr8kv37wz6p3xhawyhwxv0g7y89igkvx30zwmyvlgnkv3h5i317"; </ins> }; src_usbdk_amd64 = fetchurl { <del> url = "https://www.spice-space.org/download/windows/usbdk/UsbDk_1.0.4_x64.msi"; sha256 = "0alcqsivp33pm8sy0lmkvq7m5yh6mmcmxdl39zjxjra67kw8r2sd"; </del> <ins> url = "https://www.spice-space.org/download/windows/UsbDk/UsbDk_${version_usbdk}_x64.msi"; sha256 = "19b64jv6pfimd54y0pphbs1xh25z41bbblz64ih6ag71w6azdxli"; </ins> }; <ins> version_qxlwddm = "0.21"; </ins> src_qxlwddm = fetchurl { <del> url = "https://people.redhat.com/~vrozenfe/qxlwddm/qxlwddm-0.11.zip"; sha256 = "082zdpbh9i3bq2ds8g33rcbcw390jsm7cqf46rrlx02x8r03dm98"; </del> <ins> 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"; </ins> }; <ins> version_vdagent = "0.10.0"; </ins> src_vdagent_x86 = fetchurl { <del> url = "https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.7.3/vdagent_0_7_3_x86.zip"; sha256 = "0d928g49rf4dl79jmvnqh6g864hp1flw1f0384sfp82himm3bxjs"; </del> <ins> url = "https://www.spice-space.org/download/windows/vdagent/vdagent-win-${version_vdagent}/vdagent-win-${version_vdagent}-x86.zip"; sha256 = "142c0lqsqry9dclji2225ppclkn13gbjl1j0pzx8fp6hgy4i02c1"; </ins> }; src_vdagent_amd64 = fetchurl { <del> url = "https://www.spice-space.org/download/windows/vdagent/vdagent-win-0.7.3/vdagent_0_7_3_x64.zip"; sha256 = "0djmvm66jcmcyhhbjppccbai45nqpva7vyvry6w8nyc0fwi1vm9l"; </del> <ins> url = "https://www.spice-space.org/download/windows/vdagent/vdagent-win-${version_vdagent}/vdagent-win-${version_vdagent}-x64.zip"; sha256 = "1x2wcvld531kv17a4ks7sh67nhzxzv7nkhpx391n5vj6d12i8g3i"; </ins> }; in stdenv.mkDerivation  { # use version number of qxlwddm as qxlwddm is the most important component <del> name = "win-spice-0.11"; version = "0.11"; </del> <ins> pname = "win-spice"; version = version_qxlwddm; </ins> <del> phases = [ "buildPhase" "installPhase" ]; </del> <ins> dontUnpack = true; </ins> buildPhase = '' <ins> runHook preBuild </ins> 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 <del> (cd vdagent/x86; ${p7zip}/bin/7z x -y ${src_vdagent_x86}; mv vdagent_0_7_3_x86/* .; rm -r vdagent_0_7_3_x86) (cd vdagent/amd64; ${p7zip}/bin/7z x -y ${src_vdagent_amd64}; mv vdagent_0_7_3_x64/* .; rm -r vdagent_0_7_3_x64) </del> <ins> (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) </ins> mkdir -p qxlwddm <del> (cd qxlwddm; ${p7zip}/bin/7z x -y ${src_qxlwddm}; mv Win8 w8.1; cd w8.1; mv x64 amd64) ''; </del> <ins> (cd qxlwddm; ${p7zip}/bin/7z x -y ${src_qxlwddm}; cd w10) runHook postBuild ''; </ins> installPhase = let

#       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); <del> in (copy "amd64" "w8.1") + (copy "x86" "w8.1"); </del> <ins> in '' runHook preInstall ${(copy "amd64" "w10") + (copy "x86" "w10")} runHook postInstall ''; </ins> meta = with lib; { description = "Windows SPICE Drivers";

{ lib, stdenv, fetchurl, p7zip }: stdenv.mkDerivation rec { pname = "win-virtio"; <del> version = "0.1.141-1"; </del> <ins> version = "0.1.196-1"; </ins> phases = [ "buildPhase" "installPhase" ]; src = fetchurl { url = "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-${version}/virtio-win.iso"; <del> sha256 = "0mn5gcgb9dk59nrw9scdza628yiji4vdkxmixikn9v02kgwnkja3"; </del> <ins> sha256 = "1zj53xybygps66m3v5kzi61vqy987zp6bfgk0qin9pja68qq75vx"; </ins> }; buildPhase = '' <ins> runHook preBuild </ins> ${p7zip}/bin/7z x $src <del> ''; </del> <ins> runHook postBuild ''; </ins> installPhase = let

{input="viostor"; output="viostor";} {input="viorng"; output="viorng";} ]; <del> in lib.concatStringsSep "n" ((map (copy "amd64" "w8.1") virtio) ++ (map (copy "x86" "w8.1") virtio)); </del> <ins> in '' runHook preInstall ${lib.concatStringsSep "n" ((map (copy "amd64" "w10") virtio) ++ (map (copy "x86" "w10") virtio))} runHook postInstall ''; </ins> meta = with lib; { description = "Windows VirtIO Drivers"; homepage = "https://fedoraproject.org/wiki/Windows_Virtio_Drivers"; <ins> license = [ licenses.bsd3 ]; </ins> maintainers = [ maintainers.tstrobel ]; platforms = platforms.linux; };