2021-07-21 01:54:34 +01:00
|
|
|
{ lib, fetchFromGitHub, crystal_1_0, openssl }:
|
2020-04-12 14:06:12 +01:00
|
|
|
|
2021-03-30 08:23:16 +01:00
|
|
|
let
|
2021-07-21 01:54:34 +01:00
|
|
|
crystal = crystal_1_0;
|
2021-03-30 08:23:16 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
crystal.buildCrystalPackage rec {
|
2021-07-21 01:54:34 +01:00
|
|
|
version = "0.14.0";
|
2019-08-26 17:24:45 +01:00
|
|
|
pname = "mint";
|
2020-04-12 14:06:12 +01:00
|
|
|
|
2018-05-30 16:54:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mint-lang";
|
|
|
|
repo = "mint";
|
2018-08-27 23:24:13 +01:00
|
|
|
rev = version;
|
2021-07-21 01:54:34 +01:00
|
|
|
sha256 = "1mf9d0jpdb21hkzaqvwyx2171dv3hr50zhl07p85wpf0d3n5wml8";
|
2018-05-27 20:13:22 +01:00
|
|
|
};
|
|
|
|
|
2020-04-12 14:06:12 +01:00
|
|
|
postPatch = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
'';
|
|
|
|
|
|
|
|
format = "shards";
|
2018-05-27 20:13:22 +01:00
|
|
|
|
2019-08-26 17:24:45 +01: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 20:13:22 +01:00
|
|
|
|
2020-04-12 14:06:12 +01:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-05-30 16:54:56 +01:00
|
|
|
description = "A refreshing language for the front-end web";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://mint-lang.com/";
|
2020-04-12 14:06:12 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ manveru ];
|
2018-05-27 20:13:22 +01:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
2021-07-21 01:54:34 +01:00
|
|
|
broken = lib.versionOlder crystal.version "1.0";
|
2018-05-27 20:13:22 +01:00
|
|
|
};
|
|
|
|
}
|