mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
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 ];
|
||||
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user