Commit 858bf5b2 authored by teto's avatar teto Committed by Matthieu Coudron
Browse files

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
parent 265db5eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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