Unverified Commit 1ce7ded4 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

hyprproxlock: init at 0.1.1 (#464260)

parents bf31bffd 1ccac280
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";
  };
})