2018-08-23 12:24:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub, crystal, pcre, libyaml, which }:
|
2016-12-21 08:23:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "shards";
|
2019-06-24 09:52:44 +01:00
|
|
|
version = "0.9.0";
|
2016-12-21 08:23:01 +00:00
|
|
|
|
2018-08-23 12:24:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crystal-lang";
|
|
|
|
repo = "shards";
|
|
|
|
rev = "v${version}";
|
2019-06-24 09:52:44 +01:00
|
|
|
sha256 = "19q0xww4v0h5ln9gz8d8zv0c9ig761ik7gw8y31yxynzgzihwpf4";
|
2016-12-21 08:23:01 +00:00
|
|
|
};
|
|
|
|
|
2018-08-23 12:24:01 +01:00
|
|
|
buildInputs = [ crystal libyaml pcre which ];
|
2016-12-21 08:23:01 +00:00
|
|
|
|
2018-06-17 12:04:04 +01:00
|
|
|
buildFlags = [ "CRFLAGS=--release" ];
|
2016-12-21 08:23:01 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-08-23 12:24:01 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 bin/shards $out/bin/shards
|
|
|
|
|
|
|
|
runHook postInstall
|
2016-12-21 08:23:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Dependency manager for the Crystal language";
|
2018-08-23 12:24:01 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
inherit (crystal.meta) homepage platforms;
|
2016-12-21 08:23:01 +00:00
|
|
|
};
|
|
|
|
}
|