9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd";
20 env.NIX_CFLAGS_COMPILE = toString (
22 "-Wno-error=parentheses"
24 "-Wno-error=deprecated-declarations"
27 ++ lib.optionals stdenv.cc.isClang [
28 # Needed with Clang 16
29 "-Wno-error=deprecated-builtins"
39 "-DUri_BUILD_TESTS=OFF"
41 "-DBUILD_SHARED_LIBS=ON"
44 postBuild = "make doc";
47 install -vd $out/share/doc
48 cp -vR html $out/share/doc
52 description = "C++ URI library";
53 homepage = "https://cpp-netlib.org";
54 license = lib.licenses.boost;
55 platforms = lib.platforms.all;