nixpkgs/pkgs/development/compilers/gleam/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
752 B
Nix
Raw Normal View History

2023-02-28 14:31:09 +00:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, git, pkg-config, openssl, Security, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "gleam";
version = "0.29.0";
src = fetchFromGitHub {
owner = "gleam-lang";
repo = pname;
2023-02-28 14:31:09 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-qGFF6Q1cY2hDb2TycB39RY7RAIJica0y6ju76NeIplY=";
};
2023-02-28 14:31:09 +00:00
nativeBuildInputs = [ git pkg-config ];
buildInputs = [ openssl ] ++
lib.optionals stdenv.isDarwin [ Security libiconv ];
cargoHash = "sha256-/WIM7DhnfPlo/DGoTSEHON+et55h364V++VHU8Olvuc=";
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;
};
}