1 { lib, fetchFromGitHub, crystal, coreutils, makeWrapper, bash }:
3 crystal.buildCrystalPackage rec {
7 src = fetchFromGitHub {
8 owner = "crystal-lang-tools";
11 sha256 = "sha256-hqyG1aKY3M8q8lZEKzpUUKl9jS7NF+VMsma6+C0sCbg=";
14 # a bunch of tests fail when built in the sandbox while perfectly fine outside
16 rm spec/scry/{client,completion_provider,context,executable}_spec.cr
21 nativeBuildInputs = [ makeWrapper ];
22 buildInputs = [ bash ];
24 shardsFile = ./shards.nix;
27 wrapProgram $out/bin/scry \
28 --prefix PATH : ${lib.makeBinPath [ crystal coreutils ]}
31 # the binary doesn't take any arguments, so this will hang
32 doInstallCheck = false;
35 description = "Code analysis server for the Crystal programming language";
36 homepage = "https://github.com/crystal-lang-tools/scry";
37 license = licenses.mit;
38 maintainers = with maintainers; [ peterhoeg Br1ght0ne ];