nixpkgs-suyu/pkgs/development/ocaml-modules/functoria/default.nix

28 lines
810 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
, bos, cmdliner, ocamlgraph
}:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-functoria-${version}";
version = "2.0.2";
src = fetchurl {
url = "http://github.com/mirage/functoria/releases/download/${version}/functoria-${version}.tbz";
sha256 = "019rl4rir4lwgjyqj2wq3ylw4daih1kxxgbc6ld6kzcq66mwr747";
};
unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
propagatedBuildInputs = [ bos cmdliner ocamlgraph ];
inherit (topkg) buildPhase installPhase;
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;
};
}