switch from git submodules to flake inputs

This commit is contained in:
Jörg Thalheim 2025-11-28 16:19:52 +01:00 committed by Val Packett
parent 6e8e4b9fda
commit 57b8ae3424
9 changed files with 86 additions and 35 deletions

View file

@ -1,4 +1,4 @@
{ libkrun, libkrunfw, rustPlatform, variant ? null, ... }:
{ libkrun, libkrunfw, libkrun-src, rustPlatform, variant ? null, ... }:
let
libkrunfw' = libkrunfw.override { inherit variant; };
@ -11,9 +11,8 @@ in
inherit variant;
libkrunfw = libkrunfw';
}).overrideAttrs (old: {
src = ../../libkrun;
src = libkrun-src;
cargoDeps = rustPlatform.importCargoLock {
lockFile = ../../libkrun/Cargo.lock;
lockFile = "${libkrun-src}/Cargo.lock";
};
# mesonFlags = [ (lib.mesonOption "decoders" "gles,vulkan,composer") ]; # no magma(?)
})