diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-01-12 19:49:44 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-01-24 21:04:02 +0100 |
commit | a7a61998e9a5da33c7540486cc0616271f5e5f73 (patch) | |
tree | 73b1a2500dbd129965e4de92943aa95550fc4077 /pkgs/development/ocaml-modules | |
parent | 7fee56ec59fd460fe0e4cff2f072a1457f23ba41 (diff) | |
download | nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.tar nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.tar.gz nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.tar.bz2 nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.tar.lz nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.tar.xz nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.tar.zst nixlib-a7a61998e9a5da33c7540486cc0616271f5e5f73.zip |
ocamlPackages.{repr,ppx_repr}: init at 0.2.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/repr/default.nix | 30 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/repr/ppx.nix | 23 |
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/repr/default.nix b/pkgs/development/ocaml-modules/repr/default.nix new file mode 100644 index 000000000000..de6877ddd68e --- /dev/null +++ b/pkgs/development/ocaml-modules/repr/default.nix @@ -0,0 +1,30 @@ +{ lib, buildDunePackage, fetchurl, fmt, uutf, jsonm, base64, either }: + +buildDunePackage rec { + pname = "repr"; + version = "0.2.1"; + + minimumOCamlVersion = "4.08"; + + src = fetchurl { + url = "https://github.com/mirage/${pname}/releases/download/${version}/${pname}-fuzz-${version}.tbz"; + sha256 = "1cbzbawbn71mmpw8y84s1p2pbhc055w1znz64jvr00c7fdr9p8hc"; + }; + + useDune2 = true; + + propagatedBuildInputs = [ + fmt + uutf + jsonm + base64 + either + ]; + + meta = with lib; { + description = "Dynamic type representations. Provides no stability guarantee"; + homepage = "https://github.com/mirage/repr"; + license = licenses.isc; + maintainers = [ maintainers.sternenseemann ]; + }; +} diff --git a/pkgs/development/ocaml-modules/repr/ppx.nix b/pkgs/development/ocaml-modules/repr/ppx.nix new file mode 100644 index 000000000000..a1112ef9ac74 --- /dev/null +++ b/pkgs/development/ocaml-modules/repr/ppx.nix @@ -0,0 +1,23 @@ +{ buildDunePackage, repr, ppxlib, ppx_deriving, alcotest, hex }: + +buildDunePackage { + pname = "ppx_repr"; + + inherit (repr) src version useDune2; + + propagatedBuildInputs = [ + repr + ppxlib + ppx_deriving + ]; + + doCheck = true; + checkInputs = [ + alcotest + hex + ]; + + meta = repr.meta // { + description = "PPX deriver for type representations"; + }; +} |