clerk: fix reference to wrapped binary in wrapper

Due to the use of pushd/cd the reference to the wrapper binary was a
relative path.  This does not work in general as it is depending on the
working directory where the wrapper is executed.
This commit is contained in:
Lucas Hoffmann 2024-12-21 15:20:35 +01:00
parent cc7c9e53ad
commit c4f91f848f

View file

@ -74,13 +74,11 @@ stdenv.mkDerivation {
]; ];
in in
'' ''
pushd $out/bin
for f in clerk clerk_rating_client; do for f in clerk clerk_rating_client; do
wrapProgram $f \ wrapProgram $out/bin/$f \
--prefix PATH : "${binPath}" \ --prefix PATH : "${binPath}" \
--set PERL5LIB $PERL5LIB --set PERL5LIB $PERL5LIB
done done
popd
''; '';
passthru.updateScript = unstableGitUpdater { passthru.updateScript = unstableGitUpdater {