diff options
author | Matej Blagšič <32430344+prtzl@users.noreply.github.com> | 2022-10-14 07:31:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 00:31:10 -0500 |
commit | 6740eb3eb0290c9aa70ef6b4469bd7a142359c89 (patch) | |
tree | 7fddbb96373eedf44e0d676fcb5071a6ed2901ed /pkgs/development/libraries/boost-ext/boost-sml/default.nix | |
parent | a4f1b72c9f166ae4d98e483cec7783443a667679 (diff) |
boost-sml: init at 24d762d (#194815)
Diffstat (limited to 'pkgs/development/libraries/boost-ext/boost-sml/default.nix')
-rw-r--r-- | pkgs/development/libraries/boost-ext/boost-sml/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/libraries/boost-ext/boost-sml/default.nix b/pkgs/development/libraries/boost-ext/boost-sml/default.nix new file mode 100644 index 0000000000000..fd69db12d3c08 --- /dev/null +++ b/pkgs/development/libraries/boost-ext/boost-sml/default.nix @@ -0,0 +1,41 @@ +{ stdenv +, lib +, cmake +, fetchFromGitHub +, boost +}: + +stdenv.mkDerivation rec { + pname = "boost-sml"; + # This is first commit since 1.1.6 that passes all tests (test_policies_logging is commented out) + version = "1.1.6"; + working_tests = "24d762d1901f4f6afaa5c5e0d1b7b77537964694"; + + src = fetchFromGitHub { + owner = "boost-ext"; + repo = "sml"; + rev = "${working_tests}"; + hash = "sha256-ZhIfyYdzrzPTAYevOz5I6tAcUiLRMV8HENKX9jychEY="; + }; + + buildInputs = [ boost ]; + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + "-DSML_BUILD_BENCHMARKS=OFF" + "-DSML_BUILD_EXAMPLES=OFF" + "-DSML_BUILD_TESTS=ON" + "-DSML_USE_EXCEPTIONS=ON" + ]; + + doCheck = true; + + meta = with lib; { + description = "Header only state machine library with no dependencies"; + homepage = "https://github.com/boost-ext/sml"; + license = licenses.boost; + maintainers = with maintainers; [ prtzl ]; + platforms = platforms.all; + }; +} + |