blob: 3b10c3305efc746658026f725bf7d7ed1d5bf270 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{stdenv, fetchFromGitHub}:
stdenv.mkDerivation rec {
name = "git-radar-${version}";
version = "0.5";
phases = [ "unpackPhase" "installPhase" ];
dontInstallSrc = true;
src = fetchFromGitHub {
owner = "michaeldfallen";
repo = "git-radar";
rev = "v${version}";
sha256 = "1915aqx8bfc4xmvhx2gfxv72p969a6rn436kii9w4yi38hibmqv9";
};
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 = "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 ];
};
}
|