taoup: 1.21 -> 1.1.23

This commit is contained in:
Zak B. Elep 2024-10-24 19:05:06 +00:00
parent 13b932f799
commit bd9e18e319

View File

@ -4,13 +4,13 @@ let
in
stdenv.mkDerivation rec {
pname = "taoup";
version = "1.21";
version = "1.1.23";
src = fetchFromGitHub {
owner = "globalcitizen";
repo = "taoup";
rev = "v${version}";
hash = "sha256-UHo3c+DQn77CJONy/QXM55rpIdhVkJbhR82tqmUltPQ=";
hash = "sha256-9J46fKyeSZW71r67R8y9KVPeCH8fn27hOk/XpusqGmk=";
};
buildInputs = [ rubyEnv bash ncurses ];
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
--subst-var-by pname taoup
substituteInPlace taoup-fortune \
--subst-var-by out $out \
--replace "/bin/bash" "${bash}/bin/bash"
--replace-fail "/bin/bash" "${bash}/bin/bash"
'';
dontConfigure = true;
@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
EOF
chmod +x $out/bin/taoup
# Populate the cache created by cachedir.patch above
# Populate the cache created by cachefile.patch above
$out/bin/taoup > $out/lib/taoup/cache
cp taoup-fortune $out/bin