scry: init at 0.7.1.20180919
This commit is contained in:
parent
5200db329e
commit
da61221189
50
pkgs/development/tools/scry/default.nix
Normal file
50
pkgs/development/tools/scry/default.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, crystal, shards, which }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "scry";
|
||||||
|
# 0.7.1 doesn't work with crystal > 0.25
|
||||||
|
version = "0.7.1.20180919";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "crystal-lang-tools";
|
||||||
|
repo = "scry";
|
||||||
|
rev = "543c1c3f764298f9fff192ca884d10f72338607d";
|
||||||
|
sha256 = "1yq7jap3y5pr2yqc6fn6bxshzwv7dz3w97incq7wpcvi7ibb4lcn";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ crystal shards which ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
shards build --release
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm755 -t $out/bin bin/scry
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://github.com/crystal-lang-tools/scry/issues/138
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
crystal spec
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Code analysis server for the Crystal programming language";
|
||||||
|
homepage = https://github.com/crystal-lang-tools/scry;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
};
|
||||||
|
}
|
@ -6418,6 +6418,8 @@ with pkgs;
|
|||||||
|
|
||||||
icr = callPackage ../development/tools/icr {};
|
icr = callPackage ../development/tools/icr {};
|
||||||
|
|
||||||
|
scry = callPackage ../development/tools/scry {};
|
||||||
|
|
||||||
devpi-client = callPackage ../development/tools/devpi-client {};
|
devpi-client = callPackage ../development/tools/devpi-client {};
|
||||||
|
|
||||||
devpi-server = callPackage ../development/tools/devpi-server {};
|
devpi-server = callPackage ../development/tools/devpi-server {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user