diff --git a/pkgs/development/libraries/libpg_query/default.nix b/pkgs/development/libraries/libpg_query/default.nix index 95d615c5d24..1335eb3579d 100644 --- a/pkgs/development/libraries/libpg_query/default.nix +++ b/pkgs/development/libraries/libpg_query/default.nix @@ -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";