From 1b4e72e95ed806fbb1d47fe7d3b1a73bff3aad29 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 18 Apr 2023 21:59:58 +0300 Subject: [PATCH] ameba: fix build with Crystal 1.8 --- pkgs/development/tools/ameba/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/ameba/default.nix b/pkgs/development/tools/ameba/default.nix index d3ca1d466638..17b444c1dfe2 100644 --- a/pkgs/development/tools/ameba/default.nix +++ b/pkgs/development/tools/ameba/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, crystal }: +{ lib, fetchFromGitHub, fetchpatch, crystal }: crystal.buildCrystalPackage rec { pname = "ameba"; @@ -11,6 +11,13 @@ crystal.buildCrystalPackage rec { hash = "sha256-pc9mtVR/PBhM5l1PnDkm+y+McxbrfAmQzxmLi761VF4="; }; + patches = [ + (fetchpatch { + url = "https://github.com/crystal-ameba/ameba/commit/c7f2cba409787a1928fbb54494b4645ec11005cc.patch"; + hash = "sha256-tYEPke6omMdCGG2llJGXDZ3jTO4YAqpknzTPi2576UI="; + }) + ]; + format = "make"; meta = with lib; {