summary refs log tree commit diff
path: root/pkgs/applications/misc/waycorner
diff options
context:
space:
mode:
authorNotAShelf <itsashelf@gmail.com>2023-06-04 10:35:26 +0300
committerNotAShelf <itsashelf@gmail.com>2023-06-04 16:52:43 +0300
commit5dfcee77945aca69685472c1b16acdac6fb209a7 (patch)
tree564ec2f07ff7f88df77f342bdc7f137bae2acc1f /pkgs/applications/misc/waycorner
parentf07af2a35a4a91a241bf54e890b516b5464c489d (diff)
waycorner: init at 0.2.1
Diffstat (limited to 'pkgs/applications/misc/waycorner')
-rw-r--r--pkgs/applications/misc/waycorner/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/misc/waycorner/default.nix b/pkgs/applications/misc/waycorner/default.nix
new file mode 100644
index 0000000000000..66e5660042ad9
--- /dev/null
+++ b/pkgs/applications/misc/waycorner/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, makeWrapper
+, rustPlatform
+, pkg-config
+, fetchFromGitHub
+, wayland
+,
+}:
+rustPlatform.buildRustPackage rec {
+  pname = "waycorner";
+  version = "0.2.1";
+  src = fetchFromGitHub {
+    owner = "AndreasBackx";
+    repo = "waycorner";
+    rev = version;
+    hash = "sha256-xvmvtn6dMqt8kUwvn5d5Nl1V84kz1eWa9BSIN/ONkSQ=";
+  };
+  cargoHash = "sha256-Dl+GhJywWhaC4QMS70klazPsFipGVRW+6jrXH2XsEAI=";
+  buildInputs = [
+    wayland
+  ];
+  nativeBuildInputs = [
+    pkg-config
+    makeWrapper
+  ];
+  postFixup = ''
+    # the program looks for libwayland-client.so at runtime
+    wrapProgram $out/bin/waycorner \
+      --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ wayland ]}
+  '';
+
+  meta = with lib; {
+    description = "Hot corners for Wayland";
+    changelog = "https://github.com/AndreasBackx/waycorner/blob/main/CHANGELOG.md";
+    homepage = "https://github.com/AndreasBackx/waycorner";
+    platforms = platforms.linux;
+    license = licenses.mit;
+    maintainers = with maintainers; [ NotAShelf ];
+  };
+}