nixpkgs/pkgs/by-name/wa/waycorner/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

{
lib,
makeWrapper,
rustPlatform,
pkg-config,
fetchFromGitHub,
wayland,
2024-10-19 19:29:37 +01:00
gitUpdater,
2023-06-04 08:35:26 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "waycorner";
2024-03-23 14:45:15 +00:00
version = "0.2.3";
2023-06-04 08:35:26 +01:00
src = fetchFromGitHub {
owner = "AndreasBackx";
repo = "waycorner";
rev = "refs/tags/${version}";
2024-03-23 14:45:15 +00:00
hash = "sha256-b8juIhJ3kh+NJc8RUVVoatqjWISSW0ir/vk2Dz/428Y=";
2023-06-04 08:35:26 +01:00
};
2024-03-23 14:45:15 +00:00
cargoHash = "sha256-LGxFRGzQ8jOfxT5di3+YGqfS5KM4+Br6KlTFpPbkJyU=";
2023-06-04 08:35:26 +01:00
nativeBuildInputs = [
pkg-config
makeWrapper
];
2023-06-04 08:35:26 +01:00
postFixup = ''
# the program looks for libwayland-client.so at runtime
wrapProgram $out/bin/waycorner \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ wayland ]}
'';
2024-10-19 19:29:37 +01:00
passthru.updateScript = gitUpdater { };
meta = {
2023-06-04 08:35:26 +01:00
description = "Hot corners for Wayland";
mainProgram = "waycorner";
changelog = "https://github.com/AndreasBackx/waycorner/blob/${version}/CHANGELOG.md";
2023-06-04 08:35:26 +01:00
homepage = "https://github.com/AndreasBackx/waycorner";
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ NotAShelf ];
2023-06-04 08:35:26 +01:00
};
}