mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
282bc1a10c
(cherry picked from commit 36b406fd1b
)
Signed-off-by: Domen Kožar <domen@dev.si>
32 lines
995 B
Nix
32 lines
995 B
Nix
{ stdenv, fetchzip, ocaml, findlib, cstruct, zarith, ounit }:
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
|
|
|
|
let version = "0.1.2"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "ocaml-asn1-combinators-${version}";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/mirleft/ocaml-asn1-combinators/archive/${version}.tar.gz";
|
|
sha256 = "13vpdgcyph4vq3gcp8b16756s4nz3crpxhxfhcqgc1ffz61gc0h5";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ounit ];
|
|
propagatedBuildInputs = [ cstruct zarith ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
configureFlags = "--enable-tests";
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
homepage = https://github.com/mirleft/ocaml-asn1-combinators;
|
|
description = "Combinators for expressing ASN.1 grammars in OCaml";
|
|
platforms = ocaml.meta.platforms;
|
|
license = stdenv.lib.licenses.bsd2;
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
broken = stdenv.isi686; # https://github.com/mirleft/ocaml-asn1-combinators/issues/13
|
|
};
|
|
}
|