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