nixpkgs/pkgs/applications/version-management/git-and-tools/git-recent/default.nix

36 lines
899 B
Nix
Raw Normal View History

2017-04-16 15:12:53 +00:00
{stdenv, git, less, fetchFromGitHub, makeWrapper
# utillinuxMinimal is included because we need the column command
, utillinux
2017-04-16 15:12:53 +00:00
}:
stdenv.mkDerivation rec {
2019-06-30 09:41:06 +00:00
pname = "git-recent";
version = "1.1.1";
2017-04-16 15:12:53 +00:00
src = fetchFromGitHub {
owner = "paulirish";
repo = "git-recent";
rev = "v${version}";
2019-06-30 09:41:06 +00:00
sha256 = "1g8i6vpjnnfh7vc1269c91bap267w4bxdqqwnzb8x18vqgn2fx8i";
2017-04-16 15:12:53 +00:00
};
buildInputs = [ makeWrapper ];
buildPhase = null;
installPhase = ''
mkdir -p $out/bin
cp git-recent $out/bin
wrapProgram $out/bin/git-recent \
--prefix PATH : "${stdenv.lib.makeBinPath [ git less utillinux ]}"
2017-04-16 15:12:53 +00:00
'';
meta = with stdenv.lib; {
homepage = "https://github.com/paulirish/git-recent";
2017-04-16 15:12:53 +00:00
description = "See your latest local git branches, formatted real fancy";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.jlesquembre ];
};
}