lol

icr: 0.6.0 -> 0.8.0

+27 -19
+18 -16
pkgs/development/tools/icr/default.nix
··· 1 - { stdenv, fetchFromGitHub, crystal, shards, which 2 - , openssl, readline, libyaml }: 1 + { stdenv, lib, fetchFromGitHub, crystal, shards, makeWrapper, pkgconfig, which 2 + , openssl, readline, libyaml, zlib }: 3 3 4 - stdenv.mkDerivation rec { 4 + crystal.buildCrystalPackage rec { 5 5 pname = "icr"; 6 - version = "0.6.0"; 6 + version = "0.8.0"; 7 7 8 8 src = fetchFromGitHub { 9 - owner = "crystal-community"; 10 - repo = pname; 11 - rev = "v${version}"; 12 - sha256 = "0kkdqrxk4f4bqbb84mgjrk9r0fz1hsz95apvjsc49gav4c8xx3mb"; 9 + owner = "crystal-community"; 10 + repo = pname; 11 + rev = "v${version}"; 12 + sha256 = "1bz2bhs6csyg2rhrlknlvaiilq3vq8plxjh1hdxmbrfi3n6c7k5a"; 13 13 }; 14 14 15 - postPatch = '' 16 - substituteInPlace Makefile \ 17 - --replace /usr/local $out 18 - ''; 15 + shardsFile = ./shards.nix; 16 + 17 + buildInputs = [ libyaml openssl readline zlib ]; 19 18 20 - buildInputs = [ crystal libyaml openssl readline ]; 19 + nativeBuildInputs = [ makeWrapper pkgconfig which ]; 21 20 22 - nativeBuildInputs = [ shards which ]; 21 + # tests are failing due to our sandbox 22 + doCheck = false; 23 23 24 - doCheck = true; 25 - checkTarget = "test"; 24 + postFixup = '' 25 + wrapProgram $out/bin/icr \ 26 + --prefix PATH : ${lib.makeBinPath [ crystal shards makeWrapper which ]} 27 + ''; 26 28 27 29 meta = with stdenv.lib; { 28 30 description = "Interactive console for the Crystal programming language";
+8
pkgs/development/tools/icr/shards.nix
··· 1 + { 2 + readline = { 3 + owner = "crystal-lang"; 4 + repo = "crystal-readline"; 5 + rev = "0fb7d186da8e1b157998d98d1c96e99699b791eb"; 6 + sha256 = "1rk27vw3ssldgnfgprwvz2gag02v4g6d6yg56b3sk9w3fn8jyyi8"; 7 + }; 8 + }
+1 -3
pkgs/top-level/all-packages.nix
··· 8114 8114 crystal 8115 8115 crystal2nix; 8116 8116 8117 - icr = callPackage ../development/tools/icr { 8118 - openssl = openssl_1_0_2; 8119 - }; 8117 + icr = callPackage ../development/tools/icr { }; 8120 8118 8121 8119 scry = callPackage ../development/tools/scry {}; 8122 8120