clan-munix/packages/libkrun/default.nix
Val Packett 09f1eb76de nix: comment out libkrun(fw) source overrides
As we're currently using entirely upstream ones right now. Let's reuse
the cache.nixos.org builds.
2026-02-07 01:24:44 -03:00

30 lines
701 B
Nix

{
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";
# };
# })