2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, boost
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "boost-sml";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.1.11";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boost-ext";
|
|
|
|
repo = "sml";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-/eR/B8rE+mh5zDPjx1kS9nVJf1rCeHP04QDavh6z6fM=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|