depot/third_party/nixpkgs/pkgs/development/compilers/mint/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

34 lines
810 B
Nix

{ lib, fetchFromGitHub, crystal, openssl }:
crystal.buildCrystalPackage rec {
version = "0.15.3";
pname = "mint";
src = fetchFromGitHub {
owner = "mint-lang";
repo = "mint";
rev = version;
hash = "sha256-VjQ736RWP9HK0QFKbgchnEPYH/Ny2w8SI/xnO3m94B8=";
};
format = "shards";
# Update with
# nix-shell -p crystal2nix --run crystal2nix
# with mint's shard.lock file in the current directory
shardsFile = ./shards.nix;
buildInputs = [ openssl ];
preConfigure = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "A refreshing language for the front-end web";
homepage = "https://www.mint-lang.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ manveru ];
broken = lib.versionOlder crystal.version "1.0";
};
}