2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
|
2019-12-17 10:36:53 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gleam";
|
2021-01-18 22:11:33 +00:00
|
|
|
version = "0.13.2";
|
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}";
|
2021-01-18 22:11:33 +00:00
|
|
|
sha256 = "sha256-ka1GxukX3HR40fMeiiXHguyPKrpGngG2tXDColR7eQA=";
|
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 ] ++
|
2021-01-22 11:25:31 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ Security ];
|
2020-07-23 19:43:25 +01:00
|
|
|
|
2021-01-18 22:11:33 +00:00
|
|
|
cargoSha256 = "sha256-/l54ezS68loljKNh7AdYMIuCiyIbsMI3jqD9ktjZLfc=";
|
2019-12-17 10:36:53 +00:00
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2019-12-17 10:36:53 +00:00
|
|
|
description = "A statically typed language for the Erlang VM";
|
|
|
|
homepage = "https://gleam.run/";
|
|
|
|
license = licenses.asl20;
|
2021-01-23 20:25:40 +00:00
|
|
|
maintainers = teams.beam.members;
|
2019-12-17 10:36:53 +00:00
|
|
|
};
|
|
|
|
}
|