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

37 lines
922 B
Nix
Raw Normal View History

2019-08-30 03:41:58 -07:00
{ stdenv, fetchFromGitHub, cmake, openssl }:
2017-03-11 13:42:43 -08:00
stdenv.mkDerivation rec {
pname = "actor-framework";
2020-02-11 17:28:09 -08:00
version = "0.17.4";
2017-03-11 13:42:43 -08:00
src = fetchFromGitHub {
owner = "actor-framework";
repo = "actor-framework";
2019-09-08 16:38:31 -07:00
rev = version;
2020-02-11 17:28:09 -08:00
sha256 = "04p3kgk1zadadl6n0prwc77nfxrbdasbwbqpws1y9y6f77lrcxdn";
2017-03-11 13:42:43 -08:00
};
nativeBuildInputs = [ cmake ];
2019-08-30 03:41:58 -07:00
buildInputs = [ openssl ];
2019-08-30 06:47:22 -07:00
cmakeFlags = [
"-DCAF_NO_EXAMPLES:BOOL=TRUE"
];
2019-08-30 06:48:51 -07: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 06:48:51 -07:00
'';
2017-03-11 13:42:43 -08:00
meta = with stdenv.lib; {
description = "An open source implementation of the actor model in C++";
homepage = "http://actor-framework.org/";
2017-03-11 13:42:43 -08:00
license = licenses.bsd3;
platforms = platforms.unix;
2019-08-30 03:41:58 -07:00
maintainers = with maintainers; [ bobakker tobim ];
2017-03-11 13:42:43 -08:00
};
}