fa2b7aa221
Semi-automatic update. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 1.0.6 with grep in /nix/store/jk28x9x2szkp8cgfg3x7vmsrjhh4nabs-gibo-1.0.6 - found 1.0.6 in filename of file in /nix/store/jk28x9x2szkp8cgfg3x7vmsrjhh4nabs-gibo-1.0.6
34 lines
994 B
Nix
34 lines
994 B
Nix
{ stdenv, fetchFromGitHub, coreutils, findutils, git }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gibo-${version}";
|
|
version = "1.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simonwhitaker";
|
|
repo = "gibo";
|
|
rev = version;
|
|
sha256 = "07j3sv9ar9l074krajw8nfmsfmdp836irsbd053dbqk2v880gfm6";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|