mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
28 lines
754 B
Nix
28 lines
754 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, git, pkg-config, openssl, Security, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gleam";
|
|
version = "0.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gleam-lang";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-RkpHmrxKiMtXOPKd8qBREike2sJ3NZcrc7RIxG08eyI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++
|
|
lib.optionals stdenv.isDarwin [ Security libiconv ];
|
|
|
|
cargoSha256 = "sha256-QluOPKEkofRRE+UxNe60f+sA8Ov3um25kl2F/pt19js=";
|
|
|
|
meta = with lib; {
|
|
description = "A statically typed language for the Erlang VM";
|
|
homepage = "https://gleam.run/";
|
|
license = licenses.asl20;
|
|
maintainers = teams.beam.members;
|
|
};
|
|
}
|