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?