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

40 lines
902 B
Nix
Raw Normal View History

2021-03-30 09:23:16 +02:00
{ lib, fetchFromGitHub, crystal_0_36, openssl }:
2020-04-12 15:06:12 +02:00
2021-03-30 09:23:16 +02:00
let
crystal = crystal_0_36;
in
crystal.buildCrystalPackage rec {
version = "0.11.0";
2019-08-26 18:24:45 +02:00
pname = "mint";
2020-04-12 15:06:12 +02:00
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;
2021-03-30 09:23:16 +02:00
sha256 = "sha256-QqO4Kc8hf6WNCENPvLwYIF9gtXG/VRR7DhyZvxB4VsA=";
2018-05-27 21:13:22 +02:00
};
2020-04-12 15:06:12 +02:00
postPatch = ''
export HOME=$TMP
'';
format = "shards";
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;
2018-05-27 21:13:22 +02:00
2020-04-12 15:06:12 +02:00
buildInputs = [ openssl ];
meta = with lib; {
2018-05-30 17:54:56 +02:00
description = "A refreshing language for the front-end web";
homepage = "https://mint-lang.com/";
2020-04-12 15:06:12 +02:00
license = licenses.bsd3;
maintainers = with maintainers; [ manveru ];
2018-05-27 21:13:22 +02:00
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
2020-04-12 15:06:12 +02:00
broken = lib.versionOlder crystal.version "0.33";
2018-05-27 21:13:22 +02:00
};
}