depot/third_party/nixpkgs/pkgs/development/compilers/gleam/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
911 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, git
, pkg-config
, openssl
, Security
, nix-update-script
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
pname = "gleam";
version = "1.2.1";
src = fetchFromGitHub {
owner = "gleam-lang";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-J3FqaKEeK+Xy8Ri5j7+K+4wpvNeMUHSfj2O68XBPlYs=";
};
nativeBuildInputs = [ git pkg-config ];
buildInputs = [ openssl ] ++
lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
cargoHash = "sha256-l0LFgmsk87mCVu1UiaFtP3mO01CDV3xTz4Kv+l6AAWw=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A statically typed language for the Erlang VM";
mainProgram = "gleam";
homepage = "https://gleam.run/";
license = licenses.asl20;
maintainers = teams.beam.members ++ [ lib.maintainers.philtaken ];
};
}