git.iko.soy/typeable/nixpkgs
on master help sign in
scry: 0.7.1 -> 0.8.0
commitfda3f06656840dc22addd06fce9be850b75486cd authorPeter Hoeg <peter@hoeg.com> dateTue 25 Jun 2019, 11:32 (7 years ago) parent24dc219
2 files changed+25−4
pkgs/development/tools/scry/default.nix+5−4 pkgs/development/tools/scry/fix_for_crystal_0_28_and_above.patch+20
pkgs/development/tools/scry/default.nix+5−4
@@ -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
pkgs/development/tools/scry/fix_for_crystal_0_28_and_above.patchnew file+20
@@ -0,0 +1,20 @@
1+diff --git a/src/scry/completion_provider.cr b/src/scry/completion_provider.cr
2+index 29e0d36..f67438c 100644
3+--- a/src/scry/completion_provider.cr
4++++ b/src/scry/completion_provider.cr
5+@@ -1,4 +1,5 @@
6+ require "./log"
7++require "compiler/crystal/codegen/target"
8+ require "compiler/crystal/crystal_path"
9+ require "./completion/*"
10+
11+diff --git a/src/scry/parse_analyzer.cr b/src/scry/parse_analyzer.cr
12+index d87eca4..bbe9ed5 100644
13+--- a/src/scry/parse_analyzer.cr
14++++ b/src/scry/parse_analyzer.cr
15+@@ -1,4 +1,5 @@
16+ require "compiler/crystal/syntax"
17++require "compiler/crystal/codegen/target"
18+ require "compiler/crystal/crystal_path"
19+ require "./workspace"
20+ require "./text_document"