python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libpg_query / default.nix
blob663a119224b9858528cf083a8c5f4b22891c875f
1 { lib, stdenv, fetchFromGitHub, which }:
3 stdenv.mkDerivation rec {
4   pname = "libpg_query";
5   version = "13-2.2.0";
7   src = fetchFromGitHub {
8     owner = "pganalyze";
9     repo = "libpg_query";
10     rev = version;
11     sha256 = "sha256-gEkcv/j8ySUYmM9lx1hRF/SmuQMYVHwZAIYOaCQWAFs=";
12   };
14   nativeBuildInputs = [ which ];
16   makeFlags = [ "build" ];
18   installPhase = ''
19     install -Dm644 -t $out/lib libpg_query.a
20     install -Dm644 -t $out/include pg_query.h
21   '';
23   meta = with lib; {
24     homepage = "https://github.com/pganalyze/libpg_query";
25     description = "C library for accessing the PostgreSQL parser outside of the server environment";
26     changelog = "https://github.com/pganalyze/libpg_query/raw/${version}/CHANGELOG.md";
27     license = licenses.bsd3;
28     platforms = platforms.unix;
29     maintainers = [ maintainers.marsam ];
30   };