depot/third_party/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage.nix

24 lines
501 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
{ pname, version ? defaultVersion, hash, buildInputs ? [], ...}@args:
buildDunePackage (args // {
inherit version buildInputs;
minimumOCamlVersion = "4.04";
src = fetchFromGitHub {
owner = "janestreet";
repo = pname;
rev = "v${version}";
sha256 = hash;
};
strictDeps = true;
meta = {
license = lib.licenses.asl20;
homepage = "https://github.com/janestreet/${pname}";
} // args.meta;
})