about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix')
-rw-r--r--nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix b/nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix
index 9b7dabeb7200..2fbaa0a28caf 100644
--- a/nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix
+++ b/nixpkgs/pkgs/applications/science/logic/z3/4.4.0.nix
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
   # z3's install phase is stupid because it tries to calculate the
   # python package store location itself, meaning it'll attempt to
   # write files into the nix store, and fail.
-  soext = if stdenv.system == "x86_64-darwin" then ".dylib" else ".so";
+  soext = stdenv.hostPlatform.extensions.sharedLibrary;
   installPhase = ''
     mkdir -p $out/bin $out/lib/${python.libPrefix}/site-packages $out/include
     cp ../src/api/z3*.h       $out/include