3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/scry/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, crystal_0_35, coreutils, makeWrapper }:
let
crystal = crystal_0_35;
2018-09-21 01:51:37 +01:00
in
crystal.buildCrystalPackage rec {
pname = "scry";
version = "unstable-2020-09-02"; # to make it work with crystal 0.35
2018-09-21 01:51:37 +01:00
src = fetchFromGitHub {
owner = "crystal-lang-tools";
repo = pname;
# rev = "v${version}";
rev = "580a1879810a9f5d63d8a0d90fbdaa99d86b58da";
sha256 = "sha256-WjpkkHfy38wDj/ejXyyMtd5rLfTRoj/7D+SAhRROnbU=";
2018-09-21 01:51:37 +01:00
};
2020-04-19 08:34:49 +01:00
# we are already testing for this, so we can ignore the failures
postPatch = ''
rm spec/scry/executable_spec.cr
'';
format = "shards";
2020-04-19 08:34:49 +01:00
nativeBuildInputs = [ makeWrapper ];
shardsFile = ./shards.nix;
2020-04-19 08:34:49 +01:00
postFixup = ''
wrapProgram $out/bin/scry \
--prefix PATH : ${lib.makeBinPath [ crystal coreutils ]}
'';
# the binary doesn't take any arguments, so this will hang
doInstallCheck = false;
meta = with lib; {
2018-09-21 01:51:37 +01:00
description = "Code analysis server for the Crystal programming language";
homepage = "https://github.com/crystal-lang-tools/scry";
2018-09-21 01:51:37 +01:00
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg Br1ght0ne ];
2018-09-21 01:51:37 +01:00
};
}