Merge pull request #153592 from kraem/kraem/revert_1511e72
Revert "nixos/documentation: avoid copying nixpkgs subpaths"
This commit is contained in:
commit
e0acc85451
1 changed files with 3 additions and 7 deletions
|
@ -67,15 +67,11 @@ let
|
||||||
(t == "directory" -> baseNameOf n != "tests")
|
(t == "directory" -> baseNameOf n != "tests")
|
||||||
&& (t == "file" -> hasSuffix ".nix" n)
|
&& (t == "file" -> hasSuffix ".nix" n)
|
||||||
);
|
);
|
||||||
pull = dir:
|
|
||||||
if isStorePath pkgs.path
|
|
||||||
then "${builtins.storePath pkgs.path}/${dir}"
|
|
||||||
else filter "${toString pkgs.path}/${dir}";
|
|
||||||
in
|
in
|
||||||
pkgs.runCommand "lazy-options.json" {
|
pkgs.runCommand "lazy-options.json" {
|
||||||
libPath = pull "lib";
|
libPath = filter "${toString pkgs.path}/lib";
|
||||||
pkgsLibPath = pull "pkgs/pkgs-lib";
|
pkgsLibPath = filter "${toString pkgs.path}/pkgs/pkgs-lib";
|
||||||
nixosPath = pull "nixos";
|
nixosPath = filter "${toString pkgs.path}/nixos";
|
||||||
modules = map (p: ''"${removePrefix "${modulesPath}/" (toString p)}"'') docModules.lazy;
|
modules = map (p: ''"${removePrefix "${modulesPath}/" (toString p)}"'') docModules.lazy;
|
||||||
} ''
|
} ''
|
||||||
export NIX_STORE_DIR=$TMPDIR/store
|
export NIX_STORE_DIR=$TMPDIR/store
|
||||||
|
|
Loading…
Reference in a new issue