nixpkgs/pkgs/development/tools/fsautocomplete/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-23 21:22:02 +00:00
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages }:
2023-06-20 15:19:30 +00:00
let
2023-11-23 21:22:02 +00:00
inherit (dotnetCorePackages) sdk_7_0;
2023-06-20 15:19:30 +00:00
in
buildDotnetModule rec {
pname = "fsautocomplete";
2023-11-17 20:59:57 +00:00
version = "0.68.0";
2023-06-20 15:19:30 +00:00
src = fetchFromGitHub {
owner = "fsharp";
repo = "FsAutoComplete";
rev = "v${version}";
2023-11-17 20:59:57 +00:00
sha256 = "sha256-wAPTJXD2CxZQA2EG4rQCM9v3dIu6hn3q23K7Vv9wkAk=";
2023-06-20 15:19:30 +00:00
};
nugetDeps = ./deps.nix;
postPatch = ''
rm global.json
substituteInPlace src/FsAutoComplete/FsAutoComplete.fsproj \
--replace TargetFrameworks TargetFramework \
'';
2023-11-23 21:22:02 +00:00
dotnet-sdk = sdk_7_0;
dotnet-runtime = sdk_7_0;
2023-06-20 15:19:30 +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.";
homepage = "https://github.com/fsharp/FsAutoComplete";
changelog = "https://github.com/fsharp/FsAutoComplete/releases/tag/v${version}";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ gbtb mdarocha ];
};
}