nixos-config/pkgs/sessiond/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2025-01-15 06:00:12 +00:00
{ lib, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, coreutils, glib
, gobject-introspection, xorg, udev, wireplumber, pipewire, perl
, python3Packages }:
2023-08-22 01:18:38 +00:00
2024-01-21 11:11:12 +00:00
python3Packages.buildPythonPackage rec {
2023-08-22 01:18:38 +00:00
pname = "sessiond";
version = "0.6.1";
2024-01-21 11:11:12 +00:00
format = "other";
2023-08-22 01:18:38 +00:00
src = fetchFromGitHub {
owner = "jcrd";
repo = "sessiond";
rev = "v${version}";
hash = "sha256-w1IOzhZAlWiYaGBdS2CTa2Z8fHXcsAvBKIoXLQSBjts=";
};
patches = [
(fetchpatch {
2025-01-15 06:00:12 +00:00
url =
"https://github.com/jcrd/sessiond/commit/217ed63e2033c46c637e0564ef44ceaedff3e102.patch";
2023-08-22 01:18:38 +00:00
hash = "sha256-/GFPwJ4OBskavUJYhR5LGpt+HZABDOCpx6cVYDCYTNE=";
})
2024-01-21 11:11:12 +00:00
./0002-meson-Add-python-sessiond-installation.patch
2023-08-22 01:18:38 +00:00
];
2025-01-15 06:00:12 +00:00
nativeBuildInputs =
[ meson ninja pkg-config glib gobject-introspection perl ];
2023-08-22 01:18:38 +00:00
2025-01-15 06:00:12 +00:00
buildInputs =
[ udev xorg.libXi xorg.libX11 xorg.libXext wireplumber pipewire ];
2023-08-22 01:18:38 +00:00
2025-01-15 06:00:12 +00:00
propagatedBuildInputs = with python3Packages; [ dbus-python ];
2024-01-21 11:11:12 +00:00
postPatch = ''
substituteInPlace ./systemd/sessiond.service \
--replace '/usr/bin/kill' '${lib.getExe' coreutils "kill"}' \
--replace '/usr/bin' "${placeholder "out"}/bin"
'';
2023-08-22 01:18:38 +00:00
meta = with lib; {
homepage = "https://github.com/jcrd/sessiond";
description = "Standalone session manager for X11 window managers";
license = licenses.gpl3Plus;
mainProgram = "sessiond";
maintainers = with maintainers; [ foo-dogsquared ];
2023-08-22 01:18:38 +00:00
platforms = platforms.linux;
};
}