fortune-kind: fix FORTUNE_DIR wrapping

FORTUNE_DIR supports only one folder.
I chose --set-default to allow for overriding
https://github.com/cafkafk/fortune-kind/issues/88#issuecomment-2817625295
This commit is contained in:
teto 2025-04-26 20:42:08 +02:00 committed by Matthieu Coudron
parent 265db5ebfe
commit 858bf5b2a2

View file

@ -52,7 +52,7 @@ rustPlatform.buildRustPackage rec {
postInstall =
''
wrapProgram $out/bin/fortune-kind \
--prefix FORTUNE_DIR : "$out/fortunes"
--set-default FORTUNE_DIR "$out/fortunes"
''
+ lib.optionalString fortuneAlias ''
ln -s fortune-kind $out/bin/fortune