shards: minor cleanups
This commit is contained in:
parent
3f73b92270
commit
7505046458
@ -3,13 +3,9 @@
|
|||||||
, crystal_0_34
|
, crystal_0_34
|
||||||
, crystal_0_35
|
, crystal_0_35
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
generic = (
|
generic =
|
||||||
{ version
|
{ version, sha256, crystal }:
|
||||||
, sha256
|
|
||||||
, crystal
|
|
||||||
}:
|
|
||||||
|
|
||||||
crystal.buildCrystalPackage {
|
crystal.buildCrystalPackage {
|
||||||
pname = "shards";
|
pname = "shards";
|
||||||
@ -17,12 +13,12 @@ let
|
|||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "crystal-lang";
|
owner = "crystal-lang";
|
||||||
repo = "shards";
|
repo = "shards";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
inherit sha256;
|
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";
|
format = "crystal";
|
||||||
shardsFile = ./shards.nix;
|
shardsFile = ./shards.nix;
|
||||||
crystalBinaries.shards.src = "./src/shards.cr";
|
crystalBinaries.shards.src = "./src/shards.cr";
|
||||||
@ -36,10 +32,10 @@ let
|
|||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
inherit (crystal.meta) homepage platforms;
|
inherit (crystal.meta) homepage platforms;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
);
|
|
||||||
|
|
||||||
in rec {
|
in
|
||||||
|
rec {
|
||||||
shards_0_11 = generic {
|
shards_0_11 = generic {
|
||||||
version = "0.11.1";
|
version = "0.11.1";
|
||||||
sha256 = "05qnhc23xbmicdl4fwyxfpcvd8jq4inzh6v7jsjjw4n76vzb1f71";
|
sha256 = "05qnhc23xbmicdl4fwyxfpcvd8jq4inzh6v7jsjjw4n76vzb1f71";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user