summary refs log tree commit diff
path: root/pkgs/top-level/release.nix
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-07-04 15:52:15 -0400
committerGraham Christensen <graham@grahamc.com>2018-07-04 15:52:15 -0400
commitfbf93cd61b7ae9a61c33f9b9e7facfa5799209f6 (patch)
treeff96cdd63fa9b645f44f83cc64e6f9509fcc30d6 /pkgs/top-level/release.nix
parent2fa3fa023f6bbbbe6447a486e2480793ff8abecf (diff)
downloadnixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.tar
nixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.tar.gz
nixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.tar.bz2
nixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.tar.lz
nixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.tar.xz
nixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.tar.zst
nixpkgs-fbf93cd61b7ae9a61c33f9b9e7facfa5799209f6.zip
Revert "pkgs/top-level/release.nix.nix: Use fetchGit if possible"
This reverts commit 67d0a57ef9eedde69192e08db77751c1c1062e0e.

which caused evaluation errors in restricted eval mode, producing:

error: access to URI
'/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-1-lassulus.ewr1.nix.ci' is
forbidden in restricted mode
Diffstat (limited to 'pkgs/top-level/release.nix')
-rw-r--r--pkgs/top-level/release.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix
index 4b8d10a48eb..81f0874ca12 100644
--- a/pkgs/top-level/release.nix
+++ b/pkgs/top-level/release.nix
@@ -8,11 +8,7 @@
 
    $ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux
 */
-{ nixpkgs ?
-    if builtins.pathExists ../../.git then
-      fetchGit ../..
-    else
-      { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
+{ nixpkgs ? { 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" ]