nixpkgs/pkgs/by-name/em/emmet-language-server/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
815 B
Nix
Raw Normal View History

2024-11-15 14:31:17 +00:00
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "emmet-language-server";
2024-11-15 14:31:17 +00:00
version = "2.6.0";
src = fetchFromGitHub {
owner = "olrtg";
repo = "emmet-language-server";
rev = "v${version}";
2024-11-15 14:31:17 +00:00
hash = "sha256-R20twrmfLz9FP87qkjgz1R/n+Nhzwn22l9t/2fyuVeM=";
};
2024-11-15 14:31:17 +00:00
npmDepsHash = "sha256-yv+5/wBif75AaAsbJrwLNtlui9SHws2mu3jYOR1Z55M=";
# Upstream doesn't have a lockfile
postPatch = ''
cp ${./package-lock.json} ./package-lock.json
'';
2024-11-15 14:31:17 +00:00
meta = {
description = "Language server for emmet.io";
homepage = "https://github.com/olrtg/emmet-language-server";
changelog = "https://github.com/olrtg/emmet-language-server/releases/tag/v${version}";
2024-11-15 14:31:17 +00:00
license = lib.licenses.mit;
2024-11-30 01:17:55 +00:00
maintainers = [ ];
mainProgram = "emmet-language-server";
};
}