2021-10-14 20:02:37 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
crystal,
|
|
|
|
openssl,
|
|
|
|
}:
|
2020-04-12 13:06:12 +00:00
|
|
|
|
2021-03-30 07:23:16 +00:00
|
|
|
crystal.buildCrystalPackage rec {
|
2024-01-08 14:02:55 +00:00
|
|
|
version = "0.19.0";
|
2019-08-26 16:24:45 +00:00
|
|
|
pname = "mint";
|
2020-04-12 13:06:12 +00:00
|
|
|
|
2018-05-30 15:54:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mint-lang";
|
|
|
|
repo = "mint";
|
2018-08-27 22:24:13 +00:00
|
|
|
rev = version;
|
2024-01-08 14:02:55 +00:00
|
|
|
hash = "sha256-s/ehv8Z71nWnxpajO7eR4MxoHppqkdleFluv+e5Vv6I=";
|
2018-05-27 19:13:22 +00:00
|
|
|
};
|
|
|
|
|
2020-04-12 13:06:12 +00:00
|
|
|
format = "shards";
|
2018-05-27 19:13:22 +00:00
|
|
|
|
2019-08-26 16:24:45 +00:00
|
|
|
# Update with
|
|
|
|
# nix-shell -p crystal2nix --run crystal2nix
|
|
|
|
# with mint's shard.lock file in the current directory
|
|
|
|
shardsFile = ./shards.nix;
|
2018-05-27 19:13:22 +00:00
|
|
|
|
2020-04-12 13:06:12 +00:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2022-02-27 02:48:35 +00:00
|
|
|
preConfigure = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2020-04-12 13:06:12 +00:00
|
|
|
meta = with lib; {
|
2018-05-30 15:54:56 +00:00
|
|
|
description = "Refreshing language for the front-end web";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mint";
|
2022-02-27 02:48:35 +00:00
|
|
|
homepage = "https://www.mint-lang.com/";
|
2020-04-12 13:06:12 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
2021-07-21 00:54:34 +00:00
|
|
|
broken = lib.versionOlder crystal.version "1.0";
|
2018-05-27 19:13:22 +00:00
|
|
|
};
|
|
|
|
}
|