diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2014-09-03 21:48:15 +0400 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2014-09-03 21:54:25 +0400 |
commit | 46cdc2e017fed885a453abd36b289b767e943759 (patch) | |
tree | 447cce6f9889f5fce5a8680acef844164c4668ea /pkgs | |
parent | d3c5e960b4bddf769928167d8bb1c1ff015e5979 (diff) |
Allow git checkouts to have custom name
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/fetchgit/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/default.nix b/pkgs/build-support/fetchgit/default.nix index a17daf9a2c575..c52a26b7165de 100644 --- a/pkgs/build-support/fetchgit/default.nix +++ b/pkgs/build-support/fetchgit/default.nix @@ -1,5 +1,7 @@ {stdenv, git, cacert}: -{url, rev ? "HEAD", md5 ? "", sha256 ? "", leaveDotGit ? false, fetchSubmodules ? true}: +{url, rev ? "HEAD", md5 ? "", sha256 ? "", leaveDotGit ? false, fetchSubmodules ? true +, name ? "git-export" +}: /* NOTE: fetchgit has one problem: git fetch only works for refs. @@ -26,7 +28,7 @@ assert md5 != "" || sha256 != ""; stdenv.mkDerivation { - name = "git-export"; + inherit name; builder = ./builder.sh; fetcher = ./nix-prefetch-git; buildInputs = [git]; |