nixpkgs/pkgs/by-name/in/intelephense/package.nix

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

37 lines
825 B
Nix
Raw Normal View History

2024-09-01 10:12:47 +02:00
{
lib,
buildNpmPackage,
fetchurl,
nix-update-script,
}:
let
2024-09-16 07:56:36 +02:00
version = "1.12.6";
2024-09-01 10:12:47 +02:00
in
buildNpmPackage {
pname = "intelephense";
inherit version;
src = fetchurl {
url = "https://registry.npmjs.org/intelephense/-/intelephense-${version}.tgz";
2024-09-16 07:56:36 +02:00
hash = "sha256-p2x5Ayipoxk77x0v+zRhg86dbRHuBBk1Iegk/FaZrU4=";
2024-09-01 10:12:47 +02:00
};
postPatch = ''
cp ${./package-lock.json} package-lock.json
'';
2024-09-16 07:56:36 +02:00
npmDepsHash = "sha256-C60qxPuaiJZ8uQDfDwY+KJUHhXMioPrHnDNJ0bH7N9o=";
2024-09-01 10:12:47 +02:00
dontNpmBuild = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Professional PHP tooling for any Language Server Protocol capable editor";
homepage = "https://intelephense.com/";
license = lib.licenses.unfree;
mainProgram = "intelephense";
maintainers = with lib.maintainers; [ patka ];
};
}