uwsm: init at 0.14.0

This commit is contained in:
Gabriel Arazas 2024-01-21 10:06:53 +08:00
parent 51f4d7cd0f
commit ee2a3853eb
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 83 additions and 0 deletions

View File

@ -34,6 +34,7 @@ let
tic-80 = callPackage ./tic-80 { };
smile = callPackage ./smile { };
sessiond = callPackage ./sessiond { };
uwsm = callPackage ./uwsm { };
vgc = qt6Packages.callPackage ./vgc { };
watc = callPackage ./watc { };
wzmach = callPackage ./wzmach { };

View File

@ -0,0 +1,30 @@
From 0f8ac87439450da38d5d590c4b9f094ba2572df7 Mon Sep 17 00:00:00 2001
From: Gabriel Arazas <foodogsquared@foodogsquared.one>
Date: Sun, 21 Jan 2024 08:54:17 +0800
Subject: [PATCH] chore: add build backend for pyproject
---
pyproject.toml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/pyproject.toml b/pyproject.toml
index 7de26ba..8263556 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,13 @@
+[build-system]
+requires = ["setuptools >= 61.0"]
+build-backend = "setuptools.build_meta"
+
+[project]
+dependencies = [
+ "pyxdg >= 0.28"
+ "dbus-python"
+]
+
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "Linux"
--
2.42.0

52
pkgs/uwsm/default.nix Normal file
View File

@ -0,0 +1,52 @@
{ lib
, python311Packages
, fetchFromGitHub
, meson
, ninja
, pkg-config
# This is for substituting shebangs in its plugins.
, coreutils
}:
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=";
};
patches = [
./0001-chore-add-build-backend-for-pyproject.patch
];
nativeBuildInputs = [
meson
ninja
pkg-config
];
propagatedBuildInputs = with python311Packages; [
pyxdg
dbus-python
];
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;
};
}