mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
20 lines
424 B
Nix
20 lines
424 B
Nix
|
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:
|
||
|
|
||
|
{ pname, version ? defaultVersion, hash, ...}@args:
|
||
|
|
||
|
buildDunePackage (args // {
|
||
|
inherit version;
|
||
|
|
||
|
minimumOCamlVersion = "4.07";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "janestreet";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
sha256 = hash;
|
||
|
};
|
||
|
|
||
|
meta.license = lib.licenses.mit;
|
||
|
meta.homepage = "https://github.com/janestreet/${pname}";
|
||
|
})
|