at 23.11-beta 39 lines 852 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchFromGitHub 5, git 6, pkg-config 7, openssl 8, Security 9, nix-update-script 10, SystemConfiguration 11}: 12 13rustPlatform.buildRustPackage rec { 14 pname = "gleam"; 15 version = "0.32.4"; 16 17 src = fetchFromGitHub { 18 owner = "gleam-lang"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-xl75692d8h1uvh32pf+VJcXwQJwocxDaBNbfolHJKXU="; 22 }; 23 24 nativeBuildInputs = [ git pkg-config ]; 25 26 buildInputs = [ openssl ] ++ 27 lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; 28 29 cargoHash = "sha256-SwG7cfoDYGyBu+1qF3+ynnw9rOA6jNExRV9uOVwgO60="; 30 31 passthru.updateScript = nix-update-script { }; 32 33 meta = with lib; { 34 description = "A statically typed language for the Erlang VM"; 35 homepage = "https://gleam.run/"; 36 license = licenses.asl20; 37 maintainers = teams.beam.members; 38 }; 39}