From 0c355fe2d1736bf1b910f42a1490836bec1b038e Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 7 Apr 2023 10:44:22 +0200 Subject: [PATCH] libpg_query: avoid hard-coding dynamic library file extensions --- pkgs/development/libraries/libpg_query/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;