mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
779 B
Nix
40 lines
779 B
Nix
{ stdenv
|
|
, lib
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, boost
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "boost-sml";
|
|
version = "1.1.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boost-ext";
|
|
repo = "sml";
|
|
rev = "v${version}";
|
|
hash = "sha256-/eR/B8rE+mh5zDPjx1kS9nVJf1rCeHP04QDavh6z6fM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|
|
|