2023-08-04 05:27:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
, libiconv
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
2019-12-17 10:36:53 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gleam";
|
2023-11-06 15:24:29 +00:00
|
|
|
version = "0.32.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;
|
2023-02-28 14:31:09 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-06 15:24:29 +00:00
|
|
|
hash = "sha256-1FIeH4NFyYQinqzCBZ9m2Jm6f5tLJDJxVdb4D3+fQ4w=";
|
2019-12-17 10:36:53 +00:00
|
|
|
};
|
|
|
|
|
2023-02-28 14:31:09 +00:00
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
2019-12-17 10:36:53 +00:00
|
|
|
|
2020-07-23 18:43:25 +00:00
|
|
|
buildInputs = [ openssl ] ++
|
2021-04-02 19:13:02 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ Security libiconv ];
|
2020-07-23 18:43:25 +00:00
|
|
|
|
2023-11-06 15:24:29 +00:00
|
|
|
cargoHash = "sha256-ffnDTGg+m0NUhG2BYjsXb2fWHeQmtDcBGqQDLqwZMWI=";
|
2019-12-17 10:36:53 +00:00
|
|
|
|
2023-08-04 05:27:29 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|