Merge pull request #222575 from purcell/libpg_query-shared-library
libpg_query: also build shared library
This commit is contained in:
commit
62412a4701
|
@ -13,13 +13,17 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ which ];
|
nativeBuildInputs = [ which ];
|
||||||
|
|
||||||
makeFlags = [ "build" ];
|
makeFlags = [ "build" "build_shared" ];
|
||||||
|
|
||||||
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
|
||||||
|
install -Dm644 -t $out/lib libpg_query${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkTarget = "test";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/pganalyze/libpg_query";
|
homepage = "https://github.com/pganalyze/libpg_query";
|
||||||
description = "C library for accessing the PostgreSQL parser outside of the server environment";
|
description = "C library for accessing the PostgreSQL parser outside of the server environment";
|
||||||
|
|
Loading…
Reference in a new issue