nixpkgs/pkgs/applications/version-management/git-and-tools/git-radar/default.nix
Robin Gloster 28cc2642f0
treewide: use less phases if not necessary
This removes some skipping of e.g. fixupPhase and cleans up occurences
where this led to duplicating code
2017-08-11 11:40:36 +02:00

30 lines
788 B
Nix

{stdenv, fetchFromGitHub}:
stdenv.mkDerivation rec {
name = "git-radar-${version}";
version = "0.5";
src = fetchFromGitHub {
owner = "michaeldfallen";
repo = "git-radar";
rev = "v${version}";
sha256 = "1915aqx8bfc4xmvhx2gfxv72p969a6rn436kii9w4yi38hibmqv9";
};
dontBuild = true;
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 ];
};
}