Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pwalarmctl: init at 0.1.0 #316279

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions pkgs/by-name/pw/pwalarmctl/package.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}