Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 35 lines 862 B view raw
1{ lib, fetchFromGitHub, crystal, openssl }: 2 3crystal.buildCrystalPackage rec { 4 version = "0.15.1"; 5 pname = "mint"; 6 7 src = fetchFromGitHub { 8 owner = "mint-lang"; 9 repo = "mint"; 10 rev = version; 11 sha256 = "sha256-naiZ51B5TBc88wH4Y7WcrkdFnZosEVCS5MlLAGVe8/E="; 12 }; 13 14 postPatch = '' 15 export HOME=$TMP 16 ''; 17 18 format = "shards"; 19 20 # Update with 21 # nix-shell -p crystal2nix --run crystal2nix 22 # with mint's shard.lock file in the current directory 23 shardsFile = ./shards.nix; 24 25 buildInputs = [ openssl ]; 26 27 meta = with lib; { 28 description = "A refreshing language for the front-end web"; 29 homepage = "https://mint-lang.com/"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ manveru ]; 32 platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]; 33 broken = lib.versionOlder crystal.version "1.0"; 34 }; 35}