darwin/libiconv: fix static/shared logic
The conditional was incorrect - postInstall script should only hsppen
when enableShared = true.
(cherry picked from commit 5e06294276
)
This commit is contained in:
parent
7fcbc52d7d
commit
f11d5341aa
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ appleDerivation {
|
|||
(lib.enableFeature enableShared "shared")
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (!enableStatic) ''
|
||||
postInstall = lib.optionalString enableShared ''
|
||||
mv $out/lib/libiconv.dylib $out/lib/libiconv-nocharset.dylib
|
||||
${stdenv.cc.bintools.targetPrefix}install_name_tool -id $out/lib/libiconv-nocharset.dylib $out/lib/libiconv-nocharset.dylib
|
||||
|
||||
|
|
Loading…
Reference in a new issue