2021-01-25 15:25:22 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, crystal
|
|
|
|
, shards
|
|
|
|
, makeWrapper
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, openssl
|
|
|
|
, readline
|
|
|
|
, libyaml
|
|
|
|
, zlib
|
|
|
|
}:
|
2018-09-21 02:51:13 +02:00
|
|
|
|
2020-03-18 03:16:02 +01:00
|
|
|
crystal.buildCrystalPackage rec {
|
2018-11-05 00:32:52 +01:00
|
|
|
pname = "icr";
|
2021-01-25 15:25:22 +01:00
|
|
|
version = "unstable-2020-10-06";
|
2018-09-21 02:51:13 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-18 03:16:02 +01:00
|
|
|
owner = "crystal-community";
|
2021-01-25 15:25:22 +01:00
|
|
|
repo = "icr";
|
|
|
|
rev = "8c57cd7c1fdf8088cb05c1587bd6c40d244a8a80";
|
|
|
|
sha256 = "sha256-b0w6oG2npNgdi2ZowMlJy0iUxQWqb9+DiruQl7Ztb0E=";
|
2018-09-21 02:51:13 +02:00
|
|
|
};
|
|
|
|
|
2020-03-18 03:16:02 +01:00
|
|
|
shardsFile = ./shards.nix;
|
|
|
|
|
|
|
|
buildInputs = [ libyaml openssl readline zlib ];
|
2018-09-21 02:51:13 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper pkg-config which ];
|
2018-09-21 02:51:13 +02:00
|
|
|
|
2020-03-18 03:16:02 +01:00
|
|
|
# tests are failing due to our sandbox
|
|
|
|
doCheck = false;
|
2018-09-21 02:51:13 +02:00
|
|
|
|
2020-03-18 03:16:02 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/icr \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ crystal shards makeWrapper which ]}
|
|
|
|
'';
|
2018-09-21 02:51:13 +02:00
|
|
|
|
2021-01-23 13:26:19 +01:00
|
|
|
meta = with lib; {
|
2018-09-21 02:51:13 +02:00
|
|
|
description = "Interactive console for the Crystal programming language";
|
2019-05-12 15:27:55 +02:00
|
|
|
homepage = "https://github.com/crystal-community/icr";
|
2018-09-21 02:51:13 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|