nixpkgs/pkgs/development/compilers/mint/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
862 B
Nix
Raw Normal View History

2021-10-14 20:02:37 +00:00
{ lib, fetchFromGitHub, crystal, openssl }:
2020-04-12 13:06:12 +00:00
2021-03-30 07:23:16 +00:00
crystal.buildCrystalPackage rec {
2021-12-25 17:58:07 +00:00
version = "0.15.1";
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;
2021-12-25 17:58:07 +00:00
sha256 = "sha256-naiZ51B5TBc88wH4Y7WcrkdFnZosEVCS5MlLAGVe8/E=";
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";
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" ];
2021-07-21 00:54:34 +00:00
broken = lib.versionOlder crystal.version "1.0";
2018-05-27 19:13:22 +00:00
};
}