1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 08:05:40 +00:00
nixpkgs/pkgs/development/tools/scry/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2020-04-19 08:34:49 +01:00
{ lib, fetchFromGitHub, crystal_0_31, coreutils, shards, makeWrapper, which }:
2018-09-21 01:51:37 +01:00
2020-04-19 08:34:49 +01:00
let crystal = crystal_0_31;
in crystal.buildCrystalPackage rec {
pname = "scry";
version = "0.8.1";
2018-09-21 01:51:37 +01:00
src = fetchFromGitHub {
owner = "crystal-lang-tools";
repo = pname;
rev = "v${version}";
sha256 = "0ii4k9l3dgm1c9lllc8ni9dar59lrxik0v9iz7gk3d6v62wwnq79";
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 = "crystal";
nativeBuildInputs = [ makeWrapper ];
shardsFile = ./shards.nix;
2020-04-19 08:34:49 +01:00
crystalBinaries.scry.src = "src/scry.cr";
2019-06-25 04:32:56 +01:00
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;
2019-12-03 16:10:13 +00:00
maintainers = with maintainers; [ peterhoeg filalex77 ];
2018-09-21 01:51:37 +01:00
};
}