Merge pull request #222575 from purcell/libpg_query-shared-library

libpg_query: also build shared library
This commit is contained in:
Mario Rodas 2023-04-07 06:45:22 -05:00 committed by GitHub
commit 62412a4701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,13 +13,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ which ];
makeFlags = [ "build" ];
makeFlags = [ "build" "build_shared" ];
installPhase = ''
install -Dm644 -t $out/lib libpg_query.a
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; {
homepage = "https://github.com/pganalyze/libpg_query";
description = "C library for accessing the PostgreSQL parser outside of the server environment";