2020-04-12 13:06:12 +00:00
|
|
|
{ lib, fetchFromGitHub, crystal_0_33, openssl }:
|
|
|
|
|
|
|
|
let crystal = crystal_0_33;
|
|
|
|
in crystal.buildCrystalPackage rec {
|
|
|
|
version = "0.9.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;
|
2020-04-12 13:06:12 +00:00
|
|
|
sha256 = "0y1qr616x7s0pjgih6s1n4wiwb8kn8l1knnzmib6j4jmqax0jhz0";
|
2018-05-27 19:13:22 +00:00
|
|
|
};
|
|
|
|
|
2020-04-12 13:06:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-05-30 15:54:56 +00:00
|
|
|
description = "A refreshing language for the front-end web";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://mint-lang.com/";
|
2020-04-12 13:06:12 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
2018-05-27 19:13:22 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
2020-04-12 13:06:12 +00:00
|
|
|
broken = lib.versionOlder crystal.version "0.33";
|
2018-05-27 19:13:22 +00:00
|
|
|
};
|
|
|
|
}
|