nixpkgs/pkgs/development/libraries/uriparser/default.nix

34 lines
1002 B
Nix
Raw Normal View History

2021-03-19 16:12:48 +00:00
{ lib, stdenv, fetchurl, cmake, gtest }:
2015-07-18 12:17:46 +01:00
stdenv.mkDerivation rec {
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 {
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
meta = with lib; {
homepage = "https://uriparser.github.io/";
2015-07-18 12:17:46 +01:00
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;
2019-04-06 17:27:37 +01:00
platforms = platforms.unix;
2015-07-18 12:17:46 +01:00
maintainers = with maintainers; [ bosu ];
};
}