diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-07-04 17:20:54 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-07-04 17:20:54 +0200 |
commit | 67d0a57ef9eedde69192e08db77751c1c1062e0e (patch) | |
tree | e1e69d49f628e1fe39fe5dbd03b122d42e81fe59 /pkgs/top-level/release.nix | |
parent | 6fd7f31c1e73ed97c49354bbe1d30687213959bd (diff) |
pkgs/top-level/release.nix.nix: Use fetchGit if possible
Diffstat (limited to 'pkgs/top-level/release.nix')
-rw-r--r-- | pkgs/top-level/release.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index f78152a8931c..ca4c8ce83f3a 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -8,7 +8,11 @@ $ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux */ -{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; } +{ nixpkgs ? + if builtins.pathExists ../../.git then + fetchGit ../.. + else + { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; } , officialRelease ? false # The platforms for which we build Nixpkgs. , supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ] |