mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 13:43:50 +00:00
![Payas Relekar](/assets/img/avatar_default.png)
While gleam can be run entirely off JS backend, a lot of its intended uses are in the backend where its target is BEAM VM of Erlang. Current Gleam version requires Erlang/OTP 26 (erlang_26), while nixpkgs still defaults to Erlang/OTP 25 (erlang). This change fixes that.
43 lines
1023 B
Nix
43 lines
1023 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, git
|
|
, pkg-config
|
|
, openssl
|
|
, erlang
|
|
, Security
|
|
, nix-update-script
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gleam";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gleam-lang";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4/NDZGq62M0tdWerIkmoYS0WHC06AV8c9vlo/6FhsAo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
|
|
|
buildInputs = [ openssl erlang ] ++
|
|
lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
|
|
|
|
cargoHash = "sha256-B8tCVkubP04gAHKQC0idR5AjpVHG/kCXvPCfwKCuaSo=";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Statically typed language for the Erlang VM";
|
|
mainProgram = "gleam";
|
|
homepage = "https://gleam.run/";
|
|
changelog = "https://github.com/gleam-lang/gleam/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = teams.beam.members ++ [ lib.maintainers.philtaken ];
|
|
};
|
|
}
|