diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-06-08 18:50:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 18:50:31 +0200 |
commit | dcc610268382911a6c249803c48b6d239b800d03 (patch) | |
tree | a1de3a914b60530d83210a1f28b8aa3484337521 /pkgs/applications/misc | |
parent | da3c44fc4874bb6e6b554324147298cad11cee9f (diff) | |
parent | 5dfcee77945aca69685472c1b16acdac6fb209a7 (diff) |
Merge pull request #235893 from NotAShelf/waycorner
waycorner: init at 0.2.1
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/waycorner/default.nix | 40 |
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 ]; + }; +} |