diff options
author | Artturi <Artturin@artturin.com> | 2023-08-14 09:13:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-14 09:13:40 +0300 |
commit | aab90d871408d39bc2bc46560e591bb0829b4595 (patch) | |
tree | 0ab87f1aae229176154d0639f5a1f932c3c7a25a /pkgs/applications/science | |
parent | f0a56023aca4c30c14883dd1eecd94633326c0b9 (diff) | |
parent | 25eef24033b80ade0a9b1e085bc08f62aee27c81 (diff) |
Merge pull request #248817 from Artturin/reffixes1
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/misc/openmodelica/omcompiler/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/science/misc/openmodelica/omcompiler/default.nix b/pkgs/applications/science/misc/openmodelica/omcompiler/default.nix index 39591eceb40d4..360fea56fedfb 100644 --- a/pkgs/applications/science/misc/openmodelica/omcompiler/default.nix +++ b/pkgs/applications/science/misc/openmodelica/omcompiler/default.nix @@ -46,8 +46,8 @@ mkOpenModelicaDerivation ({ preFixup = '' for entry in $(find $out -name libipopt.so); do - patchelf --shrink-rpath --allowed-rpath-prefixes /nix/store $entry - patchelf --set-rpath '$ORIGIN':"$(patchelf --print-rpath $entry)" $entry + patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$entry" + patchelf --set-rpath '$ORIGIN':"$(patchelf --print-rpath $entry)" "$entry" done ''; |