From e77b9fff67db5d750ee7a7ebf0886332d64bdf86 Mon Sep 17 00:00:00 2001 From: Kamil Chmielewski Date: Tue, 8 Sep 2015 08:38:28 +0200 Subject: [PATCH] git-radar: init at 0.3.2 --- .../git-and-tools/default.nix | 2 ++ .../git-and-tools/git-radar/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/version-management/git-and-tools/git-radar/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 b8bce1c9eb5..85219e48449 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -96,6 +96,8 @@ rec { gitflow = callPackage ./gitflow { }; + git-radar = callPackage ./git-radar { }; + git-remote-hg = callPackage ./git-remote-hg { }; gitRemoteGcrypt = callPackage ./git-remote-gcrypt { }; diff --git a/pkgs/applications/version-management/git-and-tools/git-radar/default.nix b/pkgs/applications/version-management/git-and-tools/git-radar/default.nix new file mode 100644 index 00000000000..5cca8ebef3c --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-radar/default.nix @@ -0,0 +1,31 @@ +{stdenv, fetchFromGitHub}: + +stdenv.mkDerivation rec { + name = "git-radar-${version}"; + version = "0.3.2"; + + phases = [ "unpackPhase" "installPhase" ]; + + dontInstallSrc = true; + + src = fetchFromGitHub { + owner = "michaeldfallen"; + repo = "git-radar"; + rev = "v${version}"; + sha256 = "1028462b4kqxx66vjv7r8nnr6bi3kw11fixpqyg2srqriha6447p"; + }; + + installPhase = '' + mkdir -p $out/bin + cp git-radar fetch.sh prompt.bash prompt.zsh radar-base.sh $out + ln -s $out/git-radar $out/bin + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/michaeldfallen/git-radar; + license = licenses.mit; + description = "Git-radar is a tool you can add to your prompt to provide at-a-glance information on your git repo."; + platforms = with platforms; linux ++ darwin; + maintainers = with maintainers; [ kamilchm ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db44592ff20..cfde6da32d2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11601,7 +11601,7 @@ let inherit pkgs; }); - inherit (gitAndTools) git gitFull gitSVN git-cola svn2git; + inherit (gitAndTools) git gitFull gitSVN git-cola svn2git git-radar; gitMinimal = git.override { withManual = false;