mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
shards: 0.17.4 -> 0.19.1; migrate to pkgs/by-name
Signed-off-by: misilelab <misileminecord@gmail.com>
This commit is contained in:
parent
7be982c8b7
commit
24f4b08c0b
4 changed files with 33 additions and 51 deletions
33
pkgs/by-name/sh/shards/package.nix
Normal file
33
pkgs/by-name/sh/shards/package.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
crystal,
|
||||
}:
|
||||
|
||||
crystal.buildCrystalPackage rec {
|
||||
pname = "shards";
|
||||
version = "0.19.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "crystal-lang";
|
||||
repo = "shards";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-LOdI389nVsFXkKPKco1C+O710kBlWImzCvdBBYEsWQQ=";
|
||||
};
|
||||
|
||||
# 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";
|
||||
|
||||
# tries to execute git which fails spectacularly
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dependency manager for the Crystal language";
|
||||
mainProgram = "shards";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (crystal.meta) homepage platforms;
|
||||
};
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
crystal,
|
||||
}:
|
||||
|
||||
let
|
||||
generic =
|
||||
{ version, hash }:
|
||||
|
||||
crystal.buildCrystalPackage {
|
||||
pname = "shards";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "crystal-lang";
|
||||
repo = "shards";
|
||||
rev = "v${version}";
|
||||
inherit hash;
|
||||
};
|
||||
|
||||
# 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";
|
||||
|
||||
# tries to execute git which fails spectacularly
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dependency manager for the Crystal language";
|
||||
mainProgram = "shards";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (crystal.meta) homepage platforms;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
rec {
|
||||
shards_0_17 = generic {
|
||||
version = "0.17.4";
|
||||
hash = "sha256-DAFKmr57fW2CWiexbP4Mvoqfh9ALpYEZv3NFK4Z4Zo4=";
|
||||
};
|
||||
|
||||
shards = shards_0_17;
|
||||
}
|
|
@ -8256,10 +8256,6 @@ with pkgs;
|
|||
(if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then lib.id else haskell.lib.compose.justStaticExecutables)
|
||||
haskellPackages.shake;
|
||||
|
||||
inherit (callPackage ../development/tools/build-managers/shards { })
|
||||
shards_0_17
|
||||
shards;
|
||||
|
||||
shellcheck = callPackage ../development/tools/shellcheck {
|
||||
inherit (__splicedPackages.haskellPackages) ShellCheck;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue