1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security, libiconv }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-iW4mH9zLJzD+E+H/b0NAbPWzfSbDmRpirDwrLlyZppI=";
14 nativeBuildInputs = [ pkg-config ];
16 buildInputs = [ openssl ] ++
17 lib.optionals stdenv.isDarwin [ Security libiconv ];
19 cargoSha256 = "sha256-ErLwrve2Fpyg9JaH3y7VIYuFcOPVP++XAIrRvv5dGm0=";
22 description = "A statically typed language for the Erlang VM";
23 homepage = "https://gleam.run/";
24 license = licenses.asl20;
25 maintainers = teams.beam.members;