aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix
blob: 53bc057fc131dd1c764c16aac8a1337aa62a7f82 (plain)
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
29
30
{ stdenv, fetchFromGitHub, crystal }:

crystal.buildCrystalPackage rec {
  pname = "shards";
  version = "0.10.0";

  src = fetchFromGitHub {
    owner = "crystal-lang";
    repo = "shards";
    rev = "v${version}";
    sha256 = "1bjy3hcdqq8769bx73f3pwn26rnkj23dngyfbw4iv32bw23x1d49";
  };

  # we cannot use `make` here as it would introduce a dependency on itself
  format = "crystal";

  shardsFile = ./shards.nix;

  crystalBinaries.shards.src = "./src/shards.cr";

  # tries to execute git which fails spectacularly
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Dependency manager for the Crystal language";
    license = licenses.asl20;
    maintainers = with maintainers; [ peterhoeg ];
    inherit (crystal.meta) homepage platforms;
  };
}