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

38 lines
985 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, openssl }:
2017-03-11 21:42:43 +00:00
stdenv.mkDerivation rec {
pname = "actor-framework";
version = "0.18.5";
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;
sha256 = "04b4kjisb5wzq6pilh8xzbxn7qcjgppl8k65hfv0zi0ja8fyp1xk";
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_ENABLE_EXAMPLES:BOOL=OFF"
2019-08-30 13:47:22 +00:00
];
2019-08-30 13:48:51 +00:00
doCheck = true;
checkTarget = "test";
preCheck = ''
export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
2019-08-30 13:48:51 +00:00
'';
meta = with lib; {
2017-03-11 21:42:43 +00:00
description = "An open source implementation of the actor model in C++";
homepage = "http://actor-framework.org/";
2017-03-11 21:42:43 +00:00
license = licenses.bsd3;
platforms = platforms.unix;
changelog = "https://github.com/actor-framework/actor-framework/raw/${version}/CHANGELOG.md";
2019-08-30 10:41:58 +00:00
maintainers = with maintainers; [ bobakker tobim ];
2017-03-11 21:42:43 +00:00
};
}