Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
42 lines
1,023 B
Nix
42 lines
1,023 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, git
|
|
, pkg-config
|
|
, openssl
|
|
, erlang
|
|
, Security
|
|
, nix-update-script
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gleam";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gleam-lang";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4/NDZGq62M0tdWerIkmoYS0WHC06AV8c9vlo/6FhsAo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ git pkg-config ];
|
|
|
|
buildInputs = [ openssl erlang ] ++
|
|
lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
|
|
|
|
cargoHash = "sha256-B8tCVkubP04gAHKQC0idR5AjpVHG/kCXvPCfwKCuaSo=";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Statically typed language for the Erlang VM";
|
|
mainProgram = "gleam";
|
|
homepage = "https://gleam.run/";
|
|
changelog = "https://github.com/gleam-lang/gleam/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = teams.beam.members ++ [ lib.maintainers.philtaken ];
|
|
};
|
|
}
|