2020-02-18 00:35:49 +00:00
|
|
|
{ lib, fetchFromGitHub, crystal, zlib, openssl, duktape, which, libyaml }:
|
2019-08-26 17:24:45 +01:00
|
|
|
crystal.buildCrystalPackage rec {
|
2020-02-18 00:35:49 +00:00
|
|
|
version = "0.7.1";
|
2019-08-26 17:24:45 +01:00
|
|
|
pname = "mint";
|
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;
|
2020-02-18 00:35:49 +00:00
|
|
|
sha256 = "18cg96kl4dn89bj6fm3080zzyd1r7rsfi17agdjjayd2v9fgs95l";
|
2018-05-27 20:13:22 +01:00
|
|
|
};
|
|
|
|
|
2020-02-18 00:35:49 +00:00
|
|
|
buildInputs = [ openssl ];
|
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;
|
|
|
|
crystalBinaries.mint.src = "src/mint.cr";
|
2018-05-27 20:13:22 +01:00
|
|
|
|
|
|
|
meta = {
|
2018-05-30 16:54:56 +01:00
|
|
|
description = "A refreshing language for the front-end web";
|
2018-05-27 20:13:22 +01:00
|
|
|
homepage = https://mint-lang.com/;
|
2019-08-26 17:24:45 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ manveru ];
|
2018-05-27 20:13:22 +01:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|