color-lsp: init at 0.2.2 (#481689)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user