2017-04-16 15:12:53 +00:00
|
|
|
{stdenv, git, less, fetchFromGitHub, makeWrapper
|
|
|
|
# utillinuxMinimal is included because we need the column command
|
2018-05-03 05:58:11 +00:00
|
|
|
, utillinux
|
2017-04-16 15:12:53 +00:00
|
|
|
}:
|
|
|
|
|
2018-05-03 05:58:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-04-16 15:12:53 +00:00
|
|
|
name = "git-recent-${version}";
|
2018-10-16 23:09:22 +00:00
|
|
|
version = "1.1.0";
|
2017-04-16 15:12:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paulirish";
|
|
|
|
repo = "git-recent";
|
|
|
|
rev = "v${version}";
|
2018-10-16 23:09:22 +00:00
|
|
|
sha256 = "06r1jzmzdv3d4vxdh5qyf5g5rgavxfmh2rpbs7a7byg3k7d77hpn";
|
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 \
|
2018-05-03 05:58:11 +00:00
|
|
|
--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;
|
|
|
|
description = "See your latest local git branches, formatted real fancy";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.jlesquembre ];
|
|
|
|
};
|
|
|
|
}
|