Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { lib |
| 2 | , fetchFromGitHub |
| 3 | , buildDotnetPackage |
| 4 | , pkg-config |
| 5 | , dotnet-sdk |
| 6 | , dotnetPackages |
| 7 | , msbuild |
| 8 | , |
| 9 | }: |
| 10 | let |
Skyler Grey | ab59d17 | 2022-10-30 23:23:31 +0000 | [diff] [blame] | 11 | rev = "4fdada72e9a08a810da8e332258ae0dcc7e89cc7"; |
| 12 | in |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 13 | buildDotnetPackage rec { |
| 14 | pname = "csharp-ls"; |
| 15 | version = "1.0.0"; |
| 16 | src = fetchFromGitHub { |
| 17 | owner = "razzmatazz"; |
| 18 | repo = "csharp-language-server"; |
| 19 | inherit rev; |
| 20 | sha256 = "sha256-+fc1mlNG9rxqQXaQXsGY228hz7zu2zaj3NlfDlNdn8U="; |
| 21 | }; |
| 22 | projectFile = "src/csharp-language-server.sln"; |
| 23 | buildInputs = [ |
| 24 | msbuild |
| 25 | dotnet-sdk |
| 26 | dotnetPackages.NUnit |
| 27 | dotnetPackages.NUnitRunners |
| 28 | ]; |
| 29 | nativeBuildInputs = [ |
| 30 | pkg-config |
| 31 | ]; |
| 32 | nugetDeps = ./csharp-ls/deps.nix; |
| 33 | buildPhase = '' |
| 34 | runHook preBuild |
Skyler Grey | ab59d17 | 2022-10-30 23:23:31 +0000 | [diff] [blame] | 35 | |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 36 | msbuild ${projectFile} /p:Configuration=Release |
| 37 | runHook postBuild |
| 38 | ''; |
| 39 | meta = with lib; { |
| 40 | homepage = "https://github.com/razzmatazz/csharp-language-server"; |
| 41 | description = "A csharp language server"; |
| 42 | license = licenses.mit; |
| 43 | maintainer = [ maintainers.minion3665 ]; |
| 44 | }; |
| 45 | } |