From fe6ad9e91268dba10f04f0dc983dfc8361475303 Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Thu, 25 Feb 2016 14:45:05 -0800 Subject: [PATCH] git-stree: init at 0.4.5 --- .../git-and-tools/default.nix | 2 ++ .../git-and-tools/git-stree/default.nix | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/git-stree/default.nix diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index c38e34bf450d..584c880566ac 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -62,6 +62,8 @@ rec { git-remote-hg = callPackage ./git-remote-hg { }; + git-stree = callPackage ./git-stree { }; + git2cl = import ./git2cl { inherit fetchgit stdenv perl; }; diff --git a/pkgs/applications/version-management/git-and-tools/git-stree/default.nix b/pkgs/applications/version-management/git-and-tools/git-stree/default.nix new file mode 100644 index 000000000000..ef33b82e5c65 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-stree/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchFromGitHub, ... }: + +stdenv.mkDerivation rec { + name = "git-stree-${version}"; + version = "0.4.5"; + + src = fetchFromGitHub { + owner = "tdd"; + repo = "git-stree"; + rev = "0.4.5"; + sha256 = "0y5h44n38w6rhy9m591dvibxpfggj3q950ll7y4h49bhpks4m0l9"; + }; + + installPhase = '' + mkdir -p $out/bin $out/etc/bash_completion.d + install -m 0755 git-stree $out/bin/ + install -m 0644 git-stree-completion.bash $out/etc/bash_completion.d/ + ''; + + meta = with lib; { + description = "A better Git subtree helper command"; + homepage = http://deliciousinsights.github.io/git-stree; + license = licenses.mit; + maintainers = [ maintainers.benley ]; + }; +}