waycorner: init at 0.2.1

This commit is contained in:
NotAShelf 2023-06-04 10:35:26 +03:00
parent f07af2a35a
commit 5dfcee7794
No known key found for this signature in database
GPG Key ID: F0D14CCB5ED5AA22
2 changed files with 42 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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;
};