win-spice: fix build

This commit is contained in:
Nick Cao 2023-05-19 00:48:21 +08:00
parent 203c6beae7
commit dfcff674e0
No known key found for this signature in database

View File

@ -60,8 +60,8 @@ stdenv.mkDerivation {
# 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);
copy_vioserial = arch: version: "mkdir -p $out/${arch}/vioserial; cp ${win-virtio}/vioserial/${version}/${arch}/* $out/${arch}/vioserial/. \n";
copy = arch: version: (copy_qxl arch version) + (copy_usbdk arch) + (copy_vdagent arch) + (copy_vioserial arch version);
in ''
runHook preInstall
${(copy "amd64" "w10") + (copy "x86" "w10")}