Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 47 lines 1.5 kB view raw
1{ lib, buildDotnetModule, fetchFromGitHub, fetchpatch, dotnetCorePackages }: 2 3buildDotnetModule rec { 4 pname = "fsautocomplete"; 5 version = "0.73.2"; 6 7 src = fetchFromGitHub { 8 owner = "fsharp"; 9 repo = "FsAutoComplete"; 10 rev = "v${version}"; 11 hash = "sha256-iiV/Tw3gOteARrOEbLjPA/jGawoxJVBZg6GvF9p9HHA="; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 url = "https://github.com/ionide/FsAutoComplete/pull/1311/commits/e258ba3db47daec9d5befcdc1ae79484c2804cf4.patch"; 17 hash = "sha256-bKTk5gszyVZObvq78emAtqE6bBg+1doseoxjUnrjOH4="; 18 }) 19 ]; 20 21 nugetDeps = ./deps.nix; 22 23 postPatch = '' 24 rm global.json 25 26 substituteInPlace src/FsAutoComplete/FsAutoComplete.fsproj \ 27 --replace TargetFrameworks TargetFramework \ 28 ''; 29 30 dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_7_0 sdk_8_0 ]; 31 dotnet-runtime = dotnetCorePackages.sdk_8_0; 32 33 projectFile = "src/FsAutoComplete/FsAutoComplete.fsproj"; 34 executables = [ "fsautocomplete" ]; 35 36 useDotnetFromEnv = true; 37 38 meta = with lib; { 39 description = "FsAutoComplete project (FSAC) provides a backend service for rich editing or intellisense features for editors"; 40 mainProgram = "fsautocomplete"; 41 homepage = "https://github.com/fsharp/FsAutoComplete"; 42 changelog = "https://github.com/fsharp/FsAutoComplete/releases/tag/v${version}"; 43 license = licenses.asl20; 44 platforms = platforms.unix; 45 maintainers = with maintainers; [ gbtb mdarocha ]; 46 }; 47}