mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
143978a477
linux: readd assertion
36 lines
907 B
Nix
36 lines
907 B
Nix
{stdenv, git, less, fetchFromGitHub, makeWrapper
|
|
# utillinuxMinimal is included because we need the column command
|
|
, utillinux
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "git-recent-${version}";
|
|
version = "1.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paulirish";
|
|
repo = "git-recent";
|
|
rev = "v${version}";
|
|
sha256 = "0dbnm5b2v04fy0jgzphm3xvz9scx0n4p10fw8wjd0cy56308h79k";
|
|
};
|
|
|
|
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 ]}"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|