about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/i3
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2023-05-21 01:44:48 +1000
committerMichael Hoang <enzime@users.noreply.github.com>2023-05-21 11:33:12 +1000
commit249261f0dde371b98a41cb6cee2af61f95043dcd (patch)
tree1d9a40a704f50c779cb780025622dd453de1f644 /pkgs/applications/window-managers/i3
parent6ef1311212df22e0fadedc261c3cf3deb99a5e78 (diff)
kitti3: init at unstable-2021-09-11
Diffstat (limited to 'pkgs/applications/window-managers/i3')
-rw-r--r--pkgs/applications/window-managers/i3/kitti3-fix-build-system.patch21
-rw-r--r--pkgs/applications/window-managers/i3/kitti3.nix40
2 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/i3/kitti3-fix-build-system.patch b/pkgs/applications/window-managers/i3/kitti3-fix-build-system.patch
new file mode 100644
index 0000000000000..06a2ac60bb32f
--- /dev/null
+++ b/pkgs/applications/window-managers/i3/kitti3-fix-build-system.patch
@@ -0,0 +1,21 @@
+commit 410e98569c87469672086d4144f7ca0f2ee08fb7
+Author: Michael Hoang <enzime@users.noreply.github.com>
+Date:   Sun May 21 00:13:37 2023 +1000
+
+    Allow project to be built with just `pip`
+---
+ pyproject.toml | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 10ed786..574e42a 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,3 +1,7 @@
++[build-system]
++requires = ["poetry-core"]
++build-backend = "poetry.core.masonry.api"
++
+ [tool.poetry]
+ name = "kitti3"
+ version = "0.5.1"
diff --git a/pkgs/applications/window-managers/i3/kitti3.nix b/pkgs/applications/window-managers/i3/kitti3.nix
new file mode 100644
index 0000000000000..63e1224a316bf
--- /dev/null
+++ b/pkgs/applications/window-managers/i3/kitti3.nix
@@ -0,0 +1,40 @@
+{ buildPythonApplication
+, fetchFromGitHub
+, poetry-core
+, i3ipc
+, lib
+}:
+
+buildPythonApplication rec {
+  pname = "kitti3";
+  version = "unstable-2021-09-11";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "LandingEllipse";
+    repo = pname;
+    rev = "f9f94c8b9f8b61a9d085206ada470cfe755a2a92";
+    hash = "sha256-bcIzbDpIe2GKS9EcVqpjwz0IG2ixNMn06OIQpZ7PeH0=";
+  };
+
+  patches = [
+    # Fixes `build-system` not being specified in `pyproject.toml`
+    # https://github.com/LandingEllipse/kitti3/pull/25
+    ./kitti3-fix-build-system.patch
+  ];
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = [
+    i3ipc
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/LandingEllipse/kitti3";
+    description = "Kitty drop-down service for sway & i3wm";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ Enzime ];
+  };
+}