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 = "0v30qr5hl3xybl9nzwaw46kblwn94w5xpri22wanrrpjlzmn306x";
13 nativeBuildInputs = [ cmake ];
16 "-DURIPARSER_BUILD_DOCS=OFF"
19 checkInputs = [ gtest ];
20 doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
23 homepage = "https://uriparser.github.io/";
24 description = "Strictly RFC 3986 compliant URI parsing library";
26 uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C.
27 API documentation is available on uriparser website.
29 license = licenses.bsd3;
30 platforms = platforms.unix;
31 maintainers = with maintainers; [ bosu ];