hyprproxlock: init at 0.1.1

Add `hyprproxlock` to Nixpkgs for Hyprland Bluetooth-based proxmity
automatic locking.
This commit is contained in:
Dom Rodriguez
2026-03-03 18:53:40 +00:00
parent 1bc456f48e
commit 1ccac2805f
+48
View File
@@ -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";
};
})