summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/shards/default.nix
blob: b7d75999fdf679768679c6f9730d382f56dcdad1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, crystal, libyaml, which }:

stdenv.mkDerivation rec {
  name = "shards-${version}";
  version = "0.7.1";

  src = fetchurl {
    url = "https://github.com/crystal-lang/shards/archive/v${version}.tar.gz";
    sha256 = "31de819c66518479682ec781a39ef42c157a1a8e6e865544194534e2567cb110";
  };

  buildInputs = [ crystal libyaml which ];

  buildFlags = [ "CRFLAGS=" "release" ];

  installPhase = ''
    mkdir -p $out/bin
    cp bin/shards $out/bin/
  '';

  meta = with stdenv.lib; {
    homepage = https://crystal-lang.org/;
    license = licenses.asl20;
    description = "Dependency manager for the Crystal language";
    maintainers = with maintainers; [ sifmelcara ];
    platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
  };
}