2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
, nix-update-script
|
2023-11-16 04:20:00 +00:00
|
|
|
, SystemConfiguration
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gleam";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gleam-lang";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-buMnbBg+/vHXzbBuMPuV8AfdUmYA9J6WTXP7Oqrdo34=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [ openssl ] ++
|
2024-09-26 11:04:55 +00:00
|
|
|
lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
cargoHash = "sha256-0Vtf9UXLPW5HuqNIAGNyqIXCMTITdG7PuFdw4H4v6a4=";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Statically typed language for the Erlang VM";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gleam";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://gleam.run/";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/gleam-lang/gleam/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = teams.beam.members ++ [ lib.maintainers.philtaken ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|