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

34 lines
1014 B
Nix
Raw Normal View History

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 {
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 {
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
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 ];
};
}