depot/third_party/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

23 lines
501 B
Nix

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