git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.unstrctrd: init 0.3
commit050114362fdaf5b4fdb075aa09952bfa028c9970 authorsuperherointj <5861043+superherointj@users.noreply.github.com> dateMon 25 Oct 2021, 20:14 (5 years ago) parent153957a
2 files changed+50
pkgs/development/ocaml-modules/unstrctrd/default.nix+48 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/unstrctrd/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ alcotest
2+, angstrom
3+, bigstringaf
4+, buildDunePackage
5+, crowbar
6+, fetchzip
7+, fmt
8+, hxd
9+, ke
10+, lib
11+, rresult
12+, uutf
13+}:
14+
15+buildDunePackage rec {
16+ pname = "unstrctrd";
17+ version = "0.3";
18+
19+ src = fetchzip {
20+ url = "https://github.com/dinosaure/unstrctrd/releases/download/v${version}/unstrctrd-v${version}.tbz";
21+ sha256 = "0mjm4v7kk75iwwsfnpmxc3bsl8aisz53y7z21sykdp60f4rxnah7";
22+ };
23+
24+ useDune2 = true;
25+
26+ propagatedBuildInputs = [
27+ angstrom
28+ uutf
29+ ];
30+
31+ checkInputs = [
32+ alcotest
33+ bigstringaf
34+ crowbar
35+ fmt
36+ hxd
37+ ke
38+ rresult
39+ ];
40+ doCheck = true;
41+
42+ meta = {
43+ description = "A library for parsing email headers";
44+ homepage = "https://github.com/dinosaure/unstrctrd";
45+ license = lib.licenses.mit;
46+ maintainers = with lib.maintainers; [ superherointj ];
47+ };
48+}
pkgs/top-level/ocaml-packages.nix+2
@@ -1361,6 +1361,8 @@ let
13611361
13621362 stdint = callPackage ../development/ocaml-modules/stdint { };
13631363
1364+ unstrctrd = callPackage ../development/ocaml-modules/unstrctrd { };
1365+
13641366 uucd = callPackage ../development/ocaml-modules/uucd { };
13651367 uucp = callPackage ../development/ocaml-modules/uucp { };
13661368 uunf = callPackage ../development/ocaml-modules/uunf { };