icr: 0.5.0 -> 0.6.0 (#61156)
* icr: 0.5.0 -> 0.6.0 * icr: ensure crystal is in PATH
This commit is contained in:
parent
0fb181b8ce
commit
3cdb2c3d0c
@ -1,15 +1,15 @@
|
|||||||
{ stdenv, fetchFromGitHub, crystal, shards, which
|
{ stdenv, fetchFromGitHub, crystal, shards, which, makeWrapper
|
||||||
, openssl, readline }:
|
, openssl, readline, libyaml }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "icr";
|
pname = "icr";
|
||||||
version = "0.5.0";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "crystal-community";
|
owner = "crystal-community";
|
||||||
repo = "icr";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1vavdzgm06ssnxm6mylki6xma0mfsj63n5kivhk1v4pg4xj966w5";
|
sha256 = "0kkdqrxk4f4bqbb84mgjrk9r0fz1hsz95apvjsc49gav4c8xx3mb";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -17,17 +17,20 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /usr/local $out
|
--replace /usr/local $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ openssl readline ];
|
buildInputs = [ crystal libyaml openssl readline ];
|
||||||
|
|
||||||
nativeBuildInputs = [ crystal shards which ];
|
nativeBuildInputs = [ makeWrapper shards which ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/icr --prefix PATH : "${stdenv.lib.makeBinPath [ crystal ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Interactive console for the Crystal programming language";
|
description = "Interactive console for the Crystal programming language";
|
||||||
homepage = https://github.com/crystal-community/icr;
|
homepage = "https://github.com/crystal-community/icr";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user