Files
nixpkgs/pkgs/by-name/ic/icr/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
crystal,
shards,
makeWrapper,
pkg-config,
which,
openssl,
readline,
libyaml,
zlib,
}:
crystal.buildCrystalPackage rec {
pname = "icr";
version = "0.9.0";
src = fetchFromGitHub {
owner = "crystal-community";
repo = "icr";
rev = "v${version}";
hash = "sha256-29B/i8oEjwNOYjnc78QcYTl6fC/M9VfAVCCBjLBKp0Q=";
};
shardsFile = ./shards.nix;
buildInputs = [
libyaml
openssl
readline
zlib
];
nativeBuildInputs = [
makeWrapper
pkg-config
which
];
# tests are failing due to our sandbox
doCheck = false;
postFixup = ''
wrapProgram $out/bin/icr \
--prefix PATH : ${
lib.makeBinPath [
crystal
shards
which
]
}
'';
meta = with lib; {
description = "Interactive console for the Crystal programming language";
mainProgram = "icr";
homepage = "https://github.com/crystal-community/icr";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}