Merge pull request #121341 from AluisioASG/aasg/haunt-0.2.5

haunt: fix Guile load paths

authored by

Anderson Torres and committed by
GitHub
af4d1fae 1e56a5ae

+18 -5
+18 -5
pkgs/applications/misc/haunt/default.nix
··· 27 27 guile-reader 28 28 ]; 29 29 30 - postInstall = '' 31 - wrapProgram $out/bin/haunt \ 32 - --prefix GUILE_LOAD_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site" \ 33 - --prefix GUILE_LOAD_COMPILED_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site" 30 + doCheck = true; 31 + 32 + postInstall = 33 + let 34 + guileVersion = lib.versions.majorMinor guile.version; 35 + in 36 + '' 37 + wrapProgram $out/bin/haunt \ 38 + --prefix GUILE_LOAD_PATH : "$out/share/guile/site/${guileVersion}:$GUILE_LOAD_PATH" \ 39 + --prefix GUILE_LOAD_COMPILED_PATH : "$out/lib/guile/${guileVersion}/site-ccache:$GUILE_LOAD_COMPILED_PATH" 40 + ''; 41 + 42 + doInstallCheck = true; 43 + installCheckPhase = '' 44 + runHook preInstallCheck 45 + $out/bin/haunt --version 46 + runHook postInstallCheck 34 47 ''; 35 48 36 49 meta = with lib; { ··· 53 66 to do things that aren't provided out-of-the-box. 54 67 ''; 55 68 license = licenses.gpl3Plus; 56 - maintainers = with maintainers; [ AndersonTorres ]; 69 + maintainers = with maintainers; [ AndersonTorres AluisioASG ]; 57 70 platforms = guile.meta.platforms; 58 71 }; 59 72 }