Closed misumisumi closed 1 year ago
You're trying to build Qtile from the git repo, which is not possible with some specific changes to your overlay. Please take a look at my (working) version for ideas: https://gist.github.com/arjan-s/bc942826ff1d2e5e60430740fef912fd#file-overlay_qtile_master-nix-L35
@arjan-s
It'd be really cool if you can make an overlay flake for it!
Made my own concise version of the overlay (the Wayland backend is untested):
final: prev: {
python3 = prev.python3.override {
packageOverrides = pythonFinal: pythonPrev: {
qtile = pythonPrev.qtile.overrideAttrs (oldAttrs: {
version = "unstable-2023-09-04";
src = oldAttrs.src.override {
rev = "f45dc910ada928dae63b9db7ae89bf4c285909a8";
hash = "sha256-8hUW3TRwja+K0PAzKPo2UWCk8AbVy1f+8zfH3OOoSo8=";
};
propagatedBuildInputs =
let
xcffib = pythonFinal.xcffib.overrideAttrs (oldAttrs: rec {
version = "1.5.0";
patches = [ ];
src = oldAttrs.src.override {
inherit version;
hash = "sha256-qVyUZfL5e0/O3mBr0eCEB6Mt9xy3YP1Xv+U2d9tpGsw=";
};
});
in
with final; with pythonFinal; [
(pywlroots.overridePythonAttrs (oldAttrs: rec {
version = "0.16.4";
src = oldAttrs.src.override {
inherit version;
hash = "sha256-+1PILk14XoA/dINfoOQeeMSGBrfYX3pLA6eNdwtJkZE=";
};
buildInputs = [ wlroots_0_16 ] ++ lib.remove wlroots oldAttrs.buildInputs;
}))
xcffib
(cairocffi.override { withXcffib = true; inherit xcffib; })
] ++ lib.remove
(cairocffi.override { withXcffib = true; })
(lib.remove pywlroots oldAttrs.propagatedBuildInputs);
buildInputs = with final; [
wlroots_0_16
libdrm
] ++ lib.remove wlroots oldAttrs.buildInputs;
postPatch = with final; oldAttrs.postPatch + ''
substituteInPlace libqtile/backend/wayland/cffi/cairo_buffer.py \
--replace drm_fourcc.h libdrm/drm_fourcc.h
substituteInPlace libqtile/backend/wayland/cffi/build.py \
--replace /usr/include/pixman-1 ${pixman.outPath}/include \
--replace /usr/include/libdrm ${libdrm.dev.outPath}/include/libdrm
'';
});
};
};
}
Steps To Reproduce
Steps to reproduce the behavior:
Build log
https://gist.github.com/misumisumi/593302920c2f33a21cb65d69f9875bfe
Additional context
The issue is related to that raised in qtile/qtile#4346. Here is what I used to make the build pass using override. I would be happy if you could use it as a reference.
Notify maintainers
@kamilchm @arjan-s
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.