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

34 lines
1,014 B
Nix
Raw Normal View History

2020-04-23 20:32:41 +00:00
{ lib, stdenv, fetchurl, fetchpatch, cmake, gtest }:
2015-07-18 11:17:46 +00:00
stdenv.mkDerivation rec {
pname = "uriparser";
2020-05-31 23:44:52 +00:00
version = "0.9.4";
2015-07-18 11:17:46 +00:00
2018-08-21 13:39:35 +00:00
# Release tarball differs from source tarball
2015-07-18 11:17:46 +00:00
src = fetchurl {
url = "https://github.com/uriparser/uriparser/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
2020-05-31 23:44:52 +00:00
sha256 = "0yzqp1j6sglyrmwcasgn7zlwg841p3nbxy0h78ngq20lc7jspkdp";
2015-07-18 11:17:46 +00:00
};
2020-04-23 20:32:41 +00:00
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DURIPARSER_BUILD_DOCS=OFF"
];
2020-04-23 20:08:12 +00:00
checkInputs = [ gtest ];
2018-11-23 04:00:54 +00:00
doCheck = stdenv.targetPlatform.system == stdenv.hostPlatform.system;
2015-07-18 11:17:46 +00:00
meta = with lib; {
homepage = "https://uriparser.github.io/";
2015-07-18 11:17:46 +00: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 16:27:37 +00:00
platforms = platforms.unix;
2015-07-18 11:17:46 +00:00
maintainers = with maintainers; [ bosu ];
};
}