ocamlPackages.easy-format: 1.3.2 → 1.3.3

authored by Vincent Laporte and committed by Vincent Laporte 4b0da188 b4fe25d1

+13 -3
+13 -3
pkgs/development/ocaml-modules/easy-format/default.nix
··· 1 - { lib, fetchurl, buildDunePackage }: 2 3 buildDunePackage rec { 4 pname = "easy-format"; 5 - version = "1.3.2"; 6 7 src = fetchurl { 8 url = "https://github.com/ocaml-community/easy-format/releases/download/${version}/easy-format-${version}.tbz"; 9 - sha256 = "sha256:09hrikx310pac2sb6jzaa7k6fmiznnmhdsqij1gawdymhawc4h1l"; 10 }; 11 12 doCheck = true;
··· 1 + { lib, fetchurl, ocaml, buildDunePackage }: 2 + 3 + let params = 4 + if lib.versionAtLeast ocaml.version "4.08" then { 5 + version = "1.3.3"; 6 + sha256 = "sha256:05n4mm1yz33h9gw811ivjw7x4m26lpmf7kns9lza4v6227lwmz7a"; 7 + } else { 8 + version = "1.3.2"; 9 + sha256 = "sha256:09hrikx310pac2sb6jzaa7k6fmiznnmhdsqij1gawdymhawc4h1l"; 10 + }; 11 + in 12 13 buildDunePackage rec { 14 pname = "easy-format"; 15 + inherit (params) version; 16 17 src = fetchurl { 18 url = "https://github.com/ocaml-community/easy-format/releases/download/${version}/easy-format-${version}.tbz"; 19 + inherit (params) sha256; 20 }; 21 22 doCheck = true;