2019-12-17 10:36:53 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gleam";
|
2019-12-27 16:51:00 +00:00
|
|
|
version = "0.6.0";
|
2019-12-17 10:36:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-12-27 16:51:43 +00:00
|
|
|
owner = "gleam-lang";
|
2019-12-17 10:36:53 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-12-27 16:51:00 +00:00
|
|
|
sha256 = "1fvy2j6pw1rwm0rg7555q3qg2069cx2b9lk0nsyc3jxsqp9hbn6i";
|
2019-12-17 10:36:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2020-02-14 02:00:26 +00:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2019-12-27 16:51:00 +00:00
|
|
|
cargoSha256 = "0zfdsnrnxplvi4f92l7sqdp5yk5p738ra64m41izlcilkwj1j3vp";
|
2019-12-17 10:36:53 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A statically typed language for the Erlang VM";
|
|
|
|
homepage = "https://gleam.run/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
|
|
|
}
|