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-04-21 15:54:59 +00:00
|
|
|
version = "1.1.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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-3DlsqUBAKF3zgiS26YQY1MzymLg9GnVzH1HMpbYv5Dc=";
|
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 ] ++
|
2023-11-16 04:20:00 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-KROGDBOsx1WTzv7IhJ3WWLJJ9zvrmZI5poJCr2tFcLY=";
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 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/";
|
|
|
|
license = licenses.asl20;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = teams.beam.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|