diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/caf')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/caf/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/caf/default.nix b/nixpkgs/pkgs/development/libraries/caf/default.nix new file mode 100644 index 000000000000..96593487bbeb --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/caf/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub, cmake, openssl }: + +stdenv.mkDerivation rec { + pname = "actor-framework"; + version = "0.19.5"; + + src = fetchFromGitHub { + owner = "actor-framework"; + repo = "actor-framework"; + rev = version; + hash = "sha256-G69qZ8aoaRP9Ug+BIhXrYs6xteUG3Zhxbo2O09LEh3s="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ openssl ]; + + cmakeFlags = [ + "-DCAF_ENABLE_EXAMPLES:BOOL=OFF" + ]; + + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-faligned-allocation"; + + doCheck = !stdenv.isDarwin; + checkTarget = "test"; + + meta = with lib; { + description = "An open source implementation of the actor model in C++"; + homepage = "http://actor-framework.org/"; + license = licenses.bsd3; + platforms = platforms.unix; + changelog = "https://github.com/actor-framework/actor-framework/raw/${version}/CHANGELOG.md"; + maintainers = with maintainers; [ bobakker tobim ]; + }; +} |