1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

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

This commit is contained in:
Eelco Dolstra 2018-07-04 17:20:54 +02:00
parent 6fd7f31c1e
commit 67d0a57ef9
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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" ]