depot/third_party/nixpkgs/pkgs/development/tools/fsautocomplete/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
1.2 KiB
Nix

{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages }:
buildDotnetModule rec {
pname = "fsautocomplete";
version = "0.73.2";
src = fetchFromGitHub {
owner = "fsharp";
repo = "FsAutoComplete";
rev = "v${version}";
hash = "sha256-iiV/Tw3gOteARrOEbLjPA/jGawoxJVBZg6GvF9p9HHA=";
};
nugetDeps = ./deps.nix;
postPatch = ''
rm global.json
substituteInPlace src/FsAutoComplete/FsAutoComplete.fsproj \
--replace TargetFrameworks TargetFramework \
'';
dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_7_0 sdk_8_0_2xx ];
dotnet-runtime = dotnetCorePackages.sdk_8_0_2xx;
projectFile = "src/FsAutoComplete/FsAutoComplete.fsproj";
executables = [ "fsautocomplete" ];
useDotnetFromEnv = true;
meta = with lib; {
description = "FsAutoComplete project (FSAC) provides a backend service for rich editing or intellisense features for editors";
mainProgram = "fsautocomplete";
homepage = "https://github.com/fsharp/FsAutoComplete";
changelog = "https://github.com/fsharp/FsAutoComplete/releases/tag/v${version}";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ gbtb mdarocha ];
};
}