lib: pass stdenv to qemu-common not pkgs

This commit is contained in:
Michael Hoang
2026-01-20 12:57:44 +00:00
committed by Michael Hoang
parent 5ae05d98d2
commit ec90d55ff3
+7 -2
View File
@@ -6,8 +6,13 @@
qemu-common ? import <nixpkgs/nixos/lib/qemu-common.nix>,
}:
let
# qemu-common is a function that takes { lib, pkgs } and returns QEMU utilities
qemu-common-lib = pkgs: qemu-common { inherit lib pkgs; };
# qemu-common is a function that takes { lib, stdenv } and returns QEMU utilities
qemu-common-lib =
pkgs:
qemu-common {
inherit lib;
inherit (pkgs) stdenv;
};
outputs = import ../default.nix { inherit lib diskoLib; };
diskoLib = {