2016-12-21 08:23:01 +00:00
|
|
|
{ stdenv, fetchurl, crystal, libyaml, which }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shards-${version}";
|
2017-12-24 04:17:17 +00:00
|
|
|
version = "0.7.2";
|
2016-12-21 08:23:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/crystal-lang/shards/archive/v${version}.tar.gz";
|
2017-12-24 04:17:17 +00:00
|
|
|
sha256 = "1qiv9zzpccf6i5r2qrzbl84wgvqapbs0csazayhcpzfjfhg6i8wp";
|
2016-12-21 08:23:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ crystal libyaml which ];
|
|
|
|
|
|
|
|
buildFlags = [ "CRFLAGS=" "release" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/shards $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://crystal-lang.org/;
|
2016-12-21 08:23:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Dependency manager for the Crystal language";
|
2017-10-03 13:07:12 +01:00
|
|
|
maintainers = with maintainers; [ sifmelcara ];
|
2016-12-21 08:23:01 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|