forked from mirrors/nixpkgs
748046d594
Also add a few legacy packages at version 0.11 for OCaml ≥ 4.07: configurator, ppx_core, ppx_driver, ppx_type_conv ocamlPackages.bap: disable for OCaml ≥ 4.07 ocamlPackages.bistro: 0.4.0 -> 0.5.0
20 lines
424 B
Nix
20 lines
424 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:
|
|
|
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
|
|
|
buildDunePackage (args // {
|
|
inherit version;
|
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janestreet";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = hash;
|
|
};
|
|
|
|
meta.license = lib.licenses.mit;
|
|
meta.homepage = "https://github.com/janestreet/${pname}";
|
|
})
|