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

37 lines
920 B
Nix
Raw Normal View History

2019-08-30 10:41:58 +00:00
{ stdenv, fetchFromGitHub, cmake, openssl }:
2017-03-11 21:42:43 +00:00
stdenv.mkDerivation rec {
pname = "actor-framework";
2019-12-23 03:32:38 +00:00
version = "0.17.3";
2017-03-11 21:42:43 +00:00
src = fetchFromGitHub {
owner = "actor-framework";
repo = "actor-framework";
2019-09-08 23:38:31 +00:00
rev = version;
2019-12-23 03:32:38 +00:00
sha256 = "187r7vc4kpd0v6bb1y51zwqm9y1lh0m84vkwmrxn8rrp4bwdxlpj";
2017-03-11 21:42:43 +00:00
};
nativeBuildInputs = [ cmake ];
2019-08-30 10:41:58 +00:00
buildInputs = [ openssl ];
2019-08-30 13:47:22 +00:00
cmakeFlags = [
"-DCAF_NO_EXAMPLES:BOOL=TRUE"
];
2019-08-30 13:48:51 +00:00
doCheck = true;
checkTarget = "test";
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/lib
2019-08-30 13:48:51 +00:00
'';
2017-03-11 21:42:43 +00:00
meta = with stdenv.lib; {
description = "An open source implementation of the actor model in C++";
homepage = http://actor-framework.org/;
license = licenses.bsd3;
platforms = platforms.unix;
2019-08-30 10:41:58 +00:00
maintainers = with maintainers; [ bobakker tobim ];
2017-03-11 21:42:43 +00:00
};
}