Merge pull request #76198 from bcdarwin/update-functoria

functoria: 2.0.2 -> 3.0.3
This commit is contained in:
Mario Rodas 2019-12-23 08:57:05 -05:00 committed by GitHub
commit 612752a4ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,28 +1,27 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
, bos, cmdliner, ocamlgraph
{ stdenv, fetchurl, buildDunePackage, alcotest, cmdliner
, rresult, astring, fmt, ocamlgraph, logs, bos, fpath, ptime
}:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "functoria is not available for OCaml ${ocaml.version}" else
buildDunePackage rec {
pname = "functoria";
version = "3.0.3";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-functoria-${version}";
version = "2.0.2";
src = fetchurl {
url = "https://github.com/mirage/functoria/releases/download/${version}/functoria-${version}.tbz";
sha256 = "019rl4rir4lwgjyqj2wq3ylw4daih1kxxgbc6ld6kzcq66mwr747";
};
minimumOCamlVersion = "4.04";
buildInputs = [ ocaml findlib ocamlbuild topkg ];
propagatedBuildInputs = [ bos cmdliner ocamlgraph ];
src = fetchurl {
url = "https://github.com/mirage/${pname}/releases/download/v${version}/${pname}-v${version}.tbz";
sha256 = "08wv2890gz7ci1fa2b3z4cvqf98nqb09f89y08kcmnsirlbbzlfh";
};
inherit (topkg) buildPhase installPhase;
propagatedBuildInputs = [ cmdliner rresult astring fmt ocamlgraph logs bos fpath ptime ];
checkInputs = [ alcotest ];
meta = {
description = "A DSL to organize functor applications";
homepage = https://github.com/mirage/functoria;
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
doCheck = true;
meta = with stdenv.lib; {
description = "A DSL to organize functor applications";
homepage = https://github.com/mirage/functoria;
license = licenses.isc;
maintainers = [ maintainers.vbgl ];
};
}