2020-07-23 19:43:25 +01:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
|
2019-12-17 10:36:53 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gleam";
|
2020-11-18 07:25:36 +00:00
|
|
|
version = "0.12.1";
|
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}";
|
2020-11-18 07:25:36 +00:00
|
|
|
sha256 = "0n23pn7jk4i2waczw5cczsb7v4lal4x6xqmp01y280hb2vk176fg";
|
2019-12-17 10:36:53 +00:00
|
|
|
};
|
|
|
|
|
2020-07-23 19:43:25 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-12-17 10:36:53 +00:00
|
|
|
|
2020-07-23 19:43:25 +01:00
|
|
|
buildInputs = [ openssl ] ++
|
|
|
|
stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2020-11-18 07:25:36 +00:00
|
|
|
cargoSha256 = "0rnf9agpzlvk53x8zrg32w6r0gxcbank3fs32ydv53frvqv1spj3";
|
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;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2019-12-17 10:36:53 +00:00
|
|
|
};
|
|
|
|
}
|