summary refs log tree commit diff
path: root/pkgs/top-level/make-tarball.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-19 21:25:08 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-19 21:28:53 +0100
commitac0c49970b7356d9fc4ccaeeed69a44705bf23b0 (patch)
treef45657de09b58495d2e5bd2a11f7be6ccad4b5ff /pkgs/top-level/make-tarball.nix
parent319acb0af5b453e08ddae3464c11261b9e0354e1 (diff)
downloadnixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.tar
nixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.tar.gz
nixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.tar.bz2
nixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.tar.lz
nixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.tar.xz
nixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.tar.zst
nixlib-ac0c49970b7356d9fc4ccaeeed69a44705bf23b0.zip
make-tarball.nix: Allow passing in a different Nix
Used by the Nix tests (https://github.com/NixOS/nix/commit/9fff4925613d44ac12775ad8840709130b9498d1).
Diffstat (limited to 'pkgs/top-level/make-tarball.nix')
-rw-r--r--pkgs/top-level/make-tarball.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/top-level/make-tarball.nix b/pkgs/top-level/make-tarball.nix
index c14f94d95fd7..ebf19af943f5 100644
--- a/pkgs/top-level/make-tarball.nix
+++ b/pkgs/top-level/make-tarball.nix
@@ -2,7 +2,11 @@
    also builds the documentation and tests whether the Nix expressions
    evaluate correctly. */
 
-{ pkgs, nixpkgs, officialRelease }:
+{ nixpkgs
+, officialRelease
+, pkgs ? import nixpkgs.outPath {}
+, nix ? pkgs.nix
+}:
 
 with pkgs;