diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_16.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_16.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_16.nix b/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_16.nix new file mode 100644 index 000000000000..061fed447466 --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/janestreet/janePackage_0_16.nix @@ -0,0 +1,30 @@ +{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.16" }: + +{ pname +, version ? defaultVersion +, hash +, minimalOCamlVersion ? "4.14" +, doCheck ? true +, buildInputs ? [] +, ...}@args: + +buildDunePackage (args // { + duneVersion = "3"; + inherit version buildInputs; + + inherit minimalOCamlVersion; + + src = fetchFromGitHub { + owner = "janestreet"; + repo = pname; + rev = "v${version}"; + sha256 = hash; + }; + + inherit doCheck; + + meta = { + license = lib.licenses.mit; + homepage = "https://github.com/janestreet/${pname}"; + } // args.meta; +}) |