darwin/libiconv: fix static/shared logic

The conditional was incorrect - postInstall script should only hsppen
when enableShared = true.
This commit is contained in:
Matthew Bauer 2018-12-04 21:13:24 -06:00
parent 8726f6a558
commit 5e06294276

View File

@ -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