From 6edabf41b383335e15fd2dc91aa16c6c6e9bb965 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 8 Apr 2020 08:33:19 +0200 Subject: [PATCH] ocamlPackages.mirage-stack: init at 2.0.1 --- .../ocaml-modules/mirage-stack/default.nix | 21 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-stack/default.nix diff --git a/pkgs/development/ocaml-modules/mirage-stack/default.nix b/pkgs/development/ocaml-modules/mirage-stack/default.nix new file mode 100644 index 000000000000..64168716399d --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-stack/default.nix @@ -0,0 +1,21 @@ +{ lib, buildDunePackage, fetchurl, mirage-protocols }: + +buildDunePackage rec { + pname = "mirage-stack"; + version = "2.0.1"; + + src = fetchurl { + url = "https://github.com/mirage/mirage-stack/releases/download/v${version}/mirage-stack-v${version}.tbz"; + sha256 = "1xdy59bxnki1r0jwm3s8fwarhhbxr0lsqqiag5b1j41hciiqp9jq"; + }; + + propagatedBuildInputs = [ mirage-protocols ]; + + meta = { + description = "MirageOS signatures for network stacks"; + homepage = "https://github.com/mirage/mirage-stack"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +} + diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 739f6889c57e..4296d0d6ccaf 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -544,6 +544,8 @@ let mirage-random = callPackage ../development/ocaml-modules/mirage-random { }; + mirage-stack = callPackage ../development/ocaml-modules/mirage-stack { }; + mlgmp = callPackage ../development/ocaml-modules/mlgmp { }; mlgmpidl = callPackage ../development/ocaml-modules/mlgmpidl { };