wl-crosshair: init at 0.1.0-unstable-2024-05-09 (#315950)

This commit is contained in:
Colin 2024-11-22 05:29:38 +00:00 committed by GitHub
commit c10f2c7583
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,37 @@
{
lib,
fetchFromGitHub,
makeBinaryWrapper,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "wl-crosshair";
version = "0.1.0-unstable-2024-05-09";
src = fetchFromGitHub {
owner = "lelgenio";
repo = "wl-crosshair";
rev = "39b716cf410a1b45006f50f32f8d63de5c43aedb";
hash = "sha256-q5key9BWJjJQqECrhflso9ZTzULBeScvromo0S4fjqE=";
};
cargoHash = "sha256-+QAvwnMMADj8Guo1idWj4uqmdxTLK95CB2BwP4QeQ18=";
nativeBuildInputs = [ makeBinaryWrapper ];
postInstall = ''
mkdir -p $out/share
cp -r ./cursors $out/share/cursors
wrapProgram $out/bin/wl-crosshair \
--set-default WL_CROSSHAIR_IMAGE_PATH $out/share/cursors/inverse-v.png
'';
meta = {
description = "A crosshair overlay for wlroots compositor";
homepage = "https://github.com/lelgenio/wl-crosshair";
license = lib.licenses.unfree; # didn't found a license
mainProgram = "wl-crosshair";
maintainers = with lib.maintainers; [ Guanran928 ];
platforms = lib.platforms.linux;
};
}