f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
28 lines
762 B
Nix
28 lines
762 B
Nix
{ stdenv, fetchurl, crystal, libyaml, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "shards-${version}";
|
|
version = "0.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/crystal-lang/shards/archive/v${version}.tar.gz";
|
|
sha256 = "31de819c66518479682ec781a39ef42c157a1a8e6e865544194534e2567cb110";
|
|
};
|
|
|
|
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; [ mingchuan ];
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
|
};
|
|
}
|