shards: 0.17.4 -> 0.19.1; migrate to pkgs/by-name (#380841)

authored by Donovan Glover and committed by GitHub 091da28e a7923099

+33 -51
+33
pkgs/by-name/sh/shards/package.nix
··· 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 + }
-47
pkgs/development/tools/build-managers/shards/default.nix
··· 1 - { 2 - lib, 3 - fetchFromGitHub, 4 - crystal, 5 - }: 6 - 7 - let 8 - generic = 9 - { version, hash }: 10 - 11 - crystal.buildCrystalPackage { 12 - pname = "shards"; 13 - inherit version; 14 - 15 - src = fetchFromGitHub { 16 - owner = "crystal-lang"; 17 - repo = "shards"; 18 - rev = "v${version}"; 19 - inherit hash; 20 - }; 21 - 22 - # we cannot use `make` or `shards` here as it would introduce a cyclical dependency 23 - format = "crystal"; 24 - shardsFile = ./shards.nix; 25 - crystalBinaries.shards.src = "./src/shards.cr"; 26 - 27 - # tries to execute git which fails spectacularly 28 - doCheck = false; 29 - 30 - meta = with lib; { 31 - description = "Dependency manager for the Crystal language"; 32 - mainProgram = "shards"; 33 - license = licenses.asl20; 34 - maintainers = with maintainers; [ peterhoeg ]; 35 - inherit (crystal.meta) homepage platforms; 36 - }; 37 - }; 38 - 39 - in 40 - rec { 41 - shards_0_17 = generic { 42 - version = "0.17.4"; 43 - hash = "sha256-DAFKmr57fW2CWiexbP4Mvoqfh9ALpYEZv3NFK4Z4Zo4="; 44 - }; 45 - 46 - shards = shards_0_17; 47 - }
pkgs/development/tools/build-managers/shards/shards.nix pkgs/by-name/sh/shards/shards.nix
-4
pkgs/top-level/all-packages.nix
··· 8216 8216 (if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then lib.id else haskell.lib.compose.justStaticExecutables) 8217 8217 haskellPackages.shake; 8218 8218 8219 - inherit (callPackage ../development/tools/build-managers/shards { }) 8220 - shards_0_17 8221 - shards; 8222 - 8223 8219 shellcheck = callPackage ../development/tools/shellcheck { 8224 8220 inherit (__splicedPackages.haskellPackages) ShellCheck; 8225 8221 };