diff --git a/pkgs/development/libraries/libpg_query/default.nix b/pkgs/development/libraries/libpg_query/default.nix index 59801a029cf4..1335eb3579d7 100644 --- a/pkgs/development/libraries/libpg_query/default.nix +++ b/pkgs/development/libraries/libpg_query/default.nix @@ -18,10 +18,7 @@ stdenv.mkDerivation rec { installPhase = '' install -Dm644 -t $out/lib libpg_query.a install -Dm644 -t $out/include pg_query.h - '' + lib.optionalString stdenv.isLinux '' - install -Dm644 -t $out/lib libpg_query.so - '' + lib.optionalString stdenv.isDarwin '' - install -Dm644 -t $out/lib libpg_query.dylib + install -Dm644 -t $out/lib libpg_query${stdenv.hostPlatform.extensions.sharedLibrary} ''; doCheck = true;