diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-06-29 18:04:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 18:04:10 +0000 |
commit | 943ac1310d77771fae4c2005a0d20f7863f2284d (patch) | |
tree | cb5e41e4075d70b78597f6881cd64b1469c70334 /pkgs/development/ocaml-modules | |
parent | c4ae1753cacbc31488c68cd674c9476235fa6f2a (diff) | |
parent | e2508a8e57eb8a6478f2b39fc5c7106654cfea41 (diff) | |
download | nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.tar nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.tar.gz nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.tar.bz2 nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.tar.lz nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.tar.xz nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.tar.zst nixlib-943ac1310d77771fae4c2005a0d20f7863f2284d.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/stringext/default.nix | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/pkgs/development/ocaml-modules/stringext/default.nix b/pkgs/development/ocaml-modules/stringext/default.nix index ae797815aed5..8aaf36baa8b5 100644 --- a/pkgs/development/ocaml-modules/stringext/default.nix +++ b/pkgs/development/ocaml-modules/stringext/default.nix @@ -1,32 +1,24 @@ -{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, ounit, qcheck +{ lib, fetchurl, ocaml, buildDunePackage, ounit, qtest # Optionally enable tests; test script use OCaml-4.01+ features -, doCheck ? lib.versionAtLeast (lib.getVersion ocaml) "4.01" +, doCheck ? lib.versionAtLeast ocaml.version "4.04" }: -let version = "1.4.3"; in +let version = "1.6.0"; in -stdenv.mkDerivation { - name = "ocaml${ocaml.version}-stringext-${version}"; - - src = fetchzip { - url = "https://github.com/rgrinberg/stringext/archive/v${version}.tar.gz"; - sha256 = "121k79vjazvsd254yg391fp4spsd1p32amccrahd0g6hjhf5w6sl"; +buildDunePackage { + pname = "stringext"; + version = version; + useDune2 = true; + src = fetchurl { + url = "https://github.com/rgrinberg/stringext/releases/download/${version}/stringext-${version}.tbz"; + sha256 = "1sh6nafi3i9773j5mlwwz3kxfzdjzsfqj2qibxhigawy5vazahfv"; }; - buildInputs = [ ocaml findlib ocamlbuild ounit qcheck ]; - - configurePhase = "ocaml setup.ml -configure --prefix $out" - + lib.optionalString doCheck " --enable-tests"; - buildPhase = "ocaml setup.ml -build"; + checkInputs = [ ounit qtest ]; inherit doCheck; - checkPhase = "ocaml setup.ml -test"; - installPhase = "ocaml setup.ml -install"; - - createFindlibDestdir = true; meta = { homepage = "https://github.com/rgrinberg/stringext"; - platforms = ocaml.meta.platforms or []; description = "Extra string functions for OCaml"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ vbgl ]; |