mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
bac4d95aa2
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them if there's actual content. Inspired by https://github.com/NixOS/nixpkgs/issues/60004
29 lines
894 B
Nix
29 lines
894 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
|
, bos, cmdliner, ocamlgraph
|
|
}:
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
|
then throw "functoria is not available for OCaml ${ocaml.version}" else
|
|
|
|
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";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild 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;
|
|
};
|
|
}
|