blob: 0383adca64a4659fec51e683138acf21e0c5c32c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ 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;
};
}
|