2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
39 lines
778 B
Nix
39 lines
778 B
Nix
{ stdenv
|
|
, lib
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, boost
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "boost-sml";
|
|
version = "1.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boost-ext";
|
|
repo = "sml";
|
|
rev = "v${version}";
|
|
hash = "sha256-RYgSpnsmgZybpkJALIzxpkDRfe9QF2FHG+nA3msFaK0=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|
|
|