{ stdenv, rustPlatform, fetchFromGitHub, Security }: rustPlatform.buildRustPackage rec { pname = "gleam"; version = "0.8.0-rc1"; src = fetchFromGitHub { owner = "gleam-lang"; repo = pname; rev = "v${version}"; sha256 = "1asn9k4s9m9fr4cx8f1z2npkby7vjdsypn4q6xfy3bk2pgn306bl"; }; buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; cargoSha256 = "1jxbq32s68zvanmwvq5wm46bkigziqgl920cf2xg5hcv4l25f03n"; meta = with stdenv.lib; { description = "A statically typed language for the Erlang VM"; homepage = "https://gleam.run/"; license = licenses.asl20; maintainers = with maintainers; [ filalex77 ]; }; }