diff --git a/pkgs/by-name/fi/findent/package.nix b/pkgs/by-name/fi/findent/package.nix new file mode 100644 index 000000000000..8ff3fe7ddf22 --- /dev/null +++ b/pkgs/by-name/fi/findent/package.nix @@ -0,0 +1,30 @@ +{ + stdenv, + lib, + fetchurl, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "findent"; + version = "4.3.6"; + + src = fetchurl { + url = "mirror://sourceforge/findent/findent-${finalAttrs.version}.tar.gz"; + hash = "sha256-ctg02P8P3R27lCpv3tILSZ5ikn2Va25jHOWIuRfIONQ="; + }; + + enableParallelBuilding = true; + + doCheck = true; + + checkTargets = [ "installcheck" ]; + + meta = { + description = "Fortran source code formatter"; + homepage = "https://sourceforge.net/findent/"; + license = lib.licenses.bsd3; + mainProgram = "findent"; + maintainers = with lib.maintainers; [ sheepforce ]; + platforms = [ "x86_64-linux" ]; + }; +}) diff --git a/pkgs/by-name/fo/ford/package.nix b/pkgs/by-name/fo/ford/package.nix new file mode 100644 index 000000000000..c2f5f3ebfd4c --- /dev/null +++ b/pkgs/by-name/fo/ford/package.nix @@ -0,0 +1,64 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + gfortran, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "ford"; + version = "7.0.13"; + + src = fetchFromGitHub { + owner = "Fortran-FOSS-Programmers"; + repo = "ford"; + tag = "v${finalAttrs.version}"; + hash = "sha256-+pz4YvMmr7QIqrORJg0F2W7m20FTrItHCC+AmcDp284="; + }; + + pyproject = true; + + nativeBuildInputs = [ python3Packages.pythonRelaxDepsHook ]; + + pythonRelaxDeps = [ + "markdown" + "markdown-include" + "toposort" + "graphviz" + ]; + + build-system = with python3Packages; [ + setuptools + setuptools-scm + ]; + + dependencies = with python3Packages; [ + markdown + markdown-include + toposort + jinja2 + pygments + beautifulsoup4 + graphviz + tqdm + tomli + rich + pcpp + python-markdown-math + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + tomli-w + pcpp + gfortran + ]; + + meta = { + description = "Fortran documentation system"; + mainProgram = "ford"; + homepage = "https://github.com/Fortran-FOSS-Programmers/ford"; + license = [ lib.licenses.gpl3Only ]; + maintainers = [ lib.maintainers.sheepforce ]; + }; +})