Gleam can be temporary added to the $PATH with nix shell:

nix shell nixpkgs#gleam nixpkgs#beamPackages.erlang nixpkgs#beamPackages.rebar3