2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, git, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "topgit";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.19.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mackyle";
|
|
|
|
repo = "topgit";
|
|
|
|
rev = "${pname}-${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-K0X1DGc1LQsoteUhoHLxVJRrZaaPLKSSF61OKyGB5Qg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl git ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-21 19:51:51 +00:00
|
|
|
install -Dm644 README -t "$out/share/doc/${pname}-${version}/"
|
|
|
|
install -Dm755 contrib/tg-completion.bash -t "$out/share/bash-completion/completions/"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "TopGit manages large amount of interdependent topic branches";
|
|
|
|
homepage = "https://github.com/mackyle/topgit";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ marcweber ];
|
|
|
|
};
|
|
|
|
}
|