1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/libraries/uri/default.nix
2017-08-29 00:01:11 +02:00

33 lines
726 B
Nix

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