9 stdenvNoCC.mkDerivation rec {
11 version = "unstable-2021-10-05";
13 src = fetchFromGitHub {
15 repo = "pokemonsay-newgenerations";
16 rev = "baccc6d2fe1897c48f60d82ff9c4d4c018f5b594";
17 hash = "sha256-IDTAZmOzkUg0kLUM0oWuVbi8EwE4sEpLWrNAtq/he+g=";
21 substituteInPlace pokemonsay.sh \
23 'INSTALL_PATH=''${HOME}/.bin/pokemonsay' \
26 'POKEMON_PATH=''${INSTALL_PATH}/pokemons' \
27 'POKEMON_PATH=${placeholder "out"}/share/pokemonsay' \
30 '$(${findutils}/bin/find ' \
33 '$(${coreutils}/bin/basename ' \
36 '${cowsay}/bin/cowsay -f ' \
39 '${cowsay}/bin/cowthink -f '
41 substituteInPlace pokemonthink.sh \
44 "${placeholder "out"}/bin/pokemonsay"
48 mkdir -p $out/{bin,share/pokemonsay}
49 cp pokemonsay.sh $out/bin/pokemonsay
50 cp pokemonthink.sh $out/bin/pokemonthink
51 cp pokemons/*.cow $out/share/pokemonsay
55 $out/bin/pokemonsay --list-pokemon
59 description = "Print pokemon in the CLI! An adaptation of the classic cowsay";
60 homepage = "https://github.com/HRKings/pokemonsay-newgenerations";
61 license = licenses.mit;
62 platforms = platforms.all;
63 maintainers = with maintainers; [ pbsds ];