2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, openssl }:
|
2017-03-11 22:42:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "actor-framework";
|
2021-08-12 02:00:00 +02:00
|
|
|
version = "0.18.5";
|
2017-03-11 22:42:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "actor-framework";
|
|
|
|
repo = "actor-framework";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2021-08-12 02:00:00 +02:00
|
|
|
sha256 = "04b4kjisb5wzq6pilh8xzbxn7qcjgppl8k65hfv0zi0ja8fyp1xk";
|
2017-03-11 22:42:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2019-08-30 12:41:58 +02:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2019-08-30 15:47:22 +02:00
|
|
|
cmakeFlags = [
|
2021-03-01 05:20:00 +01:00
|
|
|
"-DCAF_ENABLE_EXAMPLES:BOOL=OFF"
|
2019-08-30 15:47:22 +02:00
|
|
|
];
|
|
|
|
|
2019-08-30 15:48:51 +02:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
preCheck = ''
|
2021-03-01 05:20:00 +01:00
|
|
|
export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
|
|
|
|
export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
|
2019-08-30 15:48:51 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2017-03-11 22:42:43 +01:00
|
|
|
description = "An open source implementation of the actor model in C++";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://actor-framework.org/";
|
2017-03-11 22:42:43 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2021-08-12 02:00:00 +02:00
|
|
|
changelog = "https://github.com/actor-framework/actor-framework/raw/${version}/CHANGELOG.md";
|
2019-08-30 12:41:58 +02:00
|
|
|
maintainers = with maintainers; [ bobakker tobim ];
|
2017-03-11 22:42:43 +01:00
|
|
|
};
|
|
|
|
}
|