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";
|
2021-04-08 16:26:57 +00:00
|
|
|
version = "0.9.5";
|
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";
|
2021-04-08 16:26:57 +00:00
|
|
|
sha256 = "0v30qr5hl3xybl9nzwaw46kblwn94w5xpri22wanrrpjlzmn306x";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|