2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub}:
|
2015-09-08 07:38:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-radar";
|
2018-03-08 16:56:24 +00:00
|
|
|
version = "0.6";
|
2015-09-08 07:38:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michaeldfallen";
|
|
|
|
repo = "git-radar";
|
|
|
|
rev = "v${version}";
|
2018-03-08 16:56:24 +00:00
|
|
|
sha256 = "0c3zp8s4w7m4s71qgwk1jyfc8yzw34f2hi43x1w437ypgabwg81j";
|
2015-09-08 07:38:28 +01:00
|
|
|
};
|
|
|
|
|
2017-08-11 10:40:08 +01:00
|
|
|
dontBuild = true;
|
|
|
|
|
2015-09-08 07:38:28 +01: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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/michaeldfallen/git-radar";
|
2015-09-08 07:38:28 +01:00
|
|
|
license = licenses.mit;
|
2017-04-02 03:30:23 +01:00
|
|
|
description = "A tool you can add to your prompt to provide at-a-glance information on your git repo";
|
2015-09-08 07:38:28 +01:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
maintainers = with maintainers; [ kamilchm ];
|
|
|
|
};
|
|
|
|
}
|