Merge pull request #121341 from AluisioASG/aasg/haunt-0.2.5
haunt: fix Guile load paths
This commit is contained in:
commit
af4d1fae3f
@ -27,10 +27,23 @@ stdenv.mkDerivation rec {
|
|||||||
guile-reader
|
guile-reader
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
doCheck = true;
|
||||||
wrapProgram $out/bin/haunt \
|
|
||||||
--prefix GUILE_LOAD_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site" \
|
postInstall =
|
||||||
--prefix GUILE_LOAD_COMPILED_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site"
|
let
|
||||||
|
guileVersion = lib.versions.majorMinor guile.version;
|
||||||
|
in
|
||||||
|
''
|
||||||
|
wrapProgram $out/bin/haunt \
|
||||||
|
--prefix GUILE_LOAD_PATH : "$out/share/guile/site/${guileVersion}:$GUILE_LOAD_PATH" \
|
||||||
|
--prefix GUILE_LOAD_COMPILED_PATH : "$out/lib/guile/${guileVersion}/site-ccache:$GUILE_LOAD_COMPILED_PATH"
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
$out/bin/haunt --version
|
||||||
|
runHook postInstallCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -53,7 +66,7 @@ stdenv.mkDerivation rec {
|
|||||||
to do things that aren't provided out-of-the-box.
|
to do things that aren't provided out-of-the-box.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres AluisioASG ];
|
||||||
platforms = guile.meta.platforms;
|
platforms = guile.meta.platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user