2020-04-19 08:52:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, crystal }:
|
2016-12-21 08:23:01 +00:00
|
|
|
|
2020-04-17 14:04:33 +01:00
|
|
|
crystal.buildCrystalPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "shards";
|
2020-04-17 14:04:33 +01:00
|
|
|
version = "0.10.0";
|
2016-12-21 08:23:01 +00:00
|
|
|
|
2018-08-23 12:24:01 +01:00
|
|
|
src = fetchFromGitHub {
|
2020-04-19 08:52:58 +01:00
|
|
|
owner = "crystal-lang";
|
|
|
|
repo = "shards";
|
|
|
|
rev = "v${version}";
|
2020-04-17 14:04:33 +01:00
|
|
|
sha256 = "1bjy3hcdqq8769bx73f3pwn26rnkj23dngyfbw4iv32bw23x1d49";
|
2016-12-21 08:23:01 +00:00
|
|
|
};
|
|
|
|
|
2020-04-19 08:52:58 +01:00
|
|
|
# we cannot use `make` here as it would introduce a dependency on itself
|
|
|
|
format = "crystal";
|
|
|
|
|
2020-04-17 14:04:33 +01:00
|
|
|
shardsFile = ./shards.nix;
|
2020-04-19 08:52:58 +01:00
|
|
|
|
2020-04-17 14:04:33 +01:00
|
|
|
crystalBinaries.shards.src = "./src/shards.cr";
|
2016-12-21 08:23:01 +00:00
|
|
|
|
2020-04-19 08:52:58 +01:00
|
|
|
# tries to execute git which fails spectacularly
|
|
|
|
doCheck = false;
|
|
|
|
|
2016-12-21 08:23:01 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Dependency manager for the Crystal language";
|
2020-04-19 08:52:58 +01:00
|
|
|
license = licenses.asl20;
|
2018-08-23 12:24:01 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
inherit (crystal.meta) homepage platforms;
|
2016-12-21 08:23:01 +00:00
|
|
|
};
|
|
|
|
}
|