mint: 0.7.1 -> 0.9.0

This commit is contained in:
Peter Hoeg 2020-04-12 21:06:12 +08:00
parent 1e3bae6c41
commit fb8902ba07
2 changed files with 31 additions and 22 deletions

View File

@ -1,27 +1,36 @@
{ lib, fetchFromGitHub, crystal, zlib, openssl, duktape, which, libyaml }: { lib, fetchFromGitHub, crystal_0_33, openssl }:
crystal.buildCrystalPackage rec {
version = "0.7.1"; let crystal = crystal_0_33;
in crystal.buildCrystalPackage rec {
version = "0.9.0";
pname = "mint"; pname = "mint";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mint-lang"; owner = "mint-lang";
repo = "mint"; repo = "mint";
rev = version; rev = version;
sha256 = "18cg96kl4dn89bj6fm3080zzyd1r7rsfi17agdjjayd2v9fgs95l"; sha256 = "0y1qr616x7s0pjgih6s1n4wiwb8kn8l1knnzmib6j4jmqax0jhz0";
}; };
buildInputs = [ openssl ]; postPatch = ''
export HOME=$TMP
'';
format = "shards";
# Update with # Update with
# nix-shell -p crystal2nix --run crystal2nix # nix-shell -p crystal2nix --run crystal2nix
# with mint's shard.lock file in the current directory # with mint's shard.lock file in the current directory
shardsFile = ./shards.nix; shardsFile = ./shards.nix;
crystalBinaries.mint.src = "src/mint.cr";
meta = { buildInputs = [ openssl ];
meta = with lib; {
description = "A refreshing language for the front-end web"; description = "A refreshing language for the front-end web";
homepage = "https://mint-lang.com/"; homepage = "https://mint-lang.com/";
license = lib.licenses.bsd3; license = licenses.bsd3;
maintainers = with lib.maintainers; [ manveru ]; maintainers = with maintainers; [ manveru ];
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]; platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
broken = lib.versionOlder crystal.version "0.33";
}; };
} }

View File

@ -2,26 +2,26 @@
admiral = { admiral = {
owner = "jwaldrip"; owner = "jwaldrip";
repo = "admiral.cr"; repo = "admiral.cr";
rev = "v1.7.3"; rev = "v1.9.0";
sha256 = "0b98qjy43wsrc08am7lkhcdsxc7gplf9hcmbvd4p3dw4g107rk91"; sha256 = "0y8gsh1qz42bc9jawcrn0i49mzzfvf8znmivd8lybapf0f53fblz";
}; };
ameba = { ameba = {
owner = "veelenga"; owner = "crystal-ameba";
repo = "ameba"; repo = "ameba";
rev = "v0.10.1"; rev = "v0.12.0";
sha256 = "0dcw7px7g0c5pxpdlirhirqzhcc7gdwdfiwb9kgm4x1k74ghjgxq"; sha256 = "0g68yijbm2j4ig536fwq49d1z7x2iv9kp4g3gjklf5zn1sbqhm12";
}; };
baked_file_system = { baked_file_system = {
owner = "schovi"; owner = "schovi";
repo = "baked_file_system"; repo = "baked_file_system";
rev = "v0.9.7"; rev = "v0.9.8";
sha256 = "1fi6zag1a6h4xwrfizy01dls3hhraqw0cmpwj7rjv1qcddjgig5z"; sha256 = "12l375jllg1lxvfh610dz0a39p803xw6q9fxlmnc6hy55i0gm0y3";
}; };
diff = { diff = {
owner = "MakeNowJust"; owner = "MakeNowJust";
repo = "crystal-diff"; repo = "crystal-diff";
rev = "51962dc36f9bbb1b926d557f7cb8993a6c73cc63"; rev = "v1.1.0";
sha256 = "1nwnsxm8srfw8jg0yfi2v19x6j3dadx62hq0xpxra40qcqz9dbnp"; sha256 = "1q5q2d5mp1r8c6k5v4755sb3b6awiz85d1j280djzhbd0pggk3z7";
}; };
dotenv = { dotenv = {
owner = "gdotdesign"; owner = "gdotdesign";
@ -32,14 +32,14 @@
exception_page = { exception_page = {
owner = "crystal-loot"; owner = "crystal-loot";
repo = "exception_page"; repo = "exception_page";
rev = "v0.1.2"; rev = "v0.1.4";
sha256 = "0j5ishhyriq9p339yaawrmawl9wgmp1paniq30a8d6a0568h3avq"; sha256 = "0bsp2m89sl0bg9d5szbs1nxyk7yk58rkk24aibr39hhb5zi70pqi";
}; };
kemal = { kemal = {
owner = "kemalcr"; owner = "kemalcr";
repo = "kemal"; repo = "kemal";
rev = "v0.25.1"; rev = "v0.26.1";
sha256 = "1334i905xj6vlmp8acyybwwlaxsgmf90b59da7brzpnf28wci782"; sha256 = "169pwkjmk7x6j8i0rf5rpyk1y0hl7jaf9h6yrq4ha2ag9yq9i8fr";
}; };
kilt = { kilt = {
owner = "jeromegn"; owner = "jeromegn";