@@ -1,9 +1,8 @@
1−{ stdenv, fetchFromGitHub, crystal, shards, which }:
1+{ stdenv, lib, fetchFromGitHub, crystal, shards, llvm, which }:
22
33stdenv.mkDerivation rec {
44 pname = "scry";
5− # 0.7.1 doesn't work with crystal > 0.25
6− version = "0.7.1.20180919";
5+ version = "0.8.0";
76
87 src = fetchFromGitHub {
98 owner = "crystal-lang-tools";
@@ -12,7 +11,9 @@ stdenv.mkDerivation rec {
1211 sha256 = "1yq7jap3y5pr2yqc6fn6bxshzwv7dz3w97incq7wpcvi7ibb4lcn";
1312 };
1413
15− nativeBuildInputs = [ crystal shards which ];
14+ patches = lib.optional (lib.versionAtLeast crystal.version "0.28") ./fix_for_crystal_0_28_and_above.patch;
15+
16+ nativeBuildInputs = [ crystal shards llvm which ];
1617
1718 buildPhase = ''
1819 runHook preBuild