diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2017-07-11 22:27:05 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2017-07-12 18:35:23 -0400 |
commit | af479c182ff0391aefd070f5219e79d15d655c75 (patch) | |
tree | bb25533c66e172dc4b4bebc6afb5cd696714f558 /pkgs/top-level/splice.nix | |
parent | 927c4f83d8d62b45229a931d9c295ad9a2d6d541 (diff) |
Added `callPackageWithSelfWith` and `callPackageWithSelf`
Diffstat (limited to 'pkgs/top-level/splice.nix')
-rw-r--r-- | pkgs/top-level/splice.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/top-level/splice.nix b/pkgs/top-level/splice.nix index 43951100de3d..329a83e5a319 100644 --- a/pkgs/top-level/splice.nix +++ b/pkgs/top-level/splice.nix @@ -79,7 +79,11 @@ in # `newScope' for sets of packages in `pkgs' (see e.g. `gnome' below). callPackage = pkgs.newScope {}; + callPackageWithSelf = pkgs.newScopeWithSelf {}; + callPackages = lib.callPackagesWith splicedPackages; newScope = extra: lib.callPackageWith (splicedPackages // extra); + + newScopeWithSelf = extra: lib.callPackageWithSelfWith (splicedPackages // extra); } |