nixos-config/pkgs/sessiond/default.nix

76 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-21 11:11:12 +00:00
{ lib
2023-08-22 01:18:38 +00:00
, fetchFromGitHub
, fetchpatch
, meson
, ninja
, pkg-config
2024-01-21 11:11:12 +00:00
, coreutils
2023-08-22 01:18:38 +00:00
, glib
2024-01-21 11:11:12 +00:00
, gobject-introspection
2023-08-22 01:18:38 +00:00
, xorg
, udev
, wireplumber
, pipewire
, perl
2024-01-21 11:11:12 +00:00
, 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 {
2024-01-21 11:11: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
];
nativeBuildInputs = [
meson
ninja
pkg-config
2024-01-21 11:11:12 +00:00
glib
gobject-introspection
perl
2023-08-22 01:18:38 +00:00
];
buildInputs = [
udev
xorg.libXi
xorg.libX11
xorg.libXext
wireplumber
pipewire
];
2024-01-21 11:11:12 +00:00
propagatedBuildInputs = with python3Packages; [
dbus-python
];
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;
};
}