Installing herbstluftwm from git

Im trying to modify herbstluftwm pkg to build from git instead of tarball. From looking at Herbstluftwm install guide it says the only difference from installing using source is asciidoc dep. Since its already in nixpkgs the only change I did is adding overlay to fetchFromGithub:

  nixpkgs.overlays = [ (self: super: {
    herbstluftwm = super.herbstluftwm.overrideAttrs (old: {
      version = "dev";
      src = super.fetchFromGitHub {
        owner = "herbstluftwm";
        repo = "herbstluftwm";
        rev = "5517222fda4d10a7681e4eb59d9ba5a21cea8243";
        sha256 = "sha256:WjElX3ij3aZGslmHQXK1hvrMDYxpwAcy85jczPP58R4=";
      };
    });
  }) ];


I disabled fish shell since it was giving me more errors

Full log
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/mljjc6rijahw6khan6a4mx2adkjb258w-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/68i5j28fzg9gfsjvwn14nmbyind0hz2c-test-path-environment.patch
patching file tests/conftest.py
Hunk #1 succeeded at 48 (offset 5 lines).
patching script interpreter paths in doc/gendoc.py
doc/gendoc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
substituteStream(): WARNING: pattern '/usr/bin/env bash' doesn't match anything in file 'tests/test_herbstluftwm.py'
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_LOCALEDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/80n8b99lghqbijw3dcp12q1ggplskyq1-herbstluftwm-dev-doc/share/doc/Herbstluftwm -DCMAKE_INSTALL_INFODIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/zmmf58lrgyxh89qjgydnpa8bl5aqpj17-herbstluftwm-dev-man/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/strip -DCMAKE_RANLIB=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/ranlib -DCMAKE_AR=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev -DCMAKE_INSTALL_SYSCONF_PREFIX=/nix/store/67c594krb82iq4zsidri8wha9vh7bmpq-herbstluftwm-dev/etc 
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/0sqbi0agffx7fvzgr4zvr3zk1l6kdnr4-gcc-wrapper-10.3.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/0sqbi0agffx7fvzgr4zvr3zk1l6kdnr4-gcc-wrapper-10.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: pkg-config (found version "0.29.2") 
-- Checking for module 'x11'
--   Found x11, version 1.7.2
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xrandr'
--   Found xrandr, version 1.5.2
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xinerama'
--   Found xinerama, version 1.1.4
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xext'
--   Found xext, version 1.3.4
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xrender'
--   Found xrender, version 0.9.10
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xft'
--   Found xft, version 2.3.4
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'freetype2'
--   Found freetype2, version 24.0.18
-- Configuring done
-- Generating done
e[33mCMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025

e[0m
-- Build files have been written to: /build/source/build
cmake: enabled parallel building
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j4 -l4 SHELL=/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash
[  1%] e[32mBuilding C object ipc-client/CMakeFiles/herbstclient.dir/main.c.oe[0m
[  2%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/main.cpp.oe[0m
[  3%] e[34me[1mGenerating hlwm-doc.jsone[0m
[  3%] Built target copy_autostart
[  5%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/arglist.cpp.oe[0m
[  6%] e[32mBuilding C object ipc-client/CMakeFiles/herbstclient.dir/client-utils.c.oe[0m
[  7%] e[32mBuilding C object ipc-client/CMakeFiles/herbstclient.dir/ipc-client.c.oe[0m
[  8%] e[32me[1mLinking C executable ../herbstcliente[0m
[  8%] Built target herbstclient
[ 10%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/argparse.cpp.oe[0m
[ 10%] Built target doc_json
[ 11%] e[34me[1mGenerating hlwm-objects-gen.txte[0m
/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash: ../../doc/format-doc.py: /usr/bin/env: bad interpreter: No such file or directory
make[2]: *** [doc/CMakeFiles/gen_object_asciidoc.dir/build.make:74: doc/hlwm-objects-gen.txt] Error 126
make[2]: *** Deleting file 'doc/hlwm-objects-gen.txt'
make[1]: *** [CMakeFiles/Makefile2:430: doc/CMakeFiles/gen_object_asciidoc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/attribute.cpp.oe[0m
[ 13%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/autostart.cpp.oe[0m
[ 15%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/byname.cpp.oe[0m
[ 16%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/client.cpp.oe[0m
[ 17%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/clientmanager.cpp.oe[0m
[ 18%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/command.cpp.oe[0m
[ 20%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/commandio.cpp.oe[0m
[ 21%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/completion.cpp.oe[0m
[ 22%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/decoration.cpp.oe[0m
[ 24%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/desktopwindow.cpp.oe[0m
[ 25%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/entity.cpp.oe[0m
[ 26%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/ewmh.cpp.oe[0m
[ 27%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/fixprecdec.cpp.oe[0m
[ 29%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/floating.cpp.oe[0m
[ 30%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/font.cpp.oe[0m
[ 31%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/fontdata.cpp.oe[0m
[ 32%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/framedata.cpp.oe[0m
[ 34%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/framedecoration.cpp.oe[0m
[ 35%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/frameparser.cpp.oe[0m
[ 36%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/frametree.cpp.oe[0m
[ 37%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/globalcommands.cpp.oe[0m
[ 39%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/hlwmcommon.cpp.oe[0m
[ 40%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/hook.cpp.oe[0m
[ 41%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/ipc-server.cpp.oe[0m
[ 43%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/keycombo.cpp.oe[0m
[ 44%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/keymanager.cpp.oe[0m
[ 45%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/layout.cpp.oe[0m
[ 46%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/metacommands.cpp.oe[0m
[ 48%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/monitor.cpp.oe[0m
[ 49%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/monitordetection.cpp.oe[0m
[ 50%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/monitormanager.cpp.oe[0m
[ 51%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/mouse.cpp.oe[0m
[ 53%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/mousemanager.cpp.oe[0m
[ 54%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/mousedraghandler.cpp.oe[0m
[ 55%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/namedhook.cpp.oe[0m
[ 56%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/object.cpp.oe[0m
[ 58%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/panelmanager.cpp.oe[0m
[ 59%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/rectangle.cpp.oe[0m
[ 60%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/regexstr.cpp.oe[0m
[ 62%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/root.cpp.oe[0m
[ 63%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/rulemanager.cpp.oe[0m
[ 64%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/rules.cpp.oe[0m
[ 65%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/settings.cpp.oe[0m
[ 67%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/stack.cpp.oe[0m
[ 68%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/tag.cpp.oe[0m
[ 69%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/tagmanager.cpp.oe[0m
[ 70%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/theme.cpp.oe[0m
[ 72%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/tilingresult.cpp.oe[0m
[ 73%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/tmp.cpp.oe[0m
[ 74%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/converter.cpp.oe[0m
[ 75%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/typesdoc.cpp.oe[0m
[ 77%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/utils.cpp.oe[0m
[ 78%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/watchers.cpp.oe[0m
[ 79%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/x11-types.cpp.oe[0m
[ 81%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/x11-utils.cpp.oe[0m
[ 82%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.oe[0m
[ 83%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/xkeygrabber.cpp.oe[0m
[ 84%] e[32mBuilding CXX object src/CMakeFiles/herbstluftwm.dir/xmainloop.cpp.oe[0m
[ 86%] e[32me[1mLinking CXX executable ../herbstluftwme[0m
[ 86%] Built target herbstluftwm
make: *** [Makefile:136: all] Error 2

The only issue I spot is “Package ‘xdmcp’, required by ‘xcb’, not found” tried installing libXdmcp but no change. Am I doing this completely wrong way?

The error is here:

/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash: ../../doc/format-doc.py: /usr/bin/env: bad interpreter: No such file or directory

I think you’re missing python?

Nope. It’s not complaining about python being not found, but /usr/bin/env, which I’m not sure if it should be available in the build sandbox or not.

But running patchShebangs during pre- or postPatch should fix the issue.

1 Like

Yes, I have python 3.10 also tried other versions.

I patched patchShebangs format-doc.py and later patched everything but still fail

/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash: line 1: XSLTPROC-NOTFOUND: command not found
make[2]: *** [doc/CMakeFiles/doc_man_herbstclient.dir/build.make:74: doc/herbstclient.1] Error 127
make[1]: *** [CMakeFiles/Makefile2:274: doc/CMakeFiles/doc_man_herbstclient.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Full log
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/mljjc6rijahw6khan6a4mx2adkjb258w-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
patching script interpreter paths in AUTHORS CMakeLists.txt Doxyfile HACKING INSTALL LICENSE MIGRATION Makefile NEWS README.asciidoc VERSION ci cmake doc ipc-client python scripts share src tests tox.ini utilities valgrind-xephyr.sh www
ci/build.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
ci/mktar.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
ci/check-using-std.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
ci/clang-and-tidy.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
ci/diff-json-doc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
doc/format-doc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
doc/gendoc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
scripts/loadstate.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/toggledualhead.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/dumpbeautify.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/keychain.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/wselect.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/maximize.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/herbstcommander.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/unminimize.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/execwith.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/layout.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/windowmenu.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/dmenu.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/savestate.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/scratchpad.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/lasttag.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/exec_on_tag.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/float-maximize.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/q3terminal.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/perclient_kb_layout.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/floatmon.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/dmenu_run_hlwm: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/restartpanels.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/autostart: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/panel.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
valgrind-xephyr.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
www/compose.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
www/gentoc.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
applying patch /nix/store/68i5j28fzg9gfsjvwn14nmbyind0hz2c-test-path-environment.patch
patching file tests/conftest.py
Hunk #1 succeeded at 48 (offset 5 lines).
patching script interpreter paths in doc/gendoc.py
substituteStream(): WARNING: pattern '/usr/bin/env bash' doesn't match anything in file 'tests/test_herbstluftwm.py'
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_LOCALEDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/qgicf07080wwxjrj1hvd3qgk78zlj5ww-herbstluftwm-dev-doc/share/doc/Herbstluftwm -DCMAKE_INSTALL_INFODIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/wikrv45al6hjgrjds62528lv4nxp1mpr-herbstluftwm-dev-man/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/strip -DCMAKE_RANLIB=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/ranlib -DCMAKE_AR=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev -DCMAKE_INSTALL_SYSCONF_PREFIX=/nix/store/0vr8x19i75z66yvggzrgspsg086hh7zv-herbstluftwm-dev/etc 
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/0sqbi0agffx7fvzgr4zvr3zk1l6kdnr4-gcc-wrapper-10.3.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/0sqbi0agffx7fvzgr4zvr3zk1l6kdnr4-gcc-wrapper-10.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: pkg-config (found version "0.29.2") 
-- Checking for module 'x11'
--   Found x11, version 1.7.2
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xrandr'
--   Found xrandr, version 1.5.2
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xinerama'
--   Found xinerama, version 1.1.4
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xext'
--   Found xext, version 1.3.4
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xrender'
--   Found xrender, version 0.9.10
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'xft'
--   Found xft, version 2.3.4
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
Package xdmcp was not found in the pkg-config search path.
Perhaps you should add the directory containing `xdmcp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xdmcp', required by 'xcb', not found
-- Checking for module 'freetype2'
--   Found freetype2, version 24.0.18
-- Configuring done
-- Generating done
e[33mCMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025


-- Build files have been written to: /build/source/build
cmake: enabled parallel building
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j4 -l4 SHELL=/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash
[  2%]Building C object ipc-client/CMakeFiles/herbstclient.dir/main.c.
[  2%] Generating hlwm-doc.json
[  3%]Building CXX object src/CMakeFiles/herbstluftwm.dir/main.cpp.
[  3%] Built target copy_autostart
[  5%]Building C object ipc-client/CMakeFiles/herbstclient.dir/client-utils.c.
[  6%]Building C object ipc-client/CMakeFiles/herbstclient.dir/ipc-client.c.
[  7%]Building CXX object src/CMakeFiles/herbstluftwm.dir/arglist.cpp.
[  8%]eLinking C executable ../herbstclient
[  8%] Built target herbstclient
[ 10%]Building CXX object src/CMakeFiles/herbstluftwm.dir/argparse.cpp.
[ 10%] Built target doc_json
[ 11%] Generating hlwm-objects-gen.txt
[ 12%] Built target gen_object_asciidoc
[ 13%] Generating herbstclient.1, herbstclient.xml
[ 15%]Building CXX object src/CMakeFiles/herbstluftwm.dir/attribute.cpp.
/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash: line 1: XSLTPROC-NOTFOUND: command not found
make[2]: *** [doc/CMakeFiles/doc_man_herbstclient.dir/build.make:74: doc/herbstclient.1] Error 127
make[1]: *** [CMakeFiles/Makefile2:274: doc/CMakeFiles/doc_man_herbstclient.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 16%]Building CXX object src/CMakeFiles/herbstluftwm.dir/autostart.cpp.
[ 17%]Building CXX object src/CMakeFiles/herbstluftwm.dir/byname.cpp.
[ 18%]Building CXX object src/CMakeFiles/herbstluftwm.dir/client.cpp.
[ 20%]Building CXX object src/CMakeFiles/herbstluftwm.dir/clientmanager.cpp.
[ 21%]Building CXX object src/CMakeFiles/herbstluftwm.dir/command.cpp.
[ 22%]Building CXX object src/CMakeFiles/herbstluftwm.dir/commandio.cpp.
[ 24%]Building CXX object src/CMakeFiles/herbstluftwm.dir/completion.cpp.
[ 25%]Building CXX object src/CMakeFiles/herbstluftwm.dir/decoration.cpp.
[ 26%]Building CXX object src/CMakeFiles/herbstluftwm.dir/desktopwindow.cpp.
[ 27%]Building CXX object src/CMakeFiles/herbstluftwm.dir/entity.cpp.
[ 29%]Building CXX object src/CMakeFiles/herbstluftwm.dir/ewmh.cpp.
[ 30%]Building CXX object src/CMakeFiles/herbstluftwm.dir/fixprecdec.cpp.
[ 31%]Building CXX object src/CMakeFiles/herbstluftwm.dir/floating.cpp.
[ 32%]Building CXX object src/CMakeFiles/herbstluftwm.dir/font.cpp.
[ 34%]Building CXX object src/CMakeFiles/herbstluftwm.dir/fontdata.cpp.
[ 35%]Building CXX object src/CMakeFiles/herbstluftwm.dir/framedata.cpp.
[ 36%]Building CXX object src/CMakeFiles/herbstluftwm.dir/framedecoration.cpp.
[ 37%]Building CXX object src/CMakeFiles/herbstluftwm.dir/frameparser.cpp.
[ 39%]Building CXX object src/CMakeFiles/herbstluftwm.dir/frametree.cpp.
[ 40%]Building CXX object src/CMakeFiles/herbstluftwm.dir/globalcommands.cpp.
[ 41%]Building CXX object src/CMakeFiles/herbstluftwm.dir/hlwmcommon.cpp.
[ 43%]Building CXX object src/CMakeFiles/herbstluftwm.dir/hook.cpp.
[ 44%]Building CXX object src/CMakeFiles/herbstluftwm.dir/ipc-server.cpp.
[ 45%]Building CXX object src/CMakeFiles/herbstluftwm.dir/keycombo.cpp.
[ 46%]Building CXX object src/CMakeFiles/herbstluftwm.dir/keymanager.cpp.
[ 48%]Building CXX object src/CMakeFiles/herbstluftwm.dir/layout.cpp.
[ 49%]Building CXX object src/CMakeFiles/herbstluftwm.dir/metacommands.cpp.
[ 50%]Building CXX object src/CMakeFiles/herbstluftwm.dir/monitor.cpp.
[ 51%]Building CXX object src/CMakeFiles/herbstluftwm.dir/monitordetection.cpp.
[ 53%]Building CXX object src/CMakeFiles/herbstluftwm.dir/monitormanager.cpp.
[ 54%]Building CXX object src/CMakeFiles/herbstluftwm.dir/mouse.cpp.
[ 55%]Building CXX object src/CMakeFiles/herbstluftwm.dir/mousemanager.cpp.
[ 56%]Building CXX object src/CMakeFiles/herbstluftwm.dir/mousedraghandler.cpp.
[ 58%]Building CXX object src/CMakeFiles/herbstluftwm.dir/namedhook.cpp.
[ 59%]Building CXX object src/CMakeFiles/herbstluftwm.dir/object.cpp.
[ 60%]Building CXX object src/CMakeFiles/herbstluftwm.dir/panelmanager.cpp.
[ 62%]Building CXX object src/CMakeFiles/herbstluftwm.dir/rectangle.cpp.
[ 63%]Building CXX object src/CMakeFiles/herbstluftwm.dir/regexstr.cpp.
[ 64%]Building CXX object src/CMakeFiles/herbstluftwm.dir/root.cpp.
[ 65%]Building CXX object src/CMakeFiles/herbstluftwm.dir/rulemanager.cpp.
[ 67%]Building CXX object src/CMakeFiles/herbstluftwm.dir/rules.cpp.
[ 68%]Building CXX object src/CMakeFiles/herbstluftwm.dir/settings.cpp.
[ 69%]Building CXX object src/CMakeFiles/herbstluftwm.dir/stack.cpp.
[ 70%]Building CXX object src/CMakeFiles/herbstluftwm.dir/tag.cpp.
[ 72%]Building CXX object src/CMakeFiles/herbstluftwm.dir/tagmanager.cpp.
[ 73%]Building CXX object src/CMakeFiles/herbstluftwm.dir/theme.cpp.
[ 74%]Building CXX object src/CMakeFiles/herbstluftwm.dir/tilingresult.cpp.
[ 75%]Building CXX object src/CMakeFiles/herbstluftwm.dir/tmp.cpp.
[ 77%]Building CXX object src/CMakeFiles/herbstluftwm.dir/converter.cpp.
[ 78%]Building CXX object src/CMakeFiles/herbstluftwm.dir/typesdoc.cpp.
[ 79%]Building CXX object src/CMakeFiles/herbstluftwm.dir/utils.cpp.
[ 81%]Building CXX object src/CMakeFiles/herbstluftwm.dir/watchers.cpp.
[ 82%]Building CXX object src/CMakeFiles/herbstluftwm.dir/x11-types.cpp.
[ 83%]Building CXX object src/CMakeFiles/herbstluftwm.dir/x11-utils.cpp.
[ 84%]Building CXX object src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.
[ 86%]Building CXX object src/CMakeFiles/herbstluftwm.dir/xkeygrabber.cpp.
[ 87%]Building CXX object src/CMakeFiles/herbstluftwm.dir/xmainloop.cpp.
[ 88%]Linking CXX executable ../herbstluftwm
[ 88%] Built target herbstluftwm
make: *** [Makefile:136: all] Error 2

From the messages it looks as if cmake isn’t finding some libraries.

Make sure all required libraries are added to the buildInputs

There are a bunch of error messages about xorg.libXdmcp being missing, for example, and I think the actual error message is now looking for libxslt :slight_smile:

For reference, you would add those dependencies like so:

The new dependencies are probably necessary because you’re building a different version entirely, dev is not 0.9.3.

1 Like

I tried including xorg.libxdmcp, libxslt and patching shebangs and now getting following issue:

error : Resource temporarily unavailable
/build/source/build/doc/herbstclient.xml:2: warning: failed to load external entity “http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
D DocBook XML V4.5//EN" “http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
warning: failed to load external entity “/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/etc/asciidoc/docbook-xsl/manpage.xsl”
cannot parse /nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/etc/asciidoc/docbook-xsl/manpage.xsl
make[2]: *** [doc/CMakeFiles/doc_man_herbstclient.dir/build.make:75: doc/herbstclient.1] Error 4
make[1]: *** [CMakeFiles/Makefile2:274: doc/CMakeFiles/doc_man_herbstclient.dir/all] Error 2

Full log
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/mljjc6rijahw6khan6a4mx2adkjb258w-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
patching script interpreter paths in AUTHORS CMakeLists.txt Doxyfile HACKING INSTALL LICENSE MIGRATION Makefile NEWS README.asciidoc VERSION ci cmake doc ipc-client python scripts share src tests tox.ini utilities valgrind-xephyr.sh www
ci/build.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
ci/mktar.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
ci/check-using-std.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
ci/clang-and-tidy.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
ci/diff-json-doc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
doc/format-doc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
doc/gendoc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
scripts/loadstate.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/toggledualhead.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/dumpbeautify.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/keychain.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/wselect.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/maximize.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/herbstcommander.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/unminimize.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/execwith.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/layout.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/windowmenu.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/dmenu.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/savestate.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/scratchpad.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/lasttag.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/exec_on_tag.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/float-maximize.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/q3terminal.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/perclient_kb_layout.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
scripts/floatmon.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/dmenu_run_hlwm: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/restartpanels.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/autostart: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
share/panel.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
valgrind-xephyr.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
www/compose.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/vhig7h3fvf00z2r4hmszkxss10vz5qy4-python3-3.9.6-env/bin/python3"
www/gentoc.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash"
applying patch /nix/store/68i5j28fzg9gfsjvwn14nmbyind0hz2c-test-path-environment.patch
patching file tests/conftest.py
Hunk #1 succeeded at 48 (offset 5 lines).
patching script interpreter paths in doc/gendoc.py
substituteStream(): WARNING: pattern '/usr/bin/env bash' doesn't match anything in file 'tests/test_herbstluftwm.py'
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_LOCALEDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/ggbczas8bfvj8dh92pf9x5hzjzslzyf1-herbstluftwm-dev-doc/share/doc/Herbstluftwm -DCMAKE_INSTALL_INFODIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/fvjs4wch57xii7b53kzc8k0m3dsnlyhq-herbstluftwm-dev-man/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/strip -DCMAKE_RANLIB=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/ranlib -DCMAKE_AR=/nix/store/fp2h123793bxln4cjxy0mz08sf4nx2m3-binutils-2.35.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev -DCMAKE_INSTALL_SYSCONF_PREFIX=/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/etc 
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/0sqbi0agffx7fvzgr4zvr3zk1l6kdnr4-gcc-wrapper-10.3.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/0sqbi0agffx7fvzgr4zvr3zk1l6kdnr4-gcc-wrapper-10.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: pkg-config (found version "0.29.2") 
-- Checking for module 'x11'
--   Found x11, version 1.7.2
-- Checking for module 'xrandr'
--   Found xrandr, version 1.5.2
-- Checking for module 'xinerama'
--   Found xinerama, version 1.1.4
-- Checking for module 'xext'
--   Found xext, version 1.3.4
-- Checking for module 'xrender'
--   Found xrender, version 0.9.10
-- Checking for module 'xft'
--   Found xft, version 2.3.4
-- Checking for module 'freetype2'
--   Found freetype2, version 24.0.18
-- Configuring done
-- Generating done
[33mCMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025


-- Build files have been written to: /build/source/build
cmake: enabled parallel building
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j4 -l4 SHELL=/nix/store/qfb4j7w2fjjq953nd9xncz5mymj5n0kb-bash-5.1-p8/bin/bash
[  1%] Building CXX object src/CMakeFiles/herbstluftwm.dir/main.cpp.
[  2%] Building C object ipc-client/CMakeFiles/herbstclient.dir/main.c.
[  3%] mGenerating hlwm-doc.json
[  3%] Built target copy_autostart
[  5%] Building CXX object src/CMakeFiles/herbstluftwm.dir/arglist.cpp.
[  6%] Building C object ipc-client/CMakeFiles/herbstclient.dir/client-utils.c.
[  7%] Building C object ipc-client/CMakeFiles/herbstclient.dir/ipc-client.c.
[  8%] Linking C executable ../herbstclient
[  8%] Built target herbstclient
[ 10%] Building CXX object src/CMakeFiles/herbstluftwm.dir/argparse.cpp.
[ 10%] Built target doc_json
[ 11%] mGenerating hlwm-objects-gen.txt
[ 12%] Built target gen_object_asciidoc
[ 13%] mGenerating herbstclient.1, herbstclient.xml
[ 15%] Building CXX object src/CMakeFiles/herbstluftwm.dir/attribute.cpp.
error : Resource temporarily unavailable
/build/source/build/doc/herbstclient.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
                                                                               ^
warning: failed to load external entity "/nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/etc/asciidoc/docbook-xsl/manpage.xsl"
cannot parse /nix/store/9a7xwq7mwx3aapmifh7hvv1c0qcia296-herbstluftwm-dev/etc/asciidoc/docbook-xsl/manpage.xsl
make[2]: *** [doc/CMakeFiles/doc_man_herbstclient.dir/build.make:75: doc/herbstclient.1] Error 4
make[1]: *** [CMakeFiles/Makefile2:274: doc/CMakeFiles/doc_man_herbstclient.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object src/CMakeFiles/herbstluftwm.dir/autostart.cpp.
[ 17%] Building CXX object src/CMakeFiles/herbstluftwm.dir/byname.cpp.
[ 18%] Building CXX object src/CMakeFiles/herbstluftwm.dir/client.cpp.
[ 20%] Building CXX object src/CMakeFiles/herbstluftwm.dir/clientmanager.cpp.
[ 21%] Building CXX object src/CMakeFiles/herbstluftwm.dir/command.cpp.
[ 22%] Building CXX object src/CMakeFiles/herbstluftwm.dir/commandio.cpp.
[ 24%] Building CXX object src/CMakeFiles/herbstluftwm.dir/completion.cpp.
[ 25%] Building CXX object src/CMakeFiles/herbstluftwm.dir/decoration.cpp.
[ 26%] Building CXX object src/CMakeFiles/herbstluftwm.dir/desktopwindow.cpp.
[ 27%] Building CXX object src/CMakeFiles/herbstluftwm.dir/entity.cpp.
[ 29%] Building CXX object src/CMakeFiles/herbstluftwm.dir/ewmh.cpp.
[ 30%] Building CXX object src/CMakeFiles/herbstluftwm.dir/fixprecdec.cpp.
[ 31%] Building CXX object src/CMakeFiles/herbstluftwm.dir/floating.cpp.
[ 32%] Building CXX object src/CMakeFiles/herbstluftwm.dir/font.cpp.
[ 34%] Building CXX object src/CMakeFiles/herbstluftwm.dir/fontdata.cpp.
[ 35%] Building CXX object src/CMakeFiles/herbstluftwm.dir/framedata.cpp.
[ 36%] Building CXX object src/CMakeFiles/herbstluftwm.dir/framedecoration.cpp.
[ 37%] Building CXX object src/CMakeFiles/herbstluftwm.dir/frameparser.cpp.
[ 39%] Building CXX object src/CMakeFiles/herbstluftwm.dir/frametree.cpp.
[ 40%] Building CXX object src/CMakeFiles/herbstluftwm.dir/globalcommands.cpp.
[ 41%] Building CXX object src/CMakeFiles/herbstluftwm.dir/hlwmcommon.cpp.
[ 43%] Building CXX object src/CMakeFiles/herbstluftwm.dir/hook.cpp.
[ 44%] Building CXX object src/CMakeFiles/herbstluftwm.dir/ipc-server.cpp.
[ 45%] Building CXX object src/CMakeFiles/herbstluftwm.dir/keycombo.cpp.
[ 46%] Building CXX object src/CMakeFiles/herbstluftwm.dir/keymanager.cpp.
[ 48%] Building CXX object src/CMakeFiles/herbstluftwm.dir/layout.cpp.
[ 49%] Building CXX object src/CMakeFiles/herbstluftwm.dir/metacommands.cpp.
[ 50%] Building CXX object src/CMakeFiles/herbstluftwm.dir/monitor.cpp.
[ 51%] Building CXX object src/CMakeFiles/herbstluftwm.dir/monitordetection.cpp.
[ 53%] Building CXX object src/CMakeFiles/herbstluftwm.dir/monitormanager.cpp.
[ 54%] Building CXX object src/CMakeFiles/herbstluftwm.dir/mouse.cpp.
[ 55%] Building CXX object src/CMakeFiles/herbstluftwm.dir/mousemanager.cpp.
[ 56%] Building CXX object src/CMakeFiles/herbstluftwm.dir/mousedraghandler.cpp.
[ 58%] Building CXX object src/CMakeFiles/herbstluftwm.dir/namedhook.cpp.
[ 59%] Building CXX object src/CMakeFiles/herbstluftwm.dir/object.cpp.
[ 60%] Building CXX object src/CMakeFiles/herbstluftwm.dir/panelmanager.cpp.
[ 62%] Building CXX object src/CMakeFiles/herbstluftwm.dir/rectangle.cpp.
[ 63%] Building CXX object src/CMakeFiles/herbstluftwm.dir/regexstr.cpp.
[ 64%] Building CXX object src/CMakeFiles/herbstluftwm.dir/root.cpp.
[ 65%] Building CXX object src/CMakeFiles/herbstluftwm.dir/rulemanager.cpp.
[ 67%] Building CXX object src/CMakeFiles/herbstluftwm.dir/rules.cpp.
[ 68%] Building CXX object src/CMakeFiles/herbstluftwm.dir/settings.cpp.
[ 69%] Building CXX object src/CMakeFiles/herbstluftwm.dir/stack.cpp.
[ 70%] Building CXX object src/CMakeFiles/herbstluftwm.dir/tag.cpp.
[ 72%] Building CXX object src/CMakeFiles/herbstluftwm.dir/tagmanager.cpp.
[ 73%] Building CXX object src/CMakeFiles/herbstluftwm.dir/theme.cpp.
[ 74%] Building CXX object src/CMakeFiles/herbstluftwm.dir/tilingresult.cpp.
[ 75%] Building CXX object src/CMakeFiles/herbstluftwm.dir/tmp.cpp.
[ 77%] Building CXX object src/CMakeFiles/herbstluftwm.dir/converter.cpp.
[ 78%] Building CXX object src/CMakeFiles/herbstluftwm.dir/typesdoc.cpp.
[ 79%] Building CXX object src/CMakeFiles/herbstluftwm.dir/utils.cpp.
[ 81%] Building CXX object src/CMakeFiles/herbstluftwm.dir/watchers.cpp.
[ 82%] Building CXX object src/CMakeFiles/herbstluftwm.dir/x11-types.cpp.
[ 83%] Building CXX object src/CMakeFiles/herbstluftwm.dir/x11-utils.cpp.
[ 84%] Building CXX object src/CMakeFiles/herbstluftwm.dir/xconnection.cpp.
[ 86%] Building CXX object src/CMakeFiles/herbstluftwm.dir/xkeygrabber.cpp.
[ 87%] Building CXX object src/CMakeFiles/herbstluftwm.dir/xmainloop.cpp.
[ 88%] Linking CXX executable ../herbstluftwm
[ 88%] Built target herbstluftwm
make: *** [Makefile:136: all] Error 2

Looks like it’s attempting to download some external XML, which is impossible during a nix build. The pragmatic thing is to figure out how to disable building the documentation, the idealistic thing is to go upstream and complain about networking requirement during the build and seeing how that can be improved.

Alternatively, you can look at other docbook builds in nixpkgs to see how they handle that.

1 Like

I saw some package is simply using substituteInPlace to replace remote link with nix “${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd”.

In this case as far as I understand doc gets generated and used during build:

I tried to patch it in every phase there is but file /build/source/build/doc/herbstclient.xml does not exist yet or its too late

I solved this with the following overlay. Hope it helps.

final: prev: {
  herbstluftwm = prev.herbstluftwm.overrideAttrs (old: rec {
    version = old.version + "-git";

    src = prev.fetchFromGitHub {
      owner = "herbstluftwm";
      repo = old.pname;
      rev = "master";
      # TODO: add the current hash here
      # hash = "";
    };
    # NOTE: you might not need this anymore depending on when you use this. Try with and without.
    # The others are already included in master
    patches = prev.lib.lists.take 1 old.patches;

    # We need this since the derivation does not include generating below files
    oldsrc = old.src;
    postPatch = ''
    ${old.postPatch}

    mkdir oldsrc
    tar xf ${oldsrc} --strip-components=1 -C oldsrc

    cp oldsrc/doc/herbstclient.1 doc
    cp oldsrc/doc/herbstclient.html doc
    cp oldsrc/doc/herbstluftwm-tutorial.7 doc
    cp oldsrc/doc/herbstluftwm-tutorial.html doc
    cp oldsrc/doc/herbstluftwm.1 doc
    cp oldsrc/doc/herbstluftwm.html doc
    cp oldsrc/doc/hlwm-doc.json doc
    cp oldsrc/doc/hlwm-objects-gen.txt doc
    '';
    disabledTests = old.disabledTests ++ [ "test_doc" ];
  });
}