3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/shards/default.nix

33 lines
764 B
Nix
Raw Normal View History

2018-08-23 12:24:01 +01:00
{ stdenv, fetchFromGitHub, crystal, pcre, libyaml, which }:
stdenv.mkDerivation rec {
name = "shards-${version}";
2019-06-24 09:52:44 +01:00
version = "0.9.0";
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";
};
2018-08-23 12:24:01 +01:00
buildInputs = [ crystal libyaml pcre which ];
2018-06-17 12:04:04 +01:00
buildFlags = [ "CRFLAGS=--release" ];
installPhase = ''
2018-08-23 12:24:01 +01:00
runHook preInstall
install -Dm755 bin/shards $out/bin/shards
runHook postInstall
'';
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;
};
}