2015-12-21 21:37:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, findutils, git }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gibo";
|
2018-03-08 17:07:36 +01:00
|
|
|
version = "1.0.6";
|
2015-12-21 21:37:00 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonwhitaker";
|
|
|
|
repo = "gibo";
|
|
|
|
rev = version;
|
2018-03-08 17:07:36 +01:00
|
|
|
sha256 = "07j3sv9ar9l074krajw8nfmsfmdp836irsbd053dbqk2v880gfm6";
|
2015-12-21 21:37:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/etc/bash_completion.d
|
|
|
|
cp gibo $out/bin
|
|
|
|
cp gibo-completion.bash $out/etc/bash_completion.d
|
|
|
|
|
|
|
|
sed -e 's|\<git |${git}/bin/git |g' \
|
|
|
|
-e 's|\<basename |${coreutils}/bin/basename |g' \
|
|
|
|
-i "$out/bin/gibo"
|
|
|
|
sed -e 's|\<find |${findutils}/bin/find |g' \
|
|
|
|
-i "$out/etc/bash_completion.d/gibo-completion.bash"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/simonwhitaker/gibo;
|
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
|
|
description = "A shell script for easily accessing gitignore boilerplates";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|