From c4f91f848f040a7fceb05244c5a1d37f9f8eba8c Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sat, 21 Dec 2024 15:20:35 +0100 Subject: [PATCH] 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. --- pkgs/by-name/cl/clerk/package.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/by-name/cl/clerk/package.nix b/pkgs/by-name/cl/clerk/package.nix index e9c719dbadc4..5230fa1ef975 100644 --- a/pkgs/by-name/cl/clerk/package.nix +++ b/pkgs/by-name/cl/clerk/package.nix @@ -74,13 +74,11 @@ stdenv.mkDerivation { ]; in '' - pushd $out/bin for f in clerk clerk_rating_client; do - wrapProgram $f \ + wrapProgram $out/bin/$f \ --prefix PATH : "${binPath}" \ --set PERL5LIB $PERL5LIB done - popd ''; passthru.updateScript = unstableGitUpdater {