scry: build against crystal 0.31
This commit is contained in:
parent
fb8902ba07
commit
4805be654d
@ -1,6 +1,8 @@
|
|||||||
{ lib, fetchFromGitHub, crystal }:
|
{ lib, fetchFromGitHub, crystal_0_31, coreutils, shards, makeWrapper, which }:
|
||||||
|
|
||||||
crystal.buildCrystalPackage rec {
|
let crystal = crystal_0_31;
|
||||||
|
|
||||||
|
in crystal.buildCrystalPackage rec {
|
||||||
pname = "scry";
|
pname = "scry";
|
||||||
version = "0.8.1";
|
version = "0.8.1";
|
||||||
|
|
||||||
@ -11,9 +13,27 @@ crystal.buildCrystalPackage rec {
|
|||||||
sha256 = "0ii4k9l3dgm1c9lllc8ni9dar59lrxik0v9iz7gk3d6v62wwnq79";
|
sha256 = "0ii4k9l3dgm1c9lllc8ni9dar59lrxik0v9iz7gk3d6v62wwnq79";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# we are already testing for this, so we can ignore the failures
|
||||||
|
postPatch = ''
|
||||||
|
rm spec/scry/executable_spec.cr
|
||||||
|
'';
|
||||||
|
|
||||||
|
format = "crystal";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
shardsFile = ./shards.nix;
|
shardsFile = ./shards.nix;
|
||||||
|
|
||||||
crystalBinaries.scry.src = "src/scry.cr";
|
crystalBinaries.scry.src = "src/scry.cr";
|
||||||
|
|
||||||
|
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; {
|
meta = with lib; {
|
||||||
description = "Code analysis server for the Crystal programming language";
|
description = "Code analysis server for the Crystal programming language";
|
||||||
homepage = "https://github.com/crystal-lang-tools/scry";
|
homepage = "https://github.com/crystal-lang-tools/scry";
|
||||||
|
Loading…
Reference in New Issue
Block a user