tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
icr: 0.6.0 -> 0.8.0
Peter Hoeg
6 years ago
1e3bae6c
760d56f6
+27
-19
3 changed files
expand all
collapse all
unified
split
pkgs
development
tools
icr
default.nix
shards.nix
top-level
all-packages.nix
+18
-16
pkgs/development/tools/icr/default.nix
reviewed
···
1
1
-
{ stdenv, fetchFromGitHub, crystal, shards, which
2
2
-
, openssl, readline, libyaml }:
1
1
+
{ stdenv, lib, fetchFromGitHub, crystal, shards, makeWrapper, pkgconfig, which
2
2
+
, openssl, readline, libyaml, zlib }:
3
3
4
4
-
stdenv.mkDerivation rec {
4
4
+
crystal.buildCrystalPackage rec {
5
5
pname = "icr";
6
6
-
version = "0.6.0";
6
6
+
version = "0.8.0";
7
7
8
8
src = fetchFromGitHub {
9
9
-
owner = "crystal-community";
10
10
-
repo = pname;
11
11
-
rev = "v${version}";
12
12
-
sha256 = "0kkdqrxk4f4bqbb84mgjrk9r0fz1hsz95apvjsc49gav4c8xx3mb";
9
9
+
owner = "crystal-community";
10
10
+
repo = pname;
11
11
+
rev = "v${version}";
12
12
+
sha256 = "1bz2bhs6csyg2rhrlknlvaiilq3vq8plxjh1hdxmbrfi3n6c7k5a";
13
13
};
14
14
15
15
-
postPatch = ''
16
16
-
substituteInPlace Makefile \
17
17
-
--replace /usr/local $out
18
18
-
'';
15
15
+
shardsFile = ./shards.nix;
16
16
+
17
17
+
buildInputs = [ libyaml openssl readline zlib ];
19
18
20
20
-
buildInputs = [ crystal libyaml openssl readline ];
19
19
+
nativeBuildInputs = [ makeWrapper pkgconfig which ];
21
20
22
22
-
nativeBuildInputs = [ shards which ];
21
21
+
# tests are failing due to our sandbox
22
22
+
doCheck = false;
23
23
24
24
-
doCheck = true;
25
25
-
checkTarget = "test";
24
24
+
postFixup = ''
25
25
+
wrapProgram $out/bin/icr \
26
26
+
--prefix PATH : ${lib.makeBinPath [ crystal shards makeWrapper which ]}
27
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
reviewed
···
1
1
+
{
2
2
+
readline = {
3
3
+
owner = "crystal-lang";
4
4
+
repo = "crystal-readline";
5
5
+
rev = "0fb7d186da8e1b157998d98d1c96e99699b791eb";
6
6
+
sha256 = "1rk27vw3ssldgnfgprwvz2gag02v4g6d6yg56b3sk9w3fn8jyyi8";
7
7
+
};
8
8
+
}
+1
-3
pkgs/top-level/all-packages.nix
reviewed
···
8114
8114
crystal
8115
8115
crystal2nix;
8116
8116
8117
8117
-
icr = callPackage ../development/tools/icr {
8118
8118
-
openssl = openssl_1_0_2;
8119
8119
-
};
8117
8117
+
icr = callPackage ../development/tools/icr { };
8120
8118
8121
8119
scry = callPackage ../development/tools/scry {};
8122
8120