2016-10-11 02:27:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, doxygen }:
|
|
|
|
|
2019-01-11 11:55:23 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "uri-${version}";
|
|
|
|
version = "1.1.0";
|
2016-10-11 02:27:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cpp-netlib";
|
|
|
|
repo = "uri";
|
2019-01-11 11:55:23 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd";
|
2016-10-11 02:27:07 +02:00
|
|
|
};
|
|
|
|
|
2019-10-30 12:34:47 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=parentheses";
|
2019-01-11 11:55:23 +01: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://cpp-netlib.org";
|
2016-10-11 02:27:07 +02:00
|
|
|
license = stdenv.lib.licenses.boost;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|