crystal: 0.31 -> 0.34 (#85432)

* crystal: 0.31 -> 0.34

* crystal: use latest llvm

* crystal: skip tests for 0.33
This commit is contained in:
Michael Fellinger
2020-04-17 21:04:33 +08:00
committed by GitHub
parent e341107367
commit 056778b315
4 changed files with 33 additions and 69 deletions
@@ -1,27 +1,18 @@
{ stdenv, fetchFromGitHub, crystal, pcre, libyaml, which }:
stdenv.mkDerivation rec {
crystal.buildCrystalPackage rec {
pname = "shards";
version = "0.9.0";
version = "0.10.0";
src = fetchFromGitHub {
owner = "crystal-lang";
repo = "shards";
rev = "v${version}";
sha256 = "19q0xww4v0h5ln9gz8d8zv0c9ig761ik7gw8y31yxynzgzihwpf4";
sha256 = "1bjy3hcdqq8769bx73f3pwn26rnkj23dngyfbw4iv32bw23x1d49";
};
buildInputs = [ crystal libyaml pcre which ];
buildFlags = [ "CRFLAGS=--release" ];
installPhase = ''
runHook preInstall
install -Dm755 bin/shards $out/bin/shards
runHook postInstall
'';
shardsFile = ./shards.nix;
crystalBinaries.shards.src = "./src/shards.cr";
meta = with stdenv.lib; {
description = "Dependency manager for the Crystal language";