ameba: fix build with Crystal 1.8

This commit is contained in:
Weijia Wang 2023-04-18 21:59:58 +03:00
parent d9c199dbc6
commit 1b4e72e95e

View file

@ -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; {