evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ma / matlab-language-server / package.nix
blob732d8ef9acd0f22e0d5e0b4222baaeb0fe473b5d
1 { lib
2 , buildNpmPackage
3 , fetchFromGitHub
4 , fetchpatch
5 }:
7 buildNpmPackage {
8   pname = "matlab-language-server";
9   version = "1.1.6";
11   src = fetchFromGitHub {
12     owner = "mathworks";
13     repo = "matlab-language-server";
14     # Upstream doesn't tag commits unfortunatly, but lists versions and dates
15     # in README... See complaint at:
16     # https://github.com/mathworks/MATLAB-language-server/issues/24
17     rev = "c8c901956e3bbfbd6eab440a1b60c3fe016cf567";
18     hash = "sha256-D03gXyrvPYOMkJI2YuHfPAnWdXTz5baemykQ5j9L0rs=";
19   };
20   patches = [
21     # https://github.com/mathworks/MATLAB-language-server/pull/23
22     (fetchpatch {
23       url = "https://github.com/mathworks/MATLAB-language-server/commit/56374de620b4855529c4136539f52ab6030e2c92.patch";
24       hash = "sha256-F38ATP+eap0SnxQoib1JwIvNCFfB7g8EtXI9+iK5+HA=";
25     })
26   ];
28   npmDepsHash = "sha256-P3MSrwk6FVt4lK58pjwy0YOg2UZI0TG8uXjqCPudgTE=";
30   npmBuildScript = "package";
32   meta = {
33     description = "Language Server for MATLABĀ® code";
34     homepage = "https://github.com/mathworks/MATLAB-language-server";
35     license = lib.licenses.mit;
36     maintainers = with lib.maintainers; [ doronbehar ];
37     mainProgram = "matlab-language-server";
38   };