diff --git a/pkgs/applications/science/logic/z3/default.nix b/pkgs/applications/science/logic/z3/default.nix index 10a526192764..1cbe914779e6 100644 --- a/pkgs/applications/science/logic/z3/default.nix +++ b/pkgs/applications/science/logic/z3/default.nix @@ -27,9 +27,7 @@ stdenv.mkDerivation rec { mv $out/lib $lib/lib mv $out/include $dev/include - # clean up a copy of libz3.so and symlink it instead - rm $python/${python.sitePackages}/z3/lib/libz3.so - ln -s $lib/lib/libz3.so $python/${python.sitePackages}/z3/lib/libz3.so + ln -sf $lib/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary} $python/${python.sitePackages}/z3/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary} ''; outputs = [ "out" "lib" "dev" "python" ];