diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-12-18 23:35:29 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-12-18 23:36:40 +0100 |
commit | 26f704b545838084e334f37d434a648c0c564ffd (patch) | |
tree | 116e9689e8af6d6ee7e7c3d23e63dc7aa2cc8f97 /nixos/modules/misc | |
parent | 76672661b9b8cf731e2cd87984f701937e8df655 (diff) | |
download | nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.tar nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.tar.gz nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.tar.bz2 nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.tar.lz nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.tar.xz nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.tar.zst nixpkgs-26f704b545838084e334f37d434a648c0c564ffd.zip |
treewide: use nativeBuildInputs with runCommand instead of inlining
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/documentation.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix index 64a8f7846b4..1557bf4bd3e 100644 --- a/nixos/modules/misc/documentation.nix +++ b/nixos/modules/misc/documentation.nix @@ -77,10 +77,11 @@ 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 - ${pkgs.buildPackages.nix}/bin/nix-instantiate \ + nix-instantiate \ --show-trace \ --eval --json --strict \ --argstr libPath "$libPath" \ |