Unverified Commit 1ccac280 authored by Dom Rodriguez's avatar Dom Rodriguez
Browse files

hyprproxlock: init at 0.1.1

Add `hyprproxlock` to Nixpkgs for Hyprland Bluetooth-based proxmity
automatic locking.
parent 1bc456f4
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{
  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";
  };
})