nixpkgs/pkgs/development/tools/language-servers/fortls/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
731 B
Nix

{ 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 ];
doCheck = true;
checkPhase = "$out/bin/fortls --help 1>/dev/null";
meta = with lib; {
description = "Fortran Language Server ";
mainProgram = "fortls";
homepage = "https://github.com/fortran-lang/fortls";
license = [ licenses.mit ];
maintainers = [ maintainers.sheepforce ];
};
}