Unverified Commit 62412a47 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

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

libpg_query: also build shared library
parents 62b9c6cb 0c355fe2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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";