diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-10-27 23:16:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 23:16:56 +0200 |
commit | fc1a9217eb163182d3048502bbca80872aae1c69 (patch) | |
tree | 82909d9041f9baa0549368bcb1602d047e49d774 | |
parent | b9a643f139e73ef95d3bd131cb4d8ee6dd7d8d23 (diff) | |
parent | 3f4c00e7950fa49e845fe0a4e6b1b376f38283c4 (diff) |
Merge pull request #197363 from romildo/upd.add-update-script
6 files changed, 32 insertions, 12 deletions
diff --git a/pkgs/development/ocaml-modules/angstrom/default.nix b/pkgs/development/ocaml-modules/angstrom/default.nix index 45db2bb99816a..502bd2ad44d7e 100644 --- a/pkgs/development/ocaml-modules/angstrom/default.nix +++ b/pkgs/development/ocaml-modules/angstrom/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/earlybird/default.nix b/pkgs/development/ocaml-modules/earlybird/default.nix index a6a3648bec65d..2ef4946306c9d 100644 --- a/pkgs/development/ocaml-modules/earlybird/default.nix +++ b/pkgs/development/ocaml-modules/earlybird/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/mdx/default.nix b/pkgs/development/ocaml-modules/mdx/default.nix index 50cddce99aff1..dc8e2312e7515 100644 --- a/pkgs/development/ocaml-modules/mdx/default.nix +++ b/pkgs/development/ocaml-modules/mdx/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix b/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix index 195b53a5fe12d..ec160b2fc9fb1 100644 --- a/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix +++ b/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/printbox/default.nix b/pkgs/development/ocaml-modules/printbox/default.nix index 28a53210f69ff..8dd4bbedd4baf 100644 --- a/pkgs/development/ocaml-modules/printbox/default.nix +++ b/pkgs/development/ocaml-modules/printbox/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/xml-light/default.nix b/pkgs/development/ocaml-modules/xml-light/default.nix index 8eb700a4d14ac..010d7f8e1dbf6 100644 --- a/pkgs/development/ocaml-modules/xml-light/default.nix +++ b/pkgs/development/ocaml-modules/xml-light/default.nix @@ -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 = '' |