2019-08-26 18:24:45 +02:00
|
|
|
{ lib, fetchFromGitHub, crystal, zlib, openssl_1_0_2, duktape, which, libyaml }:
|
|
|
|
crystal.buildCrystalPackage rec {
|
2019-04-29 10:58:51 +02:00
|
|
|
version = "0.5.0";
|
2019-08-26 18:24:45 +02:00
|
|
|
pname = "mint";
|
2018-05-30 17:54:56 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mint-lang";
|
|
|
|
repo = "mint";
|
2018-08-28 00:24:13 +02:00
|
|
|
rev = version;
|
2019-04-29 10:58:51 +02:00
|
|
|
sha256 = "0vxbx38c390rd2ysvbwgh89v2232sh5rbsp3nk9wzb70jybpslvl";
|
2018-05-27 21:13:22 +02:00
|
|
|
};
|
|
|
|
|
2019-08-26 18:24:45 +02:00
|
|
|
buildInputs = [ openssl_1_0_2 ];
|
2018-05-27 21:13:22 +02:00
|
|
|
|
2019-08-26 18:24:45 +02:00
|
|
|
# Update with
|
|
|
|
# nix-shell -p crystal2nix --run crystal2nix
|
|
|
|
# with mint's shard.lock file in the current directory
|
|
|
|
shardsFile = ./shards.nix;
|
|
|
|
crystalBinaries.mint.src = "src/mint.cr";
|
2018-05-27 21:13:22 +02:00
|
|
|
|
|
|
|
meta = {
|
2018-05-30 17:54:56 +02:00
|
|
|
description = "A refreshing language for the front-end web";
|
2018-05-27 21:13:22 +02:00
|
|
|
homepage = https://mint-lang.com/;
|
2019-08-26 18:24:45 +02:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ manveru ];
|
2018-05-27 21:13:22 +02:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|