blob: b6ff7cc91c2368f4e0e678ed5a2be1bf678b1266 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib, buildDotnetModule, fetchFromGitHub, dotnetCorePackages, stdenv }:
let
inherit (dotnetCorePackages) combinePackages sdk_6_0 sdk_7_0;
in
buildDotnetModule rec {
pname = "fsautocomplete";
version = "0.68.0";
src = fetchFromGitHub {
owner = "fsharp";
repo = "FsAutoComplete";
rev = "v${version}";
sha256 = "sha256-wAPTJXD2CxZQA2EG4rQCM9v3dIu6hn3q23K7Vv9wkAk=";
};
nugetDeps = ./deps.nix;
postPatch = ''
rm global.json
substituteInPlace src/FsAutoComplete/FsAutoComplete.fsproj \
--replace TargetFrameworks TargetFramework \
'';
dotnet-sdk = combinePackages [
sdk_7_0
sdk_6_0
];
dotnet-runtime = sdk_6_0;
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 ];
};
}
|