diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-10-29 06:24:55 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-10-30 20:30:56 +0100 |
commit | 5b8a0f09787c3204277cb15d21f7f17b6fb6beee (patch) | |
tree | 825fd1ec5f6ff823e7e624e7e896614a581a524a /pkgs/development/ocaml-modules/base64 | |
parent | b709b7ac3d375da6a33a6b7961f6ec3efffe5b77 (diff) |
ocamlPackages.base64: 3.2.0 → 3.4.0
Diffstat (limited to 'pkgs/development/ocaml-modules/base64')
-rw-r--r-- | pkgs/development/ocaml-modules/base64/default.nix | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix index b2e3e0c5e74d3..de0bc13e2833f 100644 --- a/pkgs/development/ocaml-modules/base64/default.nix +++ b/pkgs/development/ocaml-modules/base64/default.nix @@ -1,25 +1,17 @@ -{ lib, fetchpatch, fetchzip, buildDunePackage, alcotest, bos }: - -let version = "3.2.0"; in +{ lib, fetchurl, buildDunePackage, alcotest, bos, dune-configurator }: buildDunePackage rec { pname = "base64"; - inherit version; - - src = fetchzip { - url = "https://github.com/mirage/ocaml-base64/archive/v${version}.tar.gz"; - sha256 = "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"; - }; + version = "3.4.0"; - minimumOCamlVersion = "4.03"; + useDune2 = true; - buildInputs = [ bos ]; + src = fetchurl { + url = "https://github.com/mirage/ocaml-base64/releases/download/v${version}/base64-v${version}.tbz"; + sha256 = "0d0n5gd4nkdsz14jnxq13f1f7rzxmndg5xql039a8wfppmazd70w"; + }; - # Fix test-suite for alcotest ≥ 1.0 - patches = [(fetchpatch { - url = "https://github.com/mirage/ocaml-base64/commit/8d334d02aa52875158fae3e2fb8fe0a5596598d0.patch"; - sha256 = "0lvqdp98qavpzis1wgwh3ijajq79hq47898gsrk37fpyjbrdzf5q"; - })]; + buildInputs = [ bos dune-configurator ]; doCheck = true; checkInputs = [ alcotest ]; |