Skip to content

Commit 091da28

Browse files
shards: 0.17.4 -> 0.19.1; migrate to pkgs/by-name (#380841)
2 parents a792309 + 24f4b08 commit 091da28

File tree

4 files changed

+33
-51
lines changed

4 files changed

+33
-51
lines changed

pkgs/by-name/sh/shards/package.nix

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
crystal,
5+
}:
6+
7+
crystal.buildCrystalPackage rec {
8+
pname = "shards";
9+
version = "0.19.1";
10+
11+
src = fetchFromGitHub {
12+
owner = "crystal-lang";
13+
repo = "shards";
14+
tag = "v${version}";
15+
hash = "sha256-LOdI389nVsFXkKPKco1C+O710kBlWImzCvdBBYEsWQQ=";
16+
};
17+
18+
# we cannot use `make` or `shards` here as it would introduce a cyclical dependency
19+
format = "crystal";
20+
shardsFile = ./shards.nix;
21+
crystalBinaries.shards.src = "./src/shards.cr";
22+
23+
# tries to execute git which fails spectacularly
24+
doCheck = false;
25+
26+
meta = with lib; {
27+
description = "Dependency manager for the Crystal language";
28+
mainProgram = "shards";
29+
license = licenses.asl20;
30+
maintainers = with maintainers; [ peterhoeg ];
31+
inherit (crystal.meta) homepage platforms;
32+
};
33+
}

pkgs/development/tools/build-managers/shards/default.nix

Lines changed: 0 additions & 47 deletions
This file was deleted.

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8216,10 +8216,6 @@ with pkgs;
82168216
(if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then lib.id else haskell.lib.compose.justStaticExecutables)
82178217
haskellPackages.shake;
82188218

8219-
inherit (callPackage ../development/tools/build-managers/shards { })
8220-
shards_0_17
8221-
shards;
8222-
82238219
shellcheck = callPackage ../development/tools/shellcheck {
82248220
inherit (__splicedPackages.haskellPackages) ShellCheck;
82258221
};

0 commit comments

Comments
 (0)