icr: do not wrap crystal so we can use one from the environment
This commit is contained in:
parent
ae71c13a92
commit
e1e3a56ddb
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, crystal, shards, which, makeWrapper
|
{ stdenv, fetchFromGitHub, crystal, shards, which
|
||||||
, openssl, readline, libyaml }:
|
, openssl, readline, libyaml }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -19,15 +19,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ crystal libyaml openssl readline ];
|
buildInputs = [ crystal libyaml openssl readline ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper shards which ];
|
nativeBuildInputs = [ 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";
|
||||||
|
Loading…
Reference in New Issue
Block a user