mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 02:38:16 +00:00
build-support/buildenv: Hoist builder instantiation
This commit is contained in:
parent
85fa37afc2
commit
dda7578745
@ -3,6 +3,13 @@
|
||||
|
||||
{ buildPackages, runCommand, lib, substituteAll }:
|
||||
|
||||
let
|
||||
builder = substituteAll {
|
||||
src = ./builder.pl;
|
||||
inherit (builtins) storeDir;
|
||||
};
|
||||
in
|
||||
|
||||
lib.makeOverridable
|
||||
({ name
|
||||
|
||||
@ -43,13 +50,6 @@ lib.makeOverridable
|
||||
, meta ? {}
|
||||
}:
|
||||
|
||||
let
|
||||
builder = substituteAll {
|
||||
src = ./builder.pl;
|
||||
inherit (builtins) storeDir;
|
||||
};
|
||||
in
|
||||
|
||||
runCommand name
|
||||
rec {
|
||||
inherit manifest ignoreCollisions checkCollisionContents passthru
|
||||
|
Loading…
Reference in New Issue
Block a user