Unverified Commit 6740eb3e authored by Matej Blagšič's avatar Matej Blagšič Committed by GitHub
Browse files

boost-sml: init at 24d762d (#194815)

parent a4f1b72c
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{ 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;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -11286,6 +11286,8 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) Cocoa;
  };
  boost-sml = callPackage ../development/libraries/boost-ext/boost-sml {};
  smu = callPackage ../tools/text/smu { };
  smug = callPackage ../tools/misc/smug { };