nixpkgs-suyu/pkgs/development/ocaml-modules/janestreet/janePackage.nix
sternenseemann 4e42cac49d ocamlPackages: stdenv.lib → lib
This change was produced by searching for remaining occurrences of
stdenv.lib and replacing them manually.

Reference #108938.
2021-01-12 16:33:18 +01:00

19 lines
434 B
Nix

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