lol
1{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security, libiconv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "gleam";
5 version = "0.24.0";
6
7 src = fetchFromGitHub {
8 owner = "gleam-lang";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-MywgFoydV58oBJ2dGK1lWSu7o3SkuOhLpKhy7WDAJ3I=";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15
16 buildInputs = [ openssl ] ++
17 lib.optionals stdenv.isDarwin [ Security libiconv ];
18
19 cargoSha256 = "sha256-VcC7G0m/GYpxUZ+c+orFkCaqiNO3fUjymE29Z1pMqek=";
20
21 meta = with lib; {
22 description = "A statically typed language for the Erlang VM";
23 homepage = "https://gleam.run/";
24 license = licenses.asl20;
25 maintainers = teams.beam.members;
26 };
27}