Merge pull request #197363 from romildo/upd.add-update-script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, ocaml-syntax-shims, alcotest, result, bigstringaf, ppx_let }:
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, ocaml-syntax-shims, alcotest, result, bigstringaf, ppx_let, gitUpdater }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "angstrom";
|
||||
@@ -19,6 +19,8 @@ buildDunePackage rec {
|
||||
propagatedBuildInputs = [ bigstringaf result ];
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/inhabitedtype/angstrom";
|
||||
description = "OCaml parser combinators built for speed and memory efficiency";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ lib, fetchurl, ocaml, buildDunePackage
|
||||
{ lib, fetchFromGitHub, ocaml, buildDunePackage
|
||||
, cmdliner, dap, fmt, iter, logs, lru, lwt_ppx, lwt_react, menhir, menhirLib, path_glob, ppx_deriving_yojson
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
if lib.versionAtLeast ocaml.version "4.13"
|
||||
@@ -14,13 +15,17 @@ buildDunePackage rec {
|
||||
|
||||
minimumOCamlVersion = "4.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/hackwaly/ocamlearlybird/releases/download/${version}/${pname}-${version}.tbz";
|
||||
sha256 = "1pwzhcr3pw24ra4j4d23vz71h0psz4xkyp7b12l2wl1slxzjbrxa";
|
||||
src = fetchFromGitHub {
|
||||
owner = "hackwaly";
|
||||
repo = "ocamlearlybird";
|
||||
rev = version;
|
||||
hash = "sha256-8JHZWsgpz2pzpDxST3bkMSmPHtj7MDzD5G3ujqMW+MU=";
|
||||
};
|
||||
|
||||
buildInputs = [ cmdliner dap fmt iter logs lru lwt_ppx lwt_react menhir menhirLib path_glob ppx_deriving_yojson ];
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/hackwaly/ocamlearlybird";
|
||||
description = "OCaml debug adapter";
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ lib, fetchurl, buildDunePackage, ocaml
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
||||
, alcotest
|
||||
, astring, cmdliner, cppo, fmt, logs, ocaml-version, odoc-parser, ocaml_lwt, re, result, csexp
|
||||
, pandoc}:
|
||||
, pandoc
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "mdx";
|
||||
@@ -9,9 +11,11 @@ buildDunePackage rec {
|
||||
|
||||
minimalOCamlVersion = "4.08";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/realworldocaml/mdx/releases/download/${version}/mdx-${version}.tbz";
|
||||
sha256 = "sha256-ol1zy8LODDYdcnv/jByE0pnqJ5ujQuMALq3v9y7td/o=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "realworldocaml";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-p7jmksltgfLFTSkPxMuJWJexLq2VvPWT/DJtDveOL/A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cppo ];
|
||||
@@ -30,6 +34,8 @@ buildDunePackage rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Executable OCaml code blocks inside markdown files";
|
||||
homepage = "https://github.com/realworldocaml/mdx";
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
, cmdliner
|
||||
, ppx_deriving
|
||||
, ppxlib
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
@@ -31,6 +32,8 @@ buildDunePackage rec {
|
||||
alcotest
|
||||
];
|
||||
|
||||
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ppx_deriving plugin for generating command line interfaces from types for OCaml";
|
||||
homepage = "https://github.com/hammerlab/ppx_deriving_cmdliner";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx }:
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, gitUpdater }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "printbox";
|
||||
@@ -20,6 +20,8 @@ buildDunePackage rec {
|
||||
# mdx is not available for OCaml < 4.08
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
|
||||
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/c-cube/printbox/";
|
||||
description = "Allows to print nested boxes, lists, arrays, tables in several formats";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib }:
|
||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, gitUpdater }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-xml-light";
|
||||
@@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Minimal Xml parser and printer for OCaml";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user