3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/hex/default.nix

28 lines
765 B
Nix
Raw Normal View History

2015-06-01 19:41:50 +01:00
{ stdenv, fetchzip, ocaml, findlib, cstruct }:
2015-12-15 21:02:15 +00:00
let version = "1.0.0"; in
stdenv.mkDerivation {
name = "ocaml-hex-${version}";
src = fetchzip {
url = "https://github.com/mirage/ocaml-hex/archive/${version}.tar.gz";
2015-12-15 21:02:15 +00:00
sha256 = "0g4cq4bsksga15fa5ln083gkglawknbnhi2s4k8yk0yi5xngvwm4";
};
buildInputs = [ ocaml findlib ];
2015-06-01 19:41:50 +01:00
propagatedBuildInputs = [ cstruct ];
2015-12-15 21:02:15 +00:00
configureFlags = "--enable-tests";
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
description = "Mininal OCaml library providing hexadecimal converters";
homepage = https://github.com/mirage/ocaml-hex;
license = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
platforms = ocaml.meta.platforms;
};
}