nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_12.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
478 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:
{ pname, version ? defaultVersion, duneVersion ? "3", hash, ...}@args:
buildDunePackage (args // {
inherit version duneVersion;
minimalOCamlVersion = "4.07";
src = fetchFromGitHub {
owner = "janestreet";
repo = pname;
rev = "v${version}";
sha256 = hash;
};
meta = {
license = lib.licenses.mit;
homepage = "https://github.com/janestreet/${pname}";
} // args.meta;
})