depot/third_party/nixpkgs/pkgs/applications/version-management/git-and-tools/topgit/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
828 B
Nix

{ stdenv, fetchFromGitHub, git, perl }:
stdenv.mkDerivation rec {
pname = "topgit";
version = "0.19.12";
src = fetchFromGitHub {
owner = "mackyle";
repo = "topgit";
rev = "${pname}-${version}";
sha256 = "1wvf8hmwwl7a2fr17cfs3pbxjccdsjw9ngzivxlgja0gvfz4hjd5";
};
makeFlags = [ "prefix=${placeholder "out"}" ];
nativeBuildInputs = [ perl git ];
postInstall = ''
install -Dm644 README -t"$out/share/doc/${pname}-${version}/"
install -Dm755 contrib/tg-completion.bash -t "$out/etc/bash_completion.d/"
'';
meta = with stdenv.lib; {
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 ];
};
}