depot/third_party/nixpkgs/pkgs/by-name/wl/wl-crosshair/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

38 lines
1 KiB
Nix

{
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=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-34K8Vjb7MrB8WGGLase+GnN2bUDuAnvU6VWRV1k+ZYM=";
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;
};
}