Files
nixpkgs/pkgs/by-name/mi/mint/package.nix
2026-06-17 21:13:33 +00:00

45 lines
867 B
Nix

{
lib,
fetchFromGitHub,
crystal,
libxml2,
openssl,
}:
crystal.buildCrystalPackage rec {
pname = "mint";
version = "0.29.0";
src = fetchFromGitHub {
owner = "mint-lang";
repo = "mint";
tag = version;
hash = "sha256-T8gbJ6IeheaiT3QZ/005IV3942wTMjMa/8lWUuyayX0=";
};
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;
};
}