libpg_query: avoid hard-coding dynamic library file extensions
This commit is contained in:
parent
79fe155d05
commit
0c355fe2d1
1 changed files with 1 additions and 4 deletions
|
@ -18,10 +18,7 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm644 -t $out/lib libpg_query.a
|
install -Dm644 -t $out/lib libpg_query.a
|
||||||
install -Dm644 -t $out/include pg_query.h
|
install -Dm644 -t $out/include pg_query.h
|
||||||
'' + lib.optionalString stdenv.isLinux ''
|
install -Dm644 -t $out/lib libpg_query${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
install -Dm644 -t $out/lib libpg_query.so
|
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
|
||||||
install -Dm644 -t $out/lib libpg_query.dylib
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
Loading…
Reference in a new issue