aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix68
1 files changed, 47 insertions, 21 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix
index 53bc057fc131..dc990af910fe 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/shards/default.nix
@@ -1,30 +1,56 @@
-{ stdenv, fetchFromGitHub, crystal }:
+{ stdenv
+, fetchFromGitHub
+, crystal_0_34
+, crystal_0_35
+}:
-crystal.buildCrystalPackage rec {
- pname = "shards";
- version = "0.10.0";
+let
+ generic = (
+ { version
+ , sha256
+ , crystal
+ }:
- src = fetchFromGitHub {
- owner = "crystal-lang";
- repo = "shards";
- rev = "v${version}";
- sha256 = "1bjy3hcdqq8769bx73f3pwn26rnkj23dngyfbw4iv32bw23x1d49";
- };
+ crystal.buildCrystalPackage {
+ pname = "shards";
+ inherit version;
+
+ src = fetchFromGitHub {
+ owner = "crystal-lang";
+ repo = "shards";
+ rev = "v${version}";
+ inherit sha256;
+ };
- # we cannot use `make` here as it would introduce a dependency on itself
- format = "crystal";
+ # we cannot use `make` here as it would introduce a dependency on itself
+ format = "crystal";
+ shardsFile = ./shards.nix;
+ crystalBinaries.shards.src = "./src/shards.cr";
- shardsFile = ./shards.nix;
+ # tries to execute git which fails spectacularly
+ doCheck = false;
- crystalBinaries.shards.src = "./src/shards.cr";
+ meta = with stdenv.lib; {
+ description = "Dependency manager for the Crystal language";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ peterhoeg ];
+ inherit (crystal.meta) homepage platforms;
+ };
+ }
+ );
- # tries to execute git which fails spectacularly
- doCheck = false;
+in rec {
+ shards_0_11 = generic {
+ version = "0.11.1";
+ sha256 = "05qnhc23xbmicdl4fwyxfpcvd8jq4inzh6v7jsjjw4n76vzb1f71";
+ crystal = crystal_0_34;
+ };
- meta = with stdenv.lib; {
- description = "Dependency manager for the Crystal language";
- license = licenses.asl20;
- maintainers = with maintainers; [ peterhoeg ];
- inherit (crystal.meta) homepage platforms;
+ shards_0_12 = generic {
+ version = "0.12.0";
+ sha256 = "0dginczw1gc5qlb9k4b6ldxzqz8n97jrrnjvj3mm9wcdbc9j6h3c";
+ crystal = crystal_0_35;
};
+
+ shards = shards_0_12;
}