Revert "pkgs/top-level/release.nix.nix: Use fetchGit if possible"

This reverts commit 67d0a57ef9.

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
This commit is contained in:
Graham Christensen 2018-07-04 15:52:15 -04:00
parent 2fa3fa023f
commit fbf93cd61b
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C

View File

@ -8,11 +8,7 @@
$ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux $ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux
*/ */
{ nixpkgs ? { nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
if builtins.pathExists ../../.git then
fetchGit ../..
else
{ outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
, officialRelease ? false , officialRelease ? false
# The platforms for which we build Nixpkgs. # The platforms for which we build Nixpkgs.
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ] , supportedSystems ? [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" ]