nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 1.2 kB view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 fetchpatch, 6}: 7 8buildNpmPackage { 9 pname = "matlab-language-server"; 10 version = "1.1.6"; 11 12 src = fetchFromGitHub { 13 owner = "mathworks"; 14 repo = "matlab-language-server"; 15 # Upstream doesn't tag commits unfortunately, but lists versions and dates 16 # in README... See complaint at: 17 # https://github.com/mathworks/MATLAB-language-server/issues/24 18 rev = "c8c901956e3bbfbd6eab440a1b60c3fe016cf567"; 19 hash = "sha256-D03gXyrvPYOMkJI2YuHfPAnWdXTz5baemykQ5j9L0rs="; 20 }; 21 patches = [ 22 # https://github.com/mathworks/MATLAB-language-server/pull/23 23 (fetchpatch { 24 url = "https://github.com/mathworks/MATLAB-language-server/commit/56374de620b4855529c4136539f52ab6030e2c92.patch"; 25 hash = "sha256-F38ATP+eap0SnxQoib1JwIvNCFfB7g8EtXI9+iK5+HA="; 26 }) 27 ]; 28 29 npmDepsHash = "sha256-P3MSrwk6FVt4lK58pjwy0YOg2UZI0TG8uXjqCPudgTE="; 30 31 npmBuildScript = "package"; 32 33 meta = { 34 description = "Language Server for MATLAB® code"; 35 homepage = "https://github.com/mathworks/MATLAB-language-server"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ doronbehar ]; 38 mainProgram = "matlab-language-server"; 39 }; 40}