2020-04-23 21:32:41 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, gtest }:
|
2015-07-18 12:17:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "uriparser";
|
2020-06-01 00:44:52 +01:00
|
|
|
version = "0.9.4";
|
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";
|
2020-06-01 00:44:52 +01:00
|
|
|
sha256 = "0yzqp1j6sglyrmwcasgn7zlwg841p3nbxy0h78ngq20lc7jspkdp";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|