2018-11-23 04:00:54 +00:00
|
|
|
{ lib, stdenv, fetchurl, gtest, pkgconfig, doxygen, graphviz }:
|
2015-07-18 11:17:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-03 18:00:59 +00:00
|
|
|
name = "uriparser-${version}";
|
2019-01-06 04:23:54 +00:00
|
|
|
version = "0.9.1";
|
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 {
|
2018-08-21 13:39:35 +00:00
|
|
|
url = "https://github.com/uriparser/uriparser/releases/download/${name}/${name}.tar.bz2";
|
2019-01-06 04:23:54 +00:00
|
|
|
sha256 = "1gisi7h8hd6mswbiaaa3s25bnb77xf37pzrmjy63rcdpwcyqy93m";
|
2015-07-18 11:17:46 +00:00
|
|
|
};
|
|
|
|
|
2018-11-23 04:00:54 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig doxygen graphviz ];
|
|
|
|
buildInputs = lib.optional doCheck gtest;
|
|
|
|
configureFlags = lib.optional (!doCheck) "--disable-tests";
|
2017-03-03 18:00:59 +00:00
|
|
|
|
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 stdenv.lib; {
|
2018-08-21 13:39:35 +00:00
|
|
|
homepage = https://uriparser.github.io/;
|
2015-07-18 11:17:46 +00: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;
|
|
|
|
platforms = platforms.linux;
|
2015-07-18 11:17:46 +00:00
|
|
|
maintainers = with maintainers; [ bosu ];
|
|
|
|
};
|
|
|
|
}
|