color-lsp: init at 0.2.2

Signed-off-by: Anthony Butt <anthony@abutt.io>
This commit is contained in:
Anthony Butt
2026-02-10 09:23:18 -05:00
parent 8a13d0d1f2
commit 21f5ffe36c
+40
View File
@@ -0,0 +1,40 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "color-lsp";
version = "0.2.2";
src = fetchFromGitHub {
owner = "huacnlee";
repo = "color-lsp";
rev = "v${version}";
hash = "sha256-U0pTzW2PCgMxVsa1QX9MC249PXXL2KvRSN1Em2WvIeI=";
};
cargoHash = "sha256-etK+9fcKS+y+0C36vJrMkQ0yyVSpCW/DLKg4nTw3LrE=";
# Only build the color-lsp binary, not the zed extension
cargoBuildFlags = [
"-p"
"color-lsp"
];
cargoTestFlags = [
"-p"
"color-lsp"
];
meta = {
description = "A document color language server supporting HEX, RGB, HSL, and named colors";
homepage = "https://github.com/huacnlee/color-lsp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
tonybutt
matthiasbeyer
];
mainProgram = "color-lsp";
};
}