2021-04-08 16:26:57 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, gtest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uriparser";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.9.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Release tarball differs from source tarball
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "9ce4c3f151e78579f23937b44abecb428126863ad02e594e115e882353de905b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DURIPARSER_BUILD_DOCS=OFF"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ gtest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://uriparser.github.io/";
|
|
|
|
description = "Strictly RFC 3986 compliant URI parsing library";
|
|
|
|
longDescription = ''
|
|
|
|
uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C.
|
|
|
|
API documentation is available on uriparser website.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bosu ];
|
|
|
|
};
|
|
|
|
}
|