2021-03-19 16:12:48 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, gtest }:
|
2015-07-18 12:17:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "uriparser";
|
2021-03-19 16:12:48 +00:00
|
|
|
version = "0.9.5";
|
2015-07-18 12:17:46 +01:00
|
|
|
|
2018-08-21 14:39:35 +01:00
|
|
|
# Release tarball differs from source tarball
|
2015-07-18 12:17:46 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
|
2021-03-19 16:12:48 +00:00
|
|
|
sha256 = "0v30qr5hl3xybl9nzwaw46kblwn94w5xpri22wanrrpjlzmn306x";
|
2015-07-18 12:17:46 +01:00
|
|
|
};
|
|
|
|
|
2020-04-23 21:32:41 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DURIPARSER_BUILD_DOCS=OFF"
|
|
|
|
];
|
2020-04-23 21:08:12 +01:00
|
|
|
|
|
|
|
checkInputs = [ gtest ];
|
2018-11-23 04:00:54 +00:00
|
|
|
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
|
2015-07-18 12:17:46 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://uriparser.github.io/";
|
2015-07-18 12:17:46 +01:00
|
|
|
description = "Strictly RFC 3986 compliant URI parsing library";
|
2017-03-03 18:00:59 +00:00
|
|
|
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;
|
2019-04-06 17:27:37 +01:00
|
|
|
platforms = platforms.unix;
|
2015-07-18 12:17:46 +01:00
|
|
|
maintainers = with maintainers; [ bosu ];
|
|
|
|
};
|
|
|
|
}
|