gleam: Add erlang_27 as runtime dependency

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.
This commit is contained in:
Payas Relekar 2024-10-26 20:18:22 +05:30
parent 1533196dff
commit 8082648c80
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
, git , git
, pkg-config , pkg-config
, openssl , openssl
, erlang
, Security , Security
, nix-update-script , nix-update-script
, SystemConfiguration , SystemConfiguration
@ -23,7 +24,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ git pkg-config ]; nativeBuildInputs = [ git pkg-config ];
buildInputs = [ openssl ] ++ buildInputs = [ openssl erlang ] ++
lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ]; lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
cargoHash = "sha256-B8tCVkubP04gAHKQC0idR5AjpVHG/kCXvPCfwKCuaSo="; cargoHash = "sha256-B8tCVkubP04gAHKQC0idR5AjpVHG/kCXvPCfwKCuaSo=";

View File

@ -14853,6 +14853,7 @@ with pkgs;
gleam = callPackage ../development/compilers/gleam { gleam = callPackage ../development/compilers/gleam {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
erlang = erlang_27;
}; };
gmqcc = callPackage ../development/compilers/gmqcc { }; gmqcc = callPackage ../development/compilers/gmqcc { };