about summary refs log tree commit diff
path: root/pkgs/by-name/gl
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-03-27 20:44:09 +0100
committerGitHub <noreply@github.com>2024-03-27 20:44:09 +0100
commit074042d0ab8d871c02c75112829aeaa9dcda3702 (patch)
tree5d50147276a0a320bc28967db77cfc748b4f53ab /pkgs/by-name/gl
parent83ab9c4e3774d9dd7d0246667a994279c0b4f15e (diff)
parentd203755d1491b9860f01d7f66a9d0feb3b739052 (diff)
Merge pull request #298321 from bhankas/glas
glas: init at 0.2.2
Diffstat (limited to 'pkgs/by-name/gl')
-rw-r--r--pkgs/by-name/gl/glas/package.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/gl/glas/package.nix b/pkgs/by-name/gl/glas/package.nix
new file mode 100644
index 0000000000000..40a0d7f556c83
--- /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 ];
+  };
+}