nixos-config/pkgs/uwsm/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

2025-01-15 06:00:12 +00:00
{ lib, python311Packages, fetchFromGitHub, meson, ninja, pkg-config
2024-01-21 02:06:53 +00:00
2025-01-15 06:00:12 +00:00
# This is for substituting shebangs in its plugins.
, coreutils }:
2024-01-21 02:06:53 +00:00
python311Packages.buildPythonPackage rec {
pname = "uwsm";
version = "0.14.0";
format = "other";
src = fetchFromGitHub {
owner = "Vladimir-csp";
repo = "uwsm";
rev = "v${version}";
hash = "sha256-n80FZ6rEguTN9ouEqI+bc5FOSeFQ8ynV+XDL2K/ZIxI=";
};
2025-01-15 06:00:12 +00:00
patches = [ ./0001-chore-add-build-backend-for-pyproject.patch ];
2024-01-21 02:06:53 +00:00
2025-01-15 06:00:12 +00:00
nativeBuildInputs = [ meson ninja pkg-config ];
2024-01-21 02:06:53 +00:00
2025-01-15 06:00:12 +00:00
propagatedBuildInputs = with python311Packages; [ pyxdg dbus-python ];
2024-01-21 02:06:53 +00:00
postFixup = ''
substituteInPlace $out/share/uwsm/plugins/*.sh \
--replace '/bin/false' '${lib.getExe' coreutils "false"}'
'';
meta = with lib; {
homepage = "https://github.com/Vladimir-csp/uwsm";
description = "Session manager for standalone Wayland window managers.";
license = licenses.mit;
maintainers = with maintainers; [ foo-dogsquared ];
mainProgram = "uwsm";
platforms = platforms.linux;
};
}