nixpkgs/pkgs/development/libraries/uri/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
756 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, doxygen }:
2016-10-11 00:27:07 +00:00
stdenv.mkDerivation rec {
2022-02-21 21:17:57 +00:00
pname = "uri";
version = "1.1.0";
2016-10-11 00:27:07 +00:00
src = fetchFromGitHub {
owner = "cpp-netlib";
repo = "uri";
rev = "v${version}";
sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd";
2016-10-11 00:27:07 +00:00
};
2019-10-30 11:34:47 +00:00
NIX_CFLAGS_COMPILE = "-Wno-error=parentheses";
2017-08-28 22:00:42 +00:00
nativeBuildInputs = [ cmake doxygen ];
2016-10-11 00:27:07 +00:00
2017-08-28 22:00:42 +00:00
cmakeFlags = [
"-DUri_BUILD_TESTS=OFF" "-DUri_BUILD_DOCS=ON" "-DBUILD_SHARED_LIBS=ON"
];
2016-10-11 00:27:07 +00:00
2017-08-28 22:00:42 +00:00
postBuild = "make doc";
2016-10-11 00:27:07 +00:00
postInstall = ''
2017-08-28 22:00:42 +00:00
install -vd $out/share/doc
cp -vR html $out/share/doc
2016-10-11 00:27:07 +00:00
'';
meta = {
description = "C++ URI library";
homepage = "https://cpp-netlib.org";
license = lib.licenses.boost;
platforms = lib.platforms.all;
2016-10-11 00:27:07 +00:00
};
}