{ libkrun, libkrunfw, # libkrun-src, # rustPlatform, variant ? null, ... }: let libkrunfw' = libkrunfw.override { inherit variant; }; libkrun' = libkrun.override { withBlk = true; withNet = true; withGpu = true; # --- stick to the override used in nixpkgs' muvm package to reuse nixos.org cache when not overriding src --- # withSound = true; # not for pipewire forwarding, anyway # withTimesync = true; # why not?.. # --------- inherit variant; libkrunfw = libkrunfw'; }; in libkrun' # libkrun'.overrideAttrs (old: { # src = libkrun-src; # cargoDeps = rustPlatform.importCargoLock { # lockFile = "${libkrun-src}/Cargo.lock"; # }; # })