lol

ocamlPackages.rope: 0.6.2 → 0.6.3

authored by

Vincent Laporte and committed by
Vincent Laporte
08e65e47 cfb4ca32

+15 -6
+15 -6
pkgs/development/ocaml-modules/rope/default.nix
··· 1 - { lib, fetchurl, ocaml, buildDunePackage, benchmark }: 1 + { lib, fetchurl, fetchpatch, ocaml, buildDunePackage 2 + , version ? if lib.versionAtLeast ocaml.version "5.0" then "0.6.3" else "0.6.2" 3 + , benchmark 4 + }: 2 5 3 - lib.throwIf (lib.versionAtLeast ocaml.version "5.0") 4 - "rope is not available for OCaml ${ocaml.version}" 5 6 6 - buildDunePackage rec { 7 + buildDunePackage { 7 8 pname = "rope"; 8 - version = "0.6.2"; 9 + inherit version; 9 10 minimalOCamlVersion = "4.03"; 10 11 11 12 src = fetchurl { 12 13 url = "https://github.com/Chris00/ocaml-rope/releases/download/${version}/rope-${version}.tbz"; 13 - sha256 = "15cvfa0s1vjx7gjd07d3fkznilishqf4z4h2q5f20wm9ysjh2h2i"; 14 + hash = { 15 + "0.6.2" = "sha256:15cvfa0s1vjx7gjd07d3fkznilishqf4z4h2q5f20wm9ysjh2h2i"; 16 + "0.6.3" = "sha256-M14fiP9BDiz3WEoMqAJqZaXk4PoZ8Z1YjOk+F97z05Y="; 17 + }."${version}"; 14 18 }; 15 19 16 20 buildInputs = [ benchmark ] ; 21 + 22 + patches = lib.optional (version == "0.6.3") (fetchpatch { 23 + url = "https://github.com/Chris00/ocaml-rope/commit/be53daa18dd3d1450a92881b33c997eafb1dc958.patch"; 24 + hash = "sha256-fHJNfD1ph3+QLmVJ8C4hhJ8hvrWIh7D0EL0XhOW2yqQ="; 25 + }); 17 26 18 27 meta = { 19 28 homepage = "https://github.com/Chris00/ocaml-rope";