nixpkgs/pkgs/development/libraries/cpp-netlib/default.nix
Josef Kemetmüller bcd7045998 treewide: Remove now-unneeded LD_LIBRARY_PATH in cmake derivations
Since the setting DCMAKE_SKIP_BUILD_RPATH was disabled, we can now run
the checkPhase of cmake derivations without having to tweak the
LD_LIBRARY_PATH anymore.
2022-07-04 03:49:01 +03:00

32 lines
780 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, boost, openssl }:
stdenv.mkDerivation rec {
pname = "cpp-netlib";
version = "0.13.0-final";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "${pname}-${version}";
sha256 = "18782sz7aggsl66b4mmi1i0ijwa76iww337fi9sygnplz2hs03a3";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
buildInputs = [ boost openssl ];
cmakeFlags = [
"-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
];
# Most tests make network GET requests to various websites
doCheck = false;
meta = with lib; {
description = "Collection of open-source libraries for high level network programming";
homepage = "https://cpp-netlib.org";
license = licenses.boost;
platforms = platforms.all;
};
}