2015-07-18 12:17:46 +01:00
|
|
|
{ stdenv, fetchurl, cpptest, pkgconfig, doxygen, graphviz }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-03 18:00:59 +00:00
|
|
|
name = "uriparser-${version}";
|
2018-02-07 15:29:16 +00:00
|
|
|
version = "0.8.5";
|
2015-07-18 12:17:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-03 18:00:59 +00:00
|
|
|
url = "mirror://sourceforge/project/uriparser/Sources/${version}/${name}.tar.bz2";
|
2018-02-07 15:29:16 +00:00
|
|
|
sha256 = "1p9c6lr39rjl4bbzi7wl2nsg72gcz8qhicxh9v043qyr0dfcvsjq";
|
2015-07-18 12:17:46 +01:00
|
|
|
};
|
|
|
|
|
2017-03-03 18:00:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cpptest doxygen graphviz ];
|
|
|
|
|
|
|
|
# There is actually no .map files to install in doc for v0.8.4
|
|
|
|
# (dot outputs only SVG and PNG in this release)
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace doc/Makefile.am --replace " html/*.map" ""
|
|
|
|
substituteInPlace doc/Makefile.in --replace " html/*.map" ""
|
|
|
|
'';
|
|
|
|
|
2015-07-18 12:17:46 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://uriparser.sourceforge.net/;
|
|
|
|
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 12:17:46 +01:00
|
|
|
maintainers = with maintainers; [ bosu ];
|
|
|
|
};
|
|
|
|
}
|