3
0
Fork 0
forked from mirrors/nixpkgs

Allow git checkouts to have custom name

This commit is contained in:
Michael Raskin 2014-09-03 21:48:15 +04:00
parent d3c5e960b4
commit 46cdc2e017

View file

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