2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "actor-framework";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "0.18.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "actor-framework";
|
|
|
|
repo = "actor-framework";
|
|
|
|
rev = version;
|
2021-04-22 02:08:21 +00:00
|
|
|
sha256 = "sha256-tRR+YFI/Ikf4rov4dzt59nDqaooALNspKEQehHP6sKU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2021-03-09 03:18:52 +00:00
|
|
|
"-DCAF_ENABLE_EXAMPLES:BOOL=OFF"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
preCheck = ''
|
2021-03-09 03:18:52 +00:00
|
|
|
export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
|
|
|
|
export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An open source implementation of the actor model in C++";
|
|
|
|
homepage = "http://actor-framework.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ bobakker tobim ];
|
|
|
|
};
|
|
|
|
}
|