blob: 9aed276a63fa5081e05ec304bbedc926932538c3 (
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
|
{ buildPythonApplication
, lib
, fetchFromGitHub
, setuptools-scm
, json5
, packaging
}:
buildPythonApplication rec {
pname = "fortls";
version = "2.13.0";
src = fetchFromGitHub {
owner = "fortran-lang";
repo = pname;
rev = "v${version}";
hash = "sha256-kFk2Dlnb0FXM3Ysvsy+g2AAMgpWmwzxuyJPovDm/FJU=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ json5 packaging ];
preBuild = "export SETUPTOOLS_SCM_PRETEND_VERSION=${version}";
doCheck = true;
checkPhase = "$out/bin/fortls --help 1>/dev/null";
meta = with lib; {
description = "Fortran Language Server ";
homepage = "https://github.com/fortran-lang/fortls";
license = [ licenses.mit ];
maintainers = [ maintainers.sheepforce ];
};
}
|