diff options
author | NotAShelf <itsashelf@gmail.com> | 2023-06-04 10:35:26 +0300 |
---|---|---|
committer | NotAShelf <itsashelf@gmail.com> | 2023-06-04 16:52:43 +0300 |
commit | 5dfcee77945aca69685472c1b16acdac6fb209a7 (patch) | |
tree | 564ec2f07ff7f88df77f342bdc7f137bae2acc1f | |
parent | f07af2a35a4a91a241bf54e890b516b5464c489d (diff) |
waycorner: init at 0.2.1
-rw-r--r-- | pkgs/applications/misc/waycorner/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad848496a9ca5..9a967e6ed41a3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31563,6 +31563,8 @@ with pkgs; waybar = callPackage ../applications/misc/waybar { }; + waycorner = callPackage ../applications/misc/waycorner { }; + waylock = callPackage ../applications/misc/waylock { zig = buildPackages.zig_0_10; }; |