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-07-23 19:43:25 +01:00
|
|
|
version = "0.10.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-07-23 19:43:25 +01:00
|
|
|
sha256 = "0cgs0halxhp2hh3sf0nvy5ybllhraxircxxbfj9jbs3446dzflbk";
|
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 ];
|
|
|
|
|
|
|
|
cargoSha256 = "12lpxighjk3ydfa288llj6xqas7z9fbfjpwnl870189awvp2fjxx";
|
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;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
|
|
|
}
|