git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.crowbar: init at 0.2
commit1c7fd15a423cf26590207dd9c133fba051a55af6 authorsternenseemann <git@lukasepple.de> dateThu 21 May 2020, 02:23 (7 years ago) parent35a94ea
2 files changed+34
pkgs/development/ocaml-modules/crowbar/default.nix+32 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/crowbar/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, buildDunePackage, fetchFromGitHub, ocplib-endian, cmdliner, afl-persistent
2+, calendar, fpath, pprint, uutf, uunf, uucp }:
3+
4+buildDunePackage rec {
5+ pname = "crowbar";
6+ version = "0.2";
7+
8+ src = fetchFromGitHub {
9+ owner = "stedolan";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "0wjfc9irvirfkic32ivvj6qb7r838w08b0d3vmngigbjpjyc9b14";
13+ };
14+
15+ minimumOCamlVersion = "4.08";
16+
17+ # disable xmldiff tests, so we don't need to package unmaintained and legacy pkgs
18+ postPatch = "rm -rf examples/xmldiff";
19+
20+ propagatedBuildInputs = [ ocplib-endian cmdliner afl-persistent ];
21+ checkInputs = [ calendar fpath pprint uutf uunf uucp ];
22+ # uunf is broken on aarch64
23+ doCheck = !stdenv.isAarch64;
24+
25+ meta = with stdenv.lib; {
26+ description = "Property fuzzing for OCaml";
27+ homepage = "https://github.com/stedolan/crowbar";
28+ license = licenses.mit;
29+ maintainers = [ maintainers.sternenseemann ];
30+ };
31+}
32+
pkgs/top-level/ocaml-packages.nix+2
@@ -161,6 +161,8 @@ let
161161
162162 cpuid = callPackage ../development/ocaml-modules/cpuid { };
163163
164+ crowbar = callPackage ../development/ocaml-modules/crowbar { };
165+
164166 crunch = callPackage ../development/tools/ocaml/crunch { };
165167
166168 cryptokit = callPackage ../development/ocaml-modules/cryptokit { };