2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, coreutils, findutils, git }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gibo";
|
|
|
|
version = "1.0.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonwhitaker";
|
|
|
|
repo = "gibo";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "07j3sv9ar9l074krajw8nfmsfmdp836irsbd053dbqk2v880gfm6";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-11-21 19:51:51 +00:00
|
|
|
mkdir -p $out/bin $out/share/bash-completion/completions
|
2020-04-24 23:36:52 +00:00
|
|
|
cp gibo $out/bin
|
2020-11-21 19:51:51 +00:00
|
|
|
cp gibo-completion.bash $out/share/bash-completion/completions
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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' \
|
2020-11-21 19:51:51 +00:00
|
|
|
-i "$out/share/bash-completion/completions/gibo-completion.bash"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/simonwhitaker/gibo";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.publicDomain;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Shell script for easily accessing gitignore boilerplates";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gibo";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|