From d203755d1491b9860f01d7f66a9d0feb3b739052 Mon Sep 17 00:00:00 2001 From: Payas Relekar Date: Sat, 23 Mar 2024 15:03:11 +0530 Subject: [PATCH] glas: init at 0.2.2 --- pkgs/by-name/gl/glas/package.nix | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/gl/glas/package.nix diff --git a/pkgs/by-name/gl/glas/package.nix b/pkgs/by-name/gl/glas/package.nix new file mode 100644 index 000000000000..40a0d7f556c8 --- /dev/null +++ b/pkgs/by-name/gl/glas/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "glas"; + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "maurobalbi"; + repo = "glas"; + rev = "v${version}"; + sha256 = "sha256-y1sPDCHIfECEhKP6EQs3kDrX/yM+ni0irfPe1c50jJU="; + }; + + cargoHash = "sha256-h27NqsVOW+LM83xtSAV7cvlRbznGE87aJb2/WeSmfOY="; + + doInstallCheck = true; + postInstallCheck = '' + $out/bin/glas --help > /dev/null + ''; + + meta = { + description = "A language server for the Gleam programming language."; + homepage = "https://github.com/maurobalbi/glas"; + changelog = "https://github.com/maurobalbi/glas/tag/v${version}"; + license = with lib.licenses; [ + asl20 + mit + ]; + mainProgram = "glas"; + maintainers = with lib.maintainers; [ payas ]; + }; +}