libpg_query: avoid hard-coding dynamic library file extensions
This commit is contained in:
parent
79fe155d05
commit
0c355fe2d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user