2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages }:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "fsautocomplete";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.73.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fsharp";
|
|
|
|
repo = "FsAutoComplete";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-esvnbmifLFwzNUHTTwl6yEYPwFgWgKfaZGMQDJ+puus=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm global.json
|
|
|
|
|
|
|
|
substituteInPlace src/FsAutoComplete/FsAutoComplete.fsproj \
|
|
|
|
--replace TargetFrameworks TargetFramework \
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_6_0 sdk_7_0 sdk_8_0_2xx ];
|
|
|
|
dotnet-runtime = dotnetCorePackages.sdk_8_0_2xx;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
projectFile = "src/FsAutoComplete/FsAutoComplete.fsproj";
|
|
|
|
executables = [ "fsautocomplete" ];
|
|
|
|
|
|
|
|
useDotnetFromEnv = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The FsAutoComplete project (FSAC) provides a backend service for rich editing or intellisense features for editors.";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "fsautocomplete";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/fsharp/FsAutoComplete";
|
|
|
|
changelog = "https://github.com/fsharp/FsAutoComplete/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
2024-02-29 20:09:43 +00:00
|
|
|
platforms = platforms.unix;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ gbtb mdarocha ];
|
|
|
|
};
|
|
|
|
}
|