mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
978 B
Nix
34 lines
978 B
Nix
{ lib, stdenv, fetchFromGitHub, coreutils, findutils, git }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gibo";
|
|
version = "1.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simonwhitaker";
|
|
repo = "gibo";
|
|
rev = version;
|
|
sha256 = "07j3sv9ar9l074krajw8nfmsfmdp836irsbd053dbqk2v880gfm6";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/bash-completion/completions
|
|
cp gibo $out/bin
|
|
cp gibo-completion.bash $out/share/bash-completion/completions
|
|
|
|
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/share/bash-completion/completions/gibo-completion.bash"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/simonwhitaker/gibo";
|
|
license = lib.licenses.publicDomain;
|
|
description = "Shell script for easily accessing gitignore boilerplates";
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "gibo";
|
|
};
|
|
}
|