43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gtest,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "uriparser";
|
|
version = "0.9.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uriparser";
|
|
repo = "uriparser";
|
|
tag = "uriparser-${finalAttrs.version}";
|
|
hash = "sha256-U/AM8ULKGDfL3t+VUcn+t9sn4z/uc+pDjf2HHwHLI2M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "URIPARSER_BUILD_DOCS" false)
|
|
(lib.cmakeBool "URIPARSER_BUILD_TESTS" finalAttrs.finalPackage.doCheck)
|
|
];
|
|
|
|
nativeCheckInputs = [ gtest ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/uriparser/uriparser/blob/uriparser-${finalAttrs.version}/ChangeLog";
|
|
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.
|
|
'';
|
|
homepage = "https://uriparser.github.io/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ bosu ];
|
|
mainProgram = "uriparse";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|