11 stdenvNoCC.mkDerivation rec {
15 src = fetchFromGitHub {
17 repo = "pokemonsay-newgenerations";
19 hash = "sha256-IDTAZmOzkUg0kLUM0oWuVbi8EwE4sEpLWrNAtq/he+g=";
24 # https://github.com/HRKings/pokemonsay-newgenerations/pull/5
25 name = "word-wrap-fix.patch";
26 url = "https://github.com/pbsds/pokemonsay-newgenerations/commit/7056d7ba689479a8e6c14ec000be1dfcd83afeb0.patch";
27 hash = "sha256-aqUJkyJDWArLjChxLZ4BbC6XAB53LAqARzTvEAxrFCI=";
32 substituteInPlace pokemonsay.sh \
34 'INSTALL_PATH=''${HOME}/.bin/pokemonsay' \
37 'POKEMON_PATH=''${INSTALL_PATH}/pokemons' \
38 'POKEMON_PATH=${placeholder "out"}/share/pokemonsay' \
41 '$(${findutils}/bin/find ' \
44 '$(${coreutils}/bin/basename ' \
47 '${cowsay}/bin/cowsay -f ' \
50 '${cowsay}/bin/cowthink -f '
52 substituteInPlace pokemonthink.sh \
55 "${placeholder "out"}/bin/pokemonsay"
59 mkdir -p $out/{bin,share/pokemonsay}
60 cp pokemonsay.sh $out/bin/pokemonsay
61 cp pokemonthink.sh $out/bin/pokemonthink
62 cp pokemons/*.cow $out/share/pokemonsay
65 doInstallCheck = true;
66 installCheckPhase = ''
68 test "$($out/bin/pokemonsay --list | wc -l)" -ge 891
73 description = "Print pokemon in the CLI! An adaptation of the classic cowsay";
74 homepage = "https://github.com/HRKings/pokemonsay-newgenerations";
75 license = licenses.mit;
76 platforms = platforms.all;
77 maintainers = with maintainers; [ pbsds ];