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 {
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "0.15.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mint";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mint-lang";
|
|
|
|
repo = "mint";
|
|
|
|
rev = version;
|
2021-12-30 13:39:12 +00:00
|
|
|
sha256 = "sha256-naiZ51B5TBc88wH4Y7WcrkdFnZosEVCS5MlLAGVe8/E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A refreshing language for the front-end web";
|
|
|
|
homepage = "https://mint-lang.com/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
2021-07-24 12:14:16 +00:00
|
|
|
broken = lib.versionOlder crystal.version "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|