2021-10-17 02:12:59 +00:00
|
|
|
{ lib, fetchFromGitHub, crystal, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
crystal.buildCrystalPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.15.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mint";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mint-lang";
|
|
|
|
repo = "mint";
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-VjQ736RWP9HK0QFKbgchnEPYH/Ny2w8SI/xnO3m94B8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "shards";
|
|
|
|
|
|
|
|
# Update with
|
|
|
|
# nix-shell -p crystal2nix --run crystal2nix
|
|
|
|
# with mint's shard.lock file in the current directory
|
|
|
|
shardsFile = ./shards.nix;
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
preConfigure = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A refreshing language for the front-end web";
|
2024-01-13 08:15:51 +00:00
|
|
|
homepage = "https://www.mint-lang.com/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
2021-07-24 12:14:16 +00:00
|
|
|
broken = lib.versionOlder crystal.version "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|