color-lsp: init at 0.2.2 (#481689)

This commit is contained in:
Matthias Beyer
2026-02-10 16:19:39 +00:00
committed by GitHub
2 changed files with 46 additions and 0 deletions
+6
View File
@@ -27091,6 +27091,12 @@
githubId = 27378358;
name = "tony";
};
tonybutt = {
email = "anthony@abutt.io";
github = "tonybutt";
githubId = 38566841;
name = "Anthony Butt";
};
toonn = {
email = "nixpkgs@toonn.io";
matrix = "@toonn:matrix.org";
+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";
};
}