From d1685e81ef11c697df050fc9c146a27b0698d85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Zimmermann?= Date: Mon, 9 Dec 2019 11:14:40 +0100 Subject: [PATCH] ocamlformat: 0.11.0 -> 0.12 --- .../tools/ocaml/ocamlformat/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/tools/ocaml/ocamlformat/default.nix b/pkgs/development/tools/ocaml/ocamlformat/default.nix index 4eb1cc858ad0..d599fb7ade14 100644 --- a/pkgs/development/tools/ocaml/ocamlformat/default.nix +++ b/pkgs/development/tools/ocaml/ocamlformat/default.nix @@ -1,16 +1,14 @@ -{ lib, fetchFromGitHub, ocamlPackages }: +{ lib, fetchurl, ocamlPackages }: with ocamlPackages; buildDunePackage rec { pname = "ocamlformat"; - version = "0.11.0"; + version = "0.12"; minimumOCamlVersion = "4.06"; - src = fetchFromGitHub { - owner = "ocaml-ppx"; - repo = pname; - rev = version; - sha256 = "0zvjn71jd4d3znnpgh0yphb2w8ggs457b6bl6cg1fmpdgxnds6yx"; + src = fetchurl { + url = "https://github.com/ocaml-ppx/ocamlformat/releases/download/${version}/ocamlformat-${version}.tbz"; + sha256 = "1zi8x597dhp2822j6j28s84yyiqppl7kykpwqqclx6ybypvlzdpj"; }; buildInputs = [ @@ -25,7 +23,7 @@ with ocamlPackages; buildDunePackage rec { ]; meta = { - inherit (src.meta) homepage; + homepage = "https://github.com/ocaml-ppx/ocamlformat"; description = "Auto-formatter for OCaml code"; maintainers = [ lib.maintainers.Zimmi48 ]; license = lib.licenses.mit;