forked from mirrors/nixpkgs
functoria: 2.0.2 -> 3.0.3
This commit is contained in:
parent
85d4bfc94b
commit
80da0a626e
1 changed files with 20 additions and 21 deletions
|
@ -1,28 +1,27 @@
|
||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
{ stdenv, fetchurl, buildDunePackage, alcotest, cmdliner
|
||||||
, bos, cmdliner, ocamlgraph
|
, rresult, astring, fmt, ocamlgraph, logs, bos, fpath, ptime
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
buildDunePackage rec {
|
||||||
then throw "functoria is not available for OCaml ${ocaml.version}" else
|
pname = "functoria";
|
||||||
|
version = "3.0.3";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
minimumOCamlVersion = "4.04";
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
src = fetchurl {
|
||||||
propagatedBuildInputs = [ bos cmdliner ocamlgraph ];
|
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 = {
|
doCheck = true;
|
||||||
description = "A DSL to organize functor applications";
|
|
||||||
homepage = https://github.com/mirage/functoria;
|
meta = with stdenv.lib; {
|
||||||
license = stdenv.lib.licenses.isc;
|
description = "A DSL to organize functor applications";
|
||||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
homepage = https://github.com/mirage/functoria;
|
||||||
inherit (ocaml.meta) platforms;
|
license = licenses.isc;
|
||||||
};
|
maintainers = [ maintainers.vbgl ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue