1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
nixpkgs/pkgs/development/compilers/gleam/default.nix

28 lines
718 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "gleam";
2021-01-18 22:11:33 +00:00
version = "0.13.2";
src = fetchFromGitHub {
owner = "gleam-lang";
repo = pname;
rev = "v${version}";
2021-01-18 22:11:33 +00:00
sha256 = "sha256-ka1GxukX3HR40fMeiiXHguyPKrpGngG2tXDColR7eQA=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++
lib.optionals stdenv.isDarwin [ Security ];
2021-01-18 22:11:33 +00:00
cargoSha256 = "sha256-/l54ezS68loljKNh7AdYMIuCiyIbsMI3jqD9ktjZLfc=";
meta = with lib; {
description = "A statically typed language for the Erlang VM";
homepage = "https://gleam.run/";
license = licenses.asl20;
2021-01-23 20:25:40 +00:00
maintainers = teams.beam.members;
};
}