depot/third_party/nixpkgs/pkgs/by-name/ta/tailwindcss-language-server/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
, python3
, darwin
, libsecret
, pkg-config
}:
let
version = "0.0.21";
in
buildNpmPackage {
pname = "tailwindcss-language-server";
inherit version;
src = fetchFromGitHub {
owner = "tailwindlabs";
repo = "tailwindcss-intellisense";
rev = "@tailwindcss/language-server@v${version}";
hash = "sha256-LMQ+HA74Y0n65JMO9LqCHbDVRiu4dIUvQofFTA03pWU=";
};
makeCacheWritable = true;
npmDepsHash = "sha256-T7YNHunncSv+z86Td1QuBt4dMGF1ipo85ZhW7U9I0Zw=";
npmWorkspace = "packages/tailwindcss-language-server";
buildInputs = [ libsecret ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security AppKit ]);
nativeBuildInputs = [ python3 pkg-config ];
meta = with lib; {
description = "Intelligent Tailwind CSS tooling for Visual Studio Code";
homepage = "https://github.com/tailwindlabs/tailwindcss-intellisense";
license = licenses.mit;
maintainers = with maintainers; [ happysalada];
mainProgram = "tailwindcss-language-server";
platforms = platforms.all;
};
}