2015-11-30 11:45:55 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib }:
|
2014-06-25 14:08:12 +02:00
|
|
|
let
|
|
|
|
pname = "easy-format";
|
2015-12-15 21:07:33 +01:00
|
|
|
version = "1.2.0";
|
2014-06-25 14:08:12 +02:00
|
|
|
in
|
2015-11-30 11:45:55 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-06-25 14:08:12 +02:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2015-11-30 11:45:55 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mjambon/${pname}/archive/v${version}.tar.gz";
|
2015-12-15 21:07:33 +01:00
|
|
|
sha256 = "00ga7mrlycjc99gzp3bgx6iwhf7i6j8856f8xzrf1yas7zwzgzm9";
|
2014-06-25 14:08:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2015-11-30 11:45:55 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2014-09-21 12:02:55 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-25 14:08:12 +02:00
|
|
|
description = "A high-level and functional interface to the Format module of the OCaml standard library";
|
2019-11-16 01:41:23 +01:00
|
|
|
homepage = "https://github.com/ocaml-community/${pname}";
|
2014-09-21 12:02:55 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
2014-06-25 14:08:12 +02:00
|
|
|
};
|
|
|
|
}
|