diff options
Diffstat (limited to 'pkgs/applications/version-management/git-recent/default.nix')
-rw-r--r-- | pkgs/applications/version-management/git-recent/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-recent/default.nix b/pkgs/applications/version-management/git-recent/default.nix new file mode 100644 index 00000000000..1a1811b2f43 --- /dev/null +++ b/pkgs/applications/version-management/git-recent/default.nix @@ -0,0 +1,35 @@ +{lib, stdenv, git, less, fetchFromGitHub, makeWrapper +# util-linuxMinimal is included because we need the column command +, util-linux +}: + +stdenv.mkDerivation rec { + pname = "git-recent"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "paulirish"; + repo = "git-recent"; + rev = "v${version}"; + sha256 = "1g8i6vpjnnfh7vc1269c91bap267w4bxdqqwnzb8x18vqgn2fx8i"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + buildPhase = null; + + installPhase = '' + mkdir -p $out/bin + cp git-recent $out/bin + wrapProgram $out/bin/git-recent \ + --prefix PATH : "${lib.makeBinPath [ git less util-linux ]}" + ''; + + meta = with 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 ]; + }; +} |