1{ lib, fetchFromGitHub, crystal, openssl }:
2
3crystal.buildCrystalPackage rec {
4 version = "0.19.0";
5 pname = "mint";
6
7 src = fetchFromGitHub {
8 owner = "mint-lang";
9 repo = "mint";
10 rev = version;
11 hash = "sha256-s/ehv8Z71nWnxpajO7eR4MxoHppqkdleFluv+e5Vv6I=";
12 };
13
14 format = "shards";
15
16 # Update with
17 # nix-shell -p crystal2nix --run crystal2nix
18 # with mint's shard.lock file in the current directory
19 shardsFile = ./shards.nix;
20
21 buildInputs = [ openssl ];
22
23 preConfigure = ''
24 export HOME=$(mktemp -d)
25 '';
26
27 meta = with lib; {
28 description = "A refreshing language for the front-end web";
29 mainProgram = "mint";
30 homepage = "https://www.mint-lang.com/";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ manveru ];
33 broken = lib.versionOlder crystal.version "1.0";
34 };
35}