python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / gibo / default.nix
blob6ee4698d750c49ab4ee23bf52978464c84163fcc
1 { lib, stdenv, fetchFromGitHub, coreutils, findutils, git }:
3 stdenv.mkDerivation rec {
4   pname = "gibo";
5   version = "1.0.6";
7   src = fetchFromGitHub {
8     owner = "simonwhitaker";
9     repo = "gibo";
10     rev = version;
11     sha256 = "07j3sv9ar9l074krajw8nfmsfmdp836irsbd053dbqk2v880gfm6";
12   };
14   installPhase = ''
15     mkdir -p $out/bin $out/share/bash-completion/completions
16     cp gibo $out/bin
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' \
21         -i "$out/bin/gibo"
22     sed -e 's|\<find |${findutils}/bin/find |g' \
23         -i "$out/share/bash-completion/completions/gibo-completion.bash"
24   '';
26   meta = {
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;
31   };