1 { lib, stdenv, fetchFromGitHub, coreutils, findutils, git }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "simonwhitaker";
11 sha256 = "07j3sv9ar9l074krajw8nfmsfmdp836irsbd053dbqk2v880gfm6";
15 mkdir -p $out/bin $out/share/bash-completion/completions
17 cp gibo-completion.bash $out/share/bash-completion/completions
19 sed -e 's|\<git |${git}/bin/git |g' \
20 -e 's|\<basename |${coreutils}/bin/basename |g' \
22 sed -e 's|\<find |${findutils}/bin/find |g' \
23 -i "$out/share/bash-completion/completions/gibo-completion.bash"
27 homepage = "https://github.com/simonwhitaker/gibo";
28 license = lib.licenses.publicDomain;
29 description = "A shell script for easily accessing gitignore boilerplates";
30 platforms = lib.platforms.unix;