From 7505046458748594dcd8cb9bf1c182a33de24d06 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 22 Dec 2020 12:08:01 +0800 Subject: [PATCH] shards: minor cleanups --- .../tools/build-managers/shards/default.nix | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/development/tools/build-managers/shards/default.nix b/pkgs/development/tools/build-managers/shards/default.nix index dc990af910fe..cf422fc2e075 100644 --- a/pkgs/development/tools/build-managers/shards/default.nix +++ b/pkgs/development/tools/build-managers/shards/default.nix @@ -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";