flake.nix: extract packages/devshells/modules into smaller files

This commit is contained in:
Jörg Thalheim 2025-11-03 17:14:28 +01:00
parent 6f7f3f2461
commit 505e85b9c5
9 changed files with 360 additions and 323 deletions

View file

@ -0,0 +1,19 @@
{ libkrun, libkrunfw, rustPlatform, variant ? null, ... }:
let
libkrunfw' = libkrunfw.override { inherit variant; };
in
(libkrun.override {
withBlk = true;
withGpu = true;
withSound = true;
withNet = true;
inherit variant;
libkrunfw = libkrunfw';
}).overrideAttrs (old: {
src = ../../libkrun;
cargoDeps = rustPlatform.importCargoLock {
lockFile = ../../libkrun/Cargo.lock;
};
# mesonFlags = [ (lib.mesonOption "decoders" "gles,vulkan,composer") ]; # no magma(?)
})