Merge pull request #62759 from peterhoeg/f/icr

icr: do not wrap crystal so we can use one from the environment
This commit is contained in:
Renaud 2019-06-06 15:19:05 +02:00 committed by GitHub
commit 3d83ab08dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, crystal, shards, which, makeWrapper
{ stdenv, fetchFromGitHub, crystal, shards, which
, openssl, readline, libyaml }:
stdenv.mkDerivation rec {
@ -19,15 +19,11 @@ stdenv.mkDerivation rec {
buildInputs = [ crystal libyaml openssl readline ];
nativeBuildInputs = [ makeWrapper shards which ];
nativeBuildInputs = [ shards which ];
doCheck = true;
checkTarget = "test";
postInstall = ''
wrapProgram $out/bin/icr --prefix PATH : "${stdenv.lib.makeBinPath [ crystal ]}"
'';
meta = with stdenv.lib; {
description = "Interactive console for the Crystal programming language";
homepage = "https://github.com/crystal-community/icr";