# shell.nix -rw-r--r-- 938 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ pkgs ? import <nixpkgs> { } }:
with pkgs; let 
gleam = rustPlatform.buildRustPackage rec {
  pname = "gleam";
  version = "0.32.1";

  src = fetchFromGitHub {
    owner = "gleam-lang";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-SRS1aYwXNH5RBffDa1GE41KbB5r2hpZmRBJW7J3Q8SQ=";
  };

  nativeBuildInputs = [ git pkg-config ];

  buildInputs = [ openssl ] ++
    lib.optionals stdenv.isDarwin [ Security libiconv ];


  cargoHash = "sha256-Ht0cQs9st2X19hB6oNdSZRRlWs+YhP3wvb8YD3aGh1s=";

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "A statically typed language for the Erlang VM";
    homepage = "https://gleam.run/";
    license = licenses.asl20;
    maintainers = teams.beam.members;
  };
};
      elixir = beam.packages.erlangR26.elixir_1_15;
in
mkShell {
  buildInputs = [ gleam elixir beamPackages.rebar3 beam.interpreters.erlang_26 nodejs nodePackages.npm];
}