mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
ff1a94e523
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.
35 lines
731 B
Nix
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 ];
|
|
};
|
|
}
|