btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / bo / boost-sml / package.nix
blob7987629b60d3b5fbc46a08e0325c3cdded8a0bee
1 { stdenv
2 , lib
3 , cmake
4 , fetchFromGitHub
5 , boost
6 }:
8 stdenv.mkDerivation rec {
9   pname = "boost-sml";
10   version = "1.1.11";
12   src = fetchFromGitHub {
13     owner = "boost-ext";
14     repo = "sml";
15     rev = "v${version}";
16     hash = "sha256-/eR/B8rE+mh5zDPjx1kS9nVJf1rCeHP04QDavh6z6fM=";
17   };
19   buildInputs = [ boost ];
20   nativeBuildInputs = [ cmake ];
22   cmakeFlags = [
23     "-DSML_BUILD_BENCHMARKS=OFF"
24     "-DSML_BUILD_EXAMPLES=OFF"
25     "-DSML_BUILD_TESTS=ON"
26     "-DSML_USE_EXCEPTIONS=ON"
27   ];
29   doCheck = true;
31   meta = with lib; {
32     description = "Header only state machine library with no dependencies";
33     homepage = "https://github.com/boost-ext/sml";
34     license = licenses.boost;
35     maintainers = with maintainers; [ prtzl ];
36     platforms = platforms.all;
37   };