python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / uri / default.nix
blob980d073f1281e8e91d4c3d66a2dbb0bd1a645939
1 { lib, stdenv, fetchFromGitHub, cmake, doxygen }:
3 stdenv.mkDerivation rec {
4   pname = "uri";
5   version = "1.1.0";
7   src = fetchFromGitHub {
8     owner = "cpp-netlib";
9     repo = "uri";
10     rev = "v${version}";
11     sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd";
12   };
14   NIX_CFLAGS_COMPILE = "-Wno-error=parentheses";
16   nativeBuildInputs = [ cmake doxygen ];
18   cmakeFlags = [
19     "-DUri_BUILD_TESTS=OFF" "-DUri_BUILD_DOCS=ON" "-DBUILD_SHARED_LIBS=ON"
20   ];
22   postBuild = "make doc";
24   postInstall = ''
25     install -vd $out/share/doc
26     cp -vR html $out/share/doc
27   '';
29   meta = {
30     description = "C++ URI library";
31     homepage = "https://cpp-netlib.org";
32     license = lib.licenses.boost;
33     platforms = lib.platforms.all;
34   };