Skip to content

Commit

Permalink
suil: build documentation using sphinxygen and sphinx-lv2-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Oct 25, 2024
2 parents 06d7dd0 + 5b97645 commit 8ad1fe0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkgs/development/libraries/audio/suil/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
pkg-config,
meson,
ninja,
sphinxygen,
doxygen,
sphinx,
python3Packages,

# runtime
lv2,
Expand Down Expand Up @@ -40,11 +44,13 @@ stdenv.mkDerivation rec {
meson
ninja
pkg-config
sphinxygen
doxygen
sphinx
python3Packages.sphinx-lv2-theme
];

mesonFlags = [
# docs require sphinxygen
(mesonEnable "docs" false)
(mesonEnable "gtk2" withGtk2)
(mesonEnable "gtk3" withGtk3)
(mesonEnable "qt5" withQt5)
Expand Down
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/sphinx-lv2-theme/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
python3Packages,
fetchPypi,
sphinx,
}:

python3Packages.buildPythonPackage rec {
pname = "sphinx-lv2-theme";
version = "1.4.2";
format = "setuptools";

src = fetchPypi {
pname = "sphinx_lv2_theme";
inherit version;
hash = "sha256-Sgma4gxCcXnAzwgfAdU2alVHeEgNicLXegM0Z+BufDg=";
};

propagatedBuildInputs = [
sphinx
];

pythonImportsCheck = [ "sphinx_lv2_theme" ];

meta = with lib; {
description = "Sphinx theme in the style of the LV2 plugin";
homepage = "https://gitlab.com/lv2/sphinx_lv2_theme";
license = licenses.bsd0;
maintainers = with maintainers; [ samueltardieu ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14773,6 +14773,8 @@ self: super: with self; {

sphinx-jupyterbook-latex = callPackage ../development/python-modules/sphinx-jupyterbook-latex { };

sphinx-lv2-theme = callPackage ../development/python-modules/sphinx-lv2-theme { };

sphinx-multitoc-numbering = callPackage ../development/python-modules/sphinx-multitoc-numbering { };

sphinx-notfound-page = callPackage ../development/python-modules/sphinx-notfound-page { };
Expand Down

0 comments on commit 8ad1fe0

Please sign in to comment.