mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 15:26:03 +03:00
Revert "pkgs.path: Avoid copying when used via flake"
This reverts commit 813f9da8ab
.
This commit is contained in:
parent
6b9ef93b98
commit
4acad300ac
@ -62,7 +62,7 @@
|
||||
}).nixos.manual.x86_64-linux;
|
||||
};
|
||||
|
||||
legacyPackages = forAllSystems (system: import ./. { inherit system; config.path = self.outPath; });
|
||||
legacyPackages = forAllSystems (system: import ./. { inherit system; });
|
||||
|
||||
nixosModules = {
|
||||
notDetected = import ./nixos/modules/installer/scan/not-detected.nix;
|
||||
|
@ -67,7 +67,7 @@ with pkgs;
|
||||
clangStdenvNoLibs = mkStdenvNoLibs clangStdenv;
|
||||
|
||||
# For convenience, allow callers to get the path to Nixpkgs.
|
||||
path = config.path;
|
||||
path = ../..;
|
||||
|
||||
|
||||
### Helper functions.
|
||||
|
@ -32,20 +32,6 @@ let
|
||||
feature = "run <literal>checkPhase</literal> by default";
|
||||
};
|
||||
|
||||
path = mkOption {
|
||||
type = types.path;
|
||||
default = ../..;
|
||||
defaultText = lib.literalDocBook "a path expression";
|
||||
internal = true;
|
||||
description = ''
|
||||
A reference to Nixpkgs' own sources.
|
||||
|
||||
This is overridable in order to avoid copying sources unnecessarily,
|
||||
as a path expression that references a store path will not short-circuit
|
||||
to the store path itself, but copy the store path instead.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
in {
|
||||
|
Loading…
Reference in New Issue
Block a user