nixpkgs/pkgs/by-name/pw/pwalarmctl/package.nix
Amy Parker fdbb22c1b3 pwalarmctl: init at 0.1.0
This patch adds pwalarmctl, a controller and status tool for the
pwalarmd daemon that was merged in #315703.

Signed-off-by: Amy Parker <amy@amyip.net>
2024-06-12 10:44:12 +02:00

44 lines
989 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, alsa-lib
}:
rustPlatform.buildRustPackage rec {
pname = "pwalarmctl";
version = "0.1.0";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib ];
src = fetchFromGitHub {
owner = "amyipdev";
repo = "pwalarmd";
rev = "v${version}";
hash = "sha256-xoC1PtDQjkvoWb9x8A43ITo6xyYOv9hxH2pxiZBBvKI=";
};
cargoHash = "sha256-OvTGpekiy6j7un+jF4t9tauzi4RndIyPwJRHTOtt4GM=";
preBuild = ''
cargo check
'';
buildAndTestSubdir = "pwalarmctl";
meta = {
description = "Controller for pwalarmd";
longDescription = ''
pwalarmctl is a command-line controller for pwalarmd which allows
for live configuration changes and access to the active state
of pwalarmd.
'';
mainProgram = "pwalarmctl";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.all;
badPlatforms = lib.platforms.darwin;
maintainers = with lib.maintainers; [ amyipdev ];
};
}