From 6e191af8081eac2083a84a6b6b2a7d52939c696a Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Tue, 24 Sep 2024 21:49:30 +0300 Subject: [PATCH] earthlyls: init at 0.5.3 --- pkgs/by-name/ea/earthlyls/package.nix | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/ea/earthlyls/package.nix diff --git a/pkgs/by-name/ea/earthlyls/package.nix b/pkgs/by-name/ea/earthlyls/package.nix new file mode 100644 index 000000000000..07bb178a341e --- /dev/null +++ b/pkgs/by-name/ea/earthlyls/package.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + + earthlyls, + nix-update-script, + testers, +}: + +rustPlatform.buildRustPackage rec { + pname = "earthlyls"; + version = "0.5.3"; + + src = fetchFromGitHub { + owner = "glehmann"; + repo = "earthlyls"; + rev = version; + hash = "sha256-wn+6Aa4xTC5o4S+N7snB/vlyw0i23XkmaXUmrhfXuaA="; + }; + + cargoHash = "sha256-eKBNZiFvIBuNPqDzMOa6J0UR4CIgi9OUowRaFSgi7Fg="; + + passthru = { + updateScript = nix-update-script { }; + tests.version = testers.testVersion { package = earthlyls; }; + }; + + meta = { + description = "Earthly language server"; + homepage = "https://github.com/glehmann/earthlyls"; + changelog = "https://github.com/glehmann/earthlyls/releases/tag/${version}"; + license = lib.licenses.mit; + mainProgram = "earthlyls"; + maintainers = with lib.maintainers; [ paveloom ]; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + }; +}