8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
25 lines
522 B
Nix
25 lines
522 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:
|
|
|
|
{ pname, version ? defaultVersion, hash, buildInputs ? [], ...}@args:
|
|
|
|
buildDunePackage (args // {
|
|
inherit version buildInputs;
|
|
|
|
useDune2 = false;
|
|
|
|
minimalOCamlVersion = "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;
|
|
})
|