25050e3606
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/shards/versions. These checks were done: - built on NixOS - /nix/store/b67b2aq0jfy3mmvb3nvz40jx1ngkkg5c-shards-0.8.1/bin/shards passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 0.8.1 with grep in /nix/store/b67b2aq0jfy3mmvb3nvz40jx1ngkkg5c-shards-0.8.1 - directory tree listing: https://gist.github.com/a3f46fb5f7b8b4f3120256553c24abd7 - du listing: https://gist.github.com/65b9cb67bb536055ff79ee577f5ec3dc
29 lines
750 B
Nix
29 lines
750 B
Nix
{ stdenv, fetchurl, crystal, libyaml, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "shards-${version}";
|
|
version = "0.8.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/crystal-lang/shards/archive/v${version}.tar.gz";
|
|
sha256 = "198768izbsqqp063847r2x9ddcf4qfxx7vx7c6gwbmgjmjv4mivm";
|
|
};
|
|
|
|
buildInputs = [ crystal libyaml which ];
|
|
|
|
buildFlags = [ "CRFLAGS=--release" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp bin/shards $out/bin/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://crystal-lang.org/;
|
|
license = licenses.asl20;
|
|
description = "Dependency manager for the Crystal language";
|
|
maintainers = with maintainers; [ sifmelcara ];
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
|
};
|
|
}
|