diff options
Diffstat (limited to 'pkgs/development/tools/build-managers/shards/default.nix')
-rw-r--r-- | pkgs/development/tools/build-managers/shards/default.nix | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/pkgs/development/tools/build-managers/shards/default.nix b/pkgs/development/tools/build-managers/shards/default.nix index 7f0cc8100ac04..4ad78778a9161 100644 --- a/pkgs/development/tools/build-managers/shards/default.nix +++ b/pkgs/development/tools/build-managers/shards/default.nix @@ -1,27 +1,18 @@ { stdenv, fetchFromGitHub, crystal, pcre, libyaml, which }: -stdenv.mkDerivation rec { +crystal.buildCrystalPackage rec { pname = "shards"; - version = "0.9.0"; + version = "0.10.0"; src = fetchFromGitHub { owner = "crystal-lang"; repo = "shards"; rev = "v${version}"; - sha256 = "19q0xww4v0h5ln9gz8d8zv0c9ig761ik7gw8y31yxynzgzihwpf4"; + sha256 = "1bjy3hcdqq8769bx73f3pwn26rnkj23dngyfbw4iv32bw23x1d49"; }; - buildInputs = [ crystal libyaml pcre which ]; - - buildFlags = [ "CRFLAGS=--release" ]; - - installPhase = '' - runHook preInstall - - install -Dm755 bin/shards $out/bin/shards - - runHook postInstall - ''; + shardsFile = ./shards.nix; + crystalBinaries.shards.src = "./src/shards.cr"; meta = with stdenv.lib; { description = "Dependency manager for the Crystal language"; |