2019-08-13 13:28:03 +01:00
|
|
|
{ stdenv, fetchFromGitHub, git, perl }:
|
2011-03-23 10:24:22 +00:00
|
|
|
|
2013-03-20 08:50:06 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 13:28:03 +01:00
|
|
|
pname = "topgit";
|
|
|
|
version = "0.19.12";
|
2011-03-23 10:24:22 +00:00
|
|
|
|
2019-08-13 13:28:03 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mackyle";
|
|
|
|
repo = "topgit";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "1wvf8hmwwl7a2fr17cfs3pbxjccdsjw9ngzivxlgja0gvfz4hjd5";
|
2011-03-23 10:24:22 +00:00
|
|
|
};
|
|
|
|
|
2019-08-13 13:28:03 +01:00
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl git ];
|
2011-03-23 10:24:22 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2019-08-13 13:28:03 +01:00
|
|
|
install -Dm644 README -t"$out/share/doc/${pname}-${version}/"
|
|
|
|
install -Dm755 contrib/tg-completion.bash -t "$out/etc/bash_completion.d/"
|
2011-03-23 10:24:22 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-13 13:28:03 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-03-20 08:50:06 +00:00
|
|
|
description = "TopGit manages large amount of interdependent topic branches";
|
2019-08-13 13:28:03 +01:00
|
|
|
homepage = "https://github.com/mackyle/topgit";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ marcweber ];
|
2011-03-23 10:24:22 +00:00
|
|
|
};
|
|
|
|
}
|