darwin/libiconv: fix static/shared logic
The conditional was incorrect - postInstall script should only hsppen when enableShared = true.
This commit is contained in:
parent
8726f6a558
commit
5e06294276
@ -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 New Issue
Block a user