cerberus: init at 0-unstable-2025-06-29 (#421537)

authored by Sandro and committed by GitHub 6a7d91d5 5d331854

+92
+92
pkgs/by-name/ce/cerberus/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + writableTmpDirAsHomeHook, 5 + unstableGitUpdater, 6 + ocamlPackages, 7 + opam, 8 + }: 9 + ocamlPackages.buildDunePackage { 10 + pname = "cerberus"; 11 + version = "0-unstable-2025-06-29"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "rems-project"; 15 + repo = "cerberus"; 16 + rev = "61700b301f0f1fbc1940db51c50240c397759057"; 17 + hash = "sha256-QpgHOQqiJMlMf2RH5/TI3AirdqYPS7HwE9YIlxgorqg="; 18 + }; 19 + 20 + minimalOCamlVersion = "4.12"; 21 + 22 + strictDeps = true; 23 + 24 + nativeBuildInputs = [ 25 + opam 26 + writableTmpDirAsHomeHook 27 + ocamlPackages.lem 28 + ocamlPackages.menhir 29 + ]; 30 + 31 + buildInputs = with ocamlPackages; [ 32 + sha 33 + pprint 34 + cmdliner 35 + yojson 36 + lem 37 + result 38 + ppx_deriving 39 + zarith 40 + sexplib 41 + menhirLib 42 + janeStreet.ppx_sexp_conv 43 + ]; 44 + 45 + env.OPAM_SWITCH_PREFIX = placeholder "out"; 46 + buildPhase = '' 47 + runHook preBuild 48 + 49 + make Q= cerberus 50 + 51 + runHook postBuild 52 + ''; 53 + 54 + doInstallCheck = true; 55 + installCheckPhase = '' 56 + runHook preInstallCheck 57 + 58 + PATH="$out/bin":$PATH 59 + 60 + patchShebangs --build tests 61 + 62 + tests/run-ci.sh 63 + 64 + runHook postInstallCheck 65 + ''; 66 + 67 + passthru.updateScript = unstableGitUpdater { branch = "master"; }; 68 + 69 + meta = { 70 + homepage = "https://www.cl.cam.ac.uk/~pes20/cerberus/"; 71 + license = with lib.licenses; [ 72 + # Most of Cerberus 73 + bsd2 74 + # https://github.com/rems-project/cerberus/blob/master/THIRD_PARTY_FILES.md 75 + # Files from Linux kernel 76 + gpl2Only 77 + # Files from cppmem 78 + bsd3 79 + # Files from musl 80 + mit 81 + # Files from BSD 82 + bsdOriginal 83 + # Slightly modified vendored SibylFS 84 + isc 85 + ]; 86 + mainProgram = "cerberus"; 87 + maintainers = with lib.maintainers; [ 88 + RossSmyth 89 + ]; 90 + platforms = lib.platforms.unix; 91 + }; 92 + }