libinput: fix docs build
This commit is contained in:
parent
1e144d4d08
commit
818de15e48
|
@ -11,6 +11,7 @@
|
||||||
, documentationSupport ? false
|
, documentationSupport ? false
|
||||||
, doxygen
|
, doxygen
|
||||||
, graphviz
|
, graphviz
|
||||||
|
, runCommand
|
||||||
, eventGUISupport ? false
|
, eventGUISupport ? false
|
||||||
, cairo
|
, cairo
|
||||||
, glib
|
, glib
|
||||||
|
@ -26,19 +27,19 @@ let
|
||||||
mkFlag = optSet: flag: "-D${flag}=${lib.boolToString optSet}";
|
mkFlag = optSet: flag: "-D${flag}=${lib.boolToString optSet}";
|
||||||
|
|
||||||
sphinx-build =
|
sphinx-build =
|
||||||
python3.pkgs.sphinx.overrideAttrs (attrs: {
|
let
|
||||||
propagatedBuildInputs =
|
env = python3.withPackages (pp: with pp; [
|
||||||
attrs.propagatedBuildInputs
|
sphinx
|
||||||
++ (with python3.pkgs; [
|
recommonmark
|
||||||
recommonmark
|
sphinx_rtd_theme
|
||||||
sphinx_rtd_theme
|
]);
|
||||||
]);
|
in
|
||||||
|
# Expose only the sphinx-build binary to avoid contaminating
|
||||||
postFixup = attrs.postFixup or "" + ''
|
# everything with Sphinx’s Python environment.
|
||||||
# Do not propagate Python
|
runCommand "sphinx-build" { } ''
|
||||||
rm $out/nix-support/propagated-build-inputs
|
mkdir -p "$out/bin"
|
||||||
'';
|
ln -s "${env}/bin/sphinx-build" "$out/bin"
|
||||||
});
|
'';
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
Loading…
Reference in a new issue