diff --git a/pkgs/by-name/hy/hyprproxlock/package.nix b/pkgs/by-name/hy/hyprproxlock/package.nix new file mode 100644 index 000000000000..6fb6c49d8d9c --- /dev/null +++ b/pkgs/by-name/hy/hyprproxlock/package.nix @@ -0,0 +1,48 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + + # nativeBuildInputs + pkg-config, + + # buildInputs + dbus, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "hyprproxlock"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "Da4ndo"; + repo = "hyprproxlock"; + tag = finalAttrs.version; + hash = "sha256-EoMxYMQBRP1fDfUorrkrgKDrVI88Ctusp2+1a7tnSU0="; + }; + + cargoHash = "sha256-rBZ3acHStmUzEU+lsFhNYvLVPeeZe6P+4OHyxHRe4CU="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + dbus + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + homepage = "https://github.com/Da4ndo/hyprproxlock"; + description = "Proximity-based daemon for Hyprland that triggers screen locking and unlocking through hyprlock based on Bluetooth device proximity"; + longDescription = '' + A proximity-based daemon for Hyprland that triggers screen locking and unlocking through hyprlock based on Bluetooth device proximity. + It monitors connected devices' signal strength to automatically control your screen lock state. + ''; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ shymega ]; + mainProgram = "hyprproxlock"; + }; +})