nixpkgs-suyu/pkgs/applications/version-management/git-and-tools/git-radar/default.nix

30 lines
788 B
Nix
Raw Normal View History

2015-09-08 08:38:28 +02:00
{stdenv, fetchFromGitHub}:
stdenv.mkDerivation rec {
name = "git-radar-${version}";
2017-04-02 04:30:23 +02:00
version = "0.5";
2015-09-08 08:38:28 +02:00
src = fetchFromGitHub {
owner = "michaeldfallen";
repo = "git-radar";
rev = "v${version}";
2017-04-02 04:30:23 +02:00
sha256 = "1915aqx8bfc4xmvhx2gfxv72p969a6rn436kii9w4yi38hibmqv9";
2015-09-08 08:38:28 +02:00
};
dontBuild = true;
2015-09-08 08:38:28 +02:00
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;
2017-04-02 04:30:23 +02:00
description = "A tool you can add to your prompt to provide at-a-glance information on your git repo";
2015-09-08 08:38:28 +02:00
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ kamilchm ];
};
}