1 { lib, stdenv, fetchurl, cmake, gtest }:
3 stdenv.mkDerivation rec {
7 # Release tarball differs from source tarball
9 url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
10 sha256 = "sha256-0n3qDItvb7l5jwfK7e8c2WpuP8XGGJWWd04Zr6fd3tc=";
13 nativeBuildInputs = [ cmake ];
16 "-DURIPARSER_BUILD_DOCS=OFF"
17 ] ++ lib.optional (!doCheck) "-DURIPARSER_BUILD_TESTS=OFF";
19 checkInputs = [ gtest ];
20 doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
23 description = "Strictly RFC 3986 compliant URI parsing library";
25 uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C.
26 API documentation is available on uriparser website.
28 homepage = "https://uriparser.github.io/";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ bosu ];
31 mainProgram = "uriparse";
32 platforms = platforms.unix;