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