Revert "treewide: use nativeBuildInputs with runCommand instead of inlining"

This commit is contained in:
K900
2022-12-26 21:05:35 +03:00
committed by GitHub
parent d72cf7be48
commit 2d3cf010fe
6 changed files with 33 additions and 46 deletions

View File

@@ -77,11 +77,10 @@ let
pkgsLibPath = filter (pkgs.path + "/pkgs/pkgs-lib");
nixosPath = filter (pkgs.path + "/nixos");
modules = map (p: ''"${removePrefix "${modulesPath}/" (toString p)}"'') docModules.lazy;
nativeBuildInputs = with pkgs; [ nix ];
} ''
export NIX_STORE_DIR=$TMPDIR/store
export NIX_STATE_DIR=$TMPDIR/state
nix-instantiate \
${pkgs.buildPackages.nix}/bin/nix-instantiate \
--show-trace \
--eval --json --strict \
--argstr libPath "$libPath" \