mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #277335 from adisbladis/buildenv-hoist-instantiation
build-support/buildenv: Hoist builder instantiation
This commit is contained in:
commit
dbc85690de
@ -3,6 +3,13 @@
|
|||||||
|
|
||||||
{ buildPackages, runCommand, lib, substituteAll }:
|
{ buildPackages, runCommand, lib, substituteAll }:
|
||||||
|
|
||||||
|
let
|
||||||
|
builder = substituteAll {
|
||||||
|
src = ./builder.pl;
|
||||||
|
inherit (builtins) storeDir;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
lib.makeOverridable
|
lib.makeOverridable
|
||||||
({ name
|
({ name
|
||||||
|
|
||||||
@ -43,13 +50,6 @@ lib.makeOverridable
|
|||||||
, meta ? {}
|
, meta ? {}
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
builder = substituteAll {
|
|
||||||
src = ./builder.pl;
|
|
||||||
inherit (builtins) storeDir;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
runCommand name
|
runCommand name
|
||||||
rec {
|
rec {
|
||||||
inherit manifest ignoreCollisions checkCollisionContents passthru
|
inherit manifest ignoreCollisions checkCollisionContents passthru
|
||||||
|
Loading…
Reference in New Issue
Block a user