ocamlPackages.mstruct: init at 1.3.3
Mstruct is a thin mutable layer on top of cstruct Homepage: https://github.com/mirage/ocaml-mstruct
This commit is contained in:
parent
6875115b8e
commit
4338ddd0f9
33
pkgs/development/ocaml-modules/mstruct/default.nix
Normal file
33
pkgs/development/ocaml-modules/mstruct/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, opam
|
||||||
|
, cstruct
|
||||||
|
}:
|
||||||
|
|
||||||
|
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
|
then throw "mstruct is not available for OCaml ${ocaml.version}"
|
||||||
|
else
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.3.3";
|
||||||
|
name = "ocaml${ocaml.version}-mstruct-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mirage";
|
||||||
|
repo = "ocaml-mstruct";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1rxjzkg6156vl6yazbk1h0ndqj80wym5aliaapijf60apqqmsp4s";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ ocaml findlib jbuilder opam ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ cstruct ];
|
||||||
|
|
||||||
|
inherit (jbuilder) installPhase;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A thin mutable layer on top of cstruct";
|
||||||
|
license = stdenv.lib.licenses.isc;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||||
|
inherit (src.meta) homepage;
|
||||||
|
inherit (ocaml.meta) platforms;
|
||||||
|
};
|
||||||
|
}
|
@ -316,6 +316,8 @@ let
|
|||||||
|
|
||||||
mparser = callPackage ../development/ocaml-modules/mparser { };
|
mparser = callPackage ../development/ocaml-modules/mparser { };
|
||||||
|
|
||||||
|
mstruct = callPackage ../development/ocaml-modules/mstruct { };
|
||||||
|
|
||||||
mtime = callPackage ../development/ocaml-modules/mtime { };
|
mtime = callPackage ../development/ocaml-modules/mtime { };
|
||||||
|
|
||||||
nocrypto = callPackage ../development/ocaml-modules/nocrypto {
|
nocrypto = callPackage ../development/ocaml-modules/nocrypto {
|
||||||
|
Loading…
Reference in New Issue
Block a user