mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
80ab54b3af
- Updated version and hash - Added pulsectl-asyncio dependency and removed pulseaudio as those FFI bindings are now handled by pulsectl-asyncio - Added libdrm and pixman patches - Added xcbutilwm otherwise we get a header not found - Removed wlroots 0.15 pin as qtile now uses wlroots 0.16
101 lines
2.1 KiB
Nix
101 lines
2.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cairocffi
|
|
, dbus-next
|
|
, dbus-python
|
|
, glib
|
|
, libdrm
|
|
, libinput
|
|
, libxkbcommon
|
|
, mpd2
|
|
, pango
|
|
, pixman
|
|
, pkg-config
|
|
, psutil
|
|
, pulsectl-asyncio
|
|
, pygobject3
|
|
, python-dateutil
|
|
, pywayland
|
|
, pywlroots
|
|
, pyxdg
|
|
, setuptools
|
|
, setuptools-scm
|
|
, wayland
|
|
, wlroots
|
|
, xcbutilcursor
|
|
, xcbutilwm
|
|
, xcffib
|
|
, xkbcommon
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qtile";
|
|
version = "0.23.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qtile";
|
|
repo = "qtile";
|
|
rev = "v${version}";
|
|
hash = "sha256-WxnpkKqYGGEsFTt/1iCSiCzdESJP6HFJ6BztaMsMbYo=";
|
|
};
|
|
|
|
patches = [
|
|
./fix-restart.patch # https://github.com/NixOS/nixpkgs/issues/139568
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace libqtile/pangocffi.py \
|
|
--replace libgobject-2.0.so.0 ${glib.out}/lib/libgobject-2.0.so.0 \
|
|
--replace libpangocairo-1.0.so.0 ${pango.out}/lib/libpangocairo-1.0.so.0 \
|
|
--replace libpango-1.0.so.0 ${pango.out}/lib/libpango-1.0.so.0
|
|
substituteInPlace libqtile/backend/x11/xcursors.py \
|
|
--replace libxcb-cursor.so.0 ${xcbutilcursor.out}/lib/libxcb-cursor.so.0
|
|
substituteInPlace libqtile/backend/wayland/cffi/build.py \
|
|
--replace /usr/include/pixman-1 ${lib.getDev pixman}/include \
|
|
--replace /usr/include/libdrm ${lib.getDev libdrm}/include/libdrm
|
|
'';
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
setuptools-scm
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
xcffib
|
|
(cairocffi.override { withXcffib = true; })
|
|
python-dateutil
|
|
dbus-python
|
|
dbus-next
|
|
mpd2
|
|
psutil
|
|
pulsectl-asyncio
|
|
pyxdg
|
|
pygobject3
|
|
pywayland
|
|
pywlroots
|
|
xkbcommon
|
|
];
|
|
|
|
buildInputs = [
|
|
libinput
|
|
wayland
|
|
wlroots
|
|
libxkbcommon
|
|
xcbutilwm
|
|
];
|
|
|
|
doCheck = false; # Requires X server #TODO this can be worked out with the existing NixOS testing infrastructure.
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.qtile.org/";
|
|
license = licenses.mit;
|
|
description = "A small, flexible, scriptable tiling window manager written in Python";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ kamilchm arjan-s ];
|
|
};
|
|
}
|