Files
nixpkgs/pkgs/by-name/mi/mint/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

46 lines
920 B
Nix

{
lib,
fetchFromGitHub,
crystal,
libxml2,
openssl,
}:
crystal.buildCrystalPackage rec {
pname = "mint";
version = "0.24.1";
src = fetchFromGitHub {
owner = "mint-lang";
repo = "mint";
tag = version;
hash = "sha256-gMR/FUp/pOC0TQy6ENH3pIxK43hrHEciT17aGqXVKc8=";
};
format = "shards";
# Update with
# nix-shell -p crystal2nix --run crystal2nix
# with mint's shard.lock file in the current directory
shardsFile = ./shards.nix;
nativeBuildInputs = [
libxml2 # xmllint
];
buildInputs = [ openssl ];
preCheck = ''
substituteInPlace spec/spec_helper.cr \
--replace-fail "clear_env: true" "clear_env: false"
'';
meta = {
description = "Refreshing language for the front-end web";
mainProgram = "mint";
homepage = "https://www.mint-lang.com/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ manveru ];
};
}