shards: minor cleanups
This commit is contained in:
parent
5664e64a01
commit
b7efce77d0
@ -1,28 +1,32 @@
|
|||||||
{ stdenv, fetchurl, crystal, libyaml, which }:
|
{ stdenv, fetchFromGitHub, crystal, pcre, libyaml, which }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "shards-${version}";
|
name = "shards-${version}";
|
||||||
version = "0.8.1";
|
version = "0.8.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/crystal-lang/shards/archive/v${version}.tar.gz";
|
owner = "crystal-lang";
|
||||||
sha256 = "198768izbsqqp063847r2x9ddcf4qfxx7vx7c6gwbmgjmjv4mivm";
|
repo = "shards";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1cjn2lafr08yiqzlhyqx14jjjxf1y24i2kk046px07gljpnlgqwk";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ crystal libyaml which ];
|
buildInputs = [ crystal libyaml pcre which ];
|
||||||
|
|
||||||
buildFlags = [ "CRFLAGS=--release" ];
|
buildFlags = [ "CRFLAGS=--release" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
runHook preInstall
|
||||||
cp bin/shards $out/bin/
|
|
||||||
|
install -Dm755 bin/shards $out/bin/shards
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://crystal-lang.org/;
|
|
||||||
license = licenses.asl20;
|
|
||||||
description = "Dependency manager for the Crystal language";
|
description = "Dependency manager for the Crystal language";
|
||||||
maintainers = with maintainers; [ sifmelcara ];
|
license = licenses.asl20;
|
||||||
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
inherit (crystal.meta) homepage platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user