2016-10-11 02:27:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, doxygen }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-08-29 00:00:42 +02:00
|
|
|
name = "uri-2017-07-16";
|
2016-10-11 02:27:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cpp-netlib";
|
|
|
|
repo = "uri";
|
2017-08-29 00:00:42 +02:00
|
|
|
rev = "ac30f19cc7a4745667a8ebd3eac68d5e70b9a4a6";
|
|
|
|
sha256 = "0ys295ij071rilwkk3xq1p3sdzgb0gyybvd3f0cahh67kh8hyk6n";
|
2016-10-11 02:27:07 +02:00
|
|
|
};
|
|
|
|
|
2017-08-29 00:00:42 +02:00
|
|
|
nativeBuildInputs = [ cmake doxygen ];
|
2016-10-11 02:27:07 +02:00
|
|
|
|
2017-08-29 00:00:42 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUri_BUILD_TESTS=OFF" "-DUri_BUILD_DOCS=ON" "-DBUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
2016-10-11 02:27:07 +02:00
|
|
|
|
2017-08-29 00:00:42 +02:00
|
|
|
postBuild = "make doc";
|
2016-10-11 02:27:07 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
2017-08-29 00:00:42 +02:00
|
|
|
install -vd $out/share/doc
|
|
|
|
cp -vR html $out/share/doc
|
2016-10-11 02:27:07 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C++ URI library";
|
|
|
|
homepage = http://cpp-netlib.org;
|
|
|
|
license = stdenv.lib.licenses.boost;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|