mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
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>
This commit is contained in:
parent
5c5904ab37
commit
fdbb22c1b3
43
pkgs/by-name/pw/pwalarmctl/package.nix
Normal file
43
pkgs/by-name/pw/pwalarmctl/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user