3
0
Fork 0
forked from mirrors/nixpkgs

libpg_query: avoid hard-coding dynamic library file extensions

This commit is contained in:
Steve Purcell 2023-04-07 10:44:22 +02:00
parent 79fe155d05
commit 0c355fe2d1

View file

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