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";
|
2020-09-04 19:33:19 +02:00
|
|
|
version = "0.11.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}";
|
2020-09-04 19:33:19 +02:00
|
|
|
sha256 = "1g8yfp1xpkv1lqz8azam40cvrs5cggxlyrb72h8k88br75qmi6hj";
|
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 ];
|
|
|
|
|
2020-09-04 19:33:19 +02:00
|
|
|
cargoSha256 = "1gfr6c4i5kx8x3q23s4b4n25z2k6xkxpk12acr4ry97pyj2lr5wq";
|
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;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
|
|
|
}
|