shards: minor cleanups

This commit is contained in:
Peter Hoeg 2020-12-22 12:08:01 +08:00
parent 3f73b92270
commit 7505046458

View file

@ -3,13 +3,9 @@
, crystal_0_34
, crystal_0_35
}:
let
generic = (
{ version
, sha256
, crystal
}:
generic =
{ version, sha256, crystal }:
crystal.buildCrystalPackage {
pname = "shards";
@ -17,12 +13,12 @@ let
src = fetchFromGitHub {
owner = "crystal-lang";
repo = "shards";
rev = "v${version}";
repo = "shards";
rev = "v${version}";
inherit sha256;
};
# we cannot use `make` here as it would introduce a dependency on itself
# we cannot use `make` or `shards` here as it would introduce a cyclical dependency
format = "crystal";
shardsFile = ./shards.nix;
crystalBinaries.shards.src = "./src/shards.cr";
@ -36,10 +32,10 @@ let
maintainers = with maintainers; [ peterhoeg ];
inherit (crystal.meta) homepage platforms;
};
}
);
};
in rec {
in
rec {
shards_0_11 = generic {
version = "0.11.1";
sha256 = "05qnhc23xbmicdl4fwyxfpcvd8jq4inzh6v7jsjjw4n76vzb1f71";