wl-crosshair: init at 0.1.0-unstable-2024-05-09 (#315950)
This commit is contained in:
commit
c10f2c7583
37
pkgs/by-name/wl/wl-crosshair/package.nix
Normal file
37
pkgs/by-name/wl/wl-crosshair/package.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user