diff options
author | Peter Hoeg <peter@hoeg.com> | 2020-03-18 10:16:02 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2020-04-22 17:30:22 +0800 |
commit | 1e3bae6c4158579d94f75d14d4a007cae162116a (patch) | |
tree | 0961c59b944327cf23c0d7aa1928241d0ceb02f5 /pkgs/development/tools/icr/default.nix | |
parent | 760d56f6babd470c5ad9ca85e63cfbbda4dcee13 (diff) |
icr: 0.6.0 -> 0.8.0
Diffstat (limited to 'pkgs/development/tools/icr/default.nix')
-rw-r--r-- | pkgs/development/tools/icr/default.nix | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/pkgs/development/tools/icr/default.nix b/pkgs/development/tools/icr/default.nix index 3a39d0ddf6bd7..50a349d8ff716 100644 --- a/pkgs/development/tools/icr/default.nix +++ b/pkgs/development/tools/icr/default.nix @@ -1,28 +1,30 @@ -{ stdenv, fetchFromGitHub, crystal, shards, which -, openssl, readline, libyaml }: +{ stdenv, lib, fetchFromGitHub, crystal, shards, makeWrapper, pkgconfig, which +, openssl, readline, libyaml, zlib }: -stdenv.mkDerivation rec { +crystal.buildCrystalPackage rec { pname = "icr"; - version = "0.6.0"; + version = "0.8.0"; src = fetchFromGitHub { - owner = "crystal-community"; - repo = pname; - rev = "v${version}"; - sha256 = "0kkdqrxk4f4bqbb84mgjrk9r0fz1hsz95apvjsc49gav4c8xx3mb"; + owner = "crystal-community"; + repo = pname; + rev = "v${version}"; + sha256 = "1bz2bhs6csyg2rhrlknlvaiilq3vq8plxjh1hdxmbrfi3n6c7k5a"; }; - postPatch = '' - substituteInPlace Makefile \ - --replace /usr/local $out - ''; + shardsFile = ./shards.nix; + + buildInputs = [ libyaml openssl readline zlib ]; - buildInputs = [ crystal libyaml openssl readline ]; + nativeBuildInputs = [ makeWrapper pkgconfig which ]; - nativeBuildInputs = [ shards which ]; + # tests are failing due to our sandbox + doCheck = false; - doCheck = true; - checkTarget = "test"; + postFixup = '' + wrapProgram $out/bin/icr \ + --prefix PATH : ${lib.makeBinPath [ crystal shards makeWrapper which ]} + ''; meta = with stdenv.lib; { description = "Interactive console for the Crystal programming language"; |