Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
git,
|
|
pkg-config,
|
|
openssl,
|
|
erlang_27,
|
|
nodejs,
|
|
bun,
|
|
deno,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "gleam";
|
|
version = "1.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gleam-lang";
|
|
repo = "gleam";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Qjl+I09tnBbGc771SVJVb6fzAZ2tVOnBNhGfrIUh824=";
|
|
};
|
|
|
|
cargoHash = "sha256-Ya0glVECB3cb9kgguuH4nY0ClK5NPH1mKAX9INDLzx4=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
erlang_27
|
|
];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
nativeCheckInputs = [
|
|
# used by several tests
|
|
git
|
|
|
|
# js runtimes used for integration tests
|
|
nodejs
|
|
bun
|
|
deno
|
|
];
|
|
|
|
checkFlags = [
|
|
# Makes a network request
|
|
"--skip=tests::echo::echo_dict"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Statically typed language for the Erlang VM";
|
|
mainProgram = "gleam";
|
|
homepage = "https://gleam.run/";
|
|
changelog = "https://github.com/gleam-lang/gleam/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
philtaken
|
|
llakala
|
|
];
|
|
teams = [ lib.teams.beam ];
|
|
};
|
|
})
|