2021-04-02 21:13:02 +02:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security, libiconv }:
|
2019-12-17 11:36:53 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gleam";
|
2021-05-09 07:11:03 +02:00
|
|
|
version = "0.15.1";
|
2019-12-17 11:36:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-12-27 17:51:43 +01:00
|
|
|
owner = "gleam-lang";
|
2019-12-17 11:36:53 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-09 07:11:03 +02:00
|
|
|
sha256 = "sha256-vBxVGIgg2BpVvEYjmX99YSf1zy9aWOHr6ftaYxJWkzY=";
|
2019-12-17 11:36:53 +01:00
|
|
|
};
|
|
|
|
|
2020-07-23 20:43:25 +02:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-12-17 11:36:53 +01:00
|
|
|
|
2020-07-23 20:43:25 +02:00
|
|
|
buildInputs = [ openssl ] ++
|
2021-04-02 21:13:02 +02:00
|
|
|
lib.optionals stdenv.isDarwin [ Security libiconv ];
|
2020-07-23 20:43:25 +02:00
|
|
|
|
2021-05-09 07:11:03 +02:00
|
|
|
cargoSha256 = "sha256-2zHc7xk5MuEUO9YGifSWbgRTi51ZUk84QLro94LsBtQ=";
|
2019-12-17 11:36:53 +01:00
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2019-12-17 11:36:53 +01:00
|
|
|
description = "A statically typed language for the Erlang VM";
|
|
|
|
homepage = "https://gleam.run/";
|
|
|
|
license = licenses.asl20;
|
2021-01-23 21:25:40 +01:00
|
|
|
maintainers = teams.beam.members;
|
2019-12-17 11:36:53 +01:00
|
|
|
};
|
|
|
|
}
|