diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-12-29 23:14:50 +0100 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-12-29 23:50:37 +0100 |
commit | 9a56ba878108b06c63fb41adbd14ecf2b93561fb (patch) | |
tree | 4283d0712975599827ee41159646459ff18b732f /pkgs/development/ocaml-modules | |
parent | 697e5e8346d8374ab12612ac8168a47d789a416b (diff) | |
download | nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.tar nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.tar.gz nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.tar.bz2 nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.tar.lz nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.tar.xz nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.tar.zst nixlib-9a56ba878108b06c63fb41adbd14ecf2b93561fb.zip |
ocamlPackages.ethernet: init at 2.2.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ethernet/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ethernet/default.nix b/pkgs/development/ocaml-modules/ethernet/default.nix new file mode 100644 index 000000000000..bc4f4a475447 --- /dev/null +++ b/pkgs/development/ocaml-modules/ethernet/default.nix @@ -0,0 +1,42 @@ +{ lib, buildDunePackage, fetchurl +, rresult, cstruct, ppx_cstruct, mirage-net, mirage-protocols +, mirage-profile, macaddr, fmt, lwt, logs +}: + +buildDunePackage rec { + pname = "ethernet"; + version = "2.2.0"; + + minimumOCamlVersion = "4.06"; + + # necessary due to cstruct + useDune2 = true; + + src = fetchurl { + url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz"; + sha256 = "0qzisqibx2gd8rh330n642mk5wz229199rnlrs7x8cr5pnymif7z"; + }; + + nativeBuildInputs = [ + ppx_cstruct + ]; + + propagatedBuildInputs = [ + rresult + cstruct + mirage-net + mirage-protocols + macaddr + mirage-profile + fmt + lwt + logs + ]; + + meta = with lib; { + description = "OCaml Ethernet (IEEE 802.3) layer, used in MirageOS"; + homepage = "https://github.com/mirage/ethernet"; + license = licenses.isc; + maintainers = [ maintainers.sternenseemann ]; + }; +} |