3
0
Fork 0
forked from mirrors/nixpkgs

zs-apc-spdu-ctl: init at 0.0.2

This commit is contained in:
zseri 2021-02-27 00:04:37 +01:00
parent d39fa1f503
commit 113e2761b7
No known key found for this signature in database
GPG key ID: 229E63AE5644A96D
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ cmake
, fetchFromGitHub
, fping
, lib
, libowlevelzs
, net-snmp
, stdenv
}:
# TODO: add a services entry for the /etc/zs-apc-spdu.conf file
stdenv.mkDerivation rec {
pname = "zs-apc-spdu-ctl";
version = "0.0.2";
src = fetchFromGitHub {
owner = "zseri";
repo = "zs-apc-spdu-ctl";
rev = "v${version}";
sha256 = "TMV9ETWBVeXq6tZ2e0CrvHBXoyKfOLCQurjBdf/iw/M=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ fping libowlevelzs net-snmp ];
postPatch = ''
substituteInPlace src/confent.cxx \
--replace /usr/sbin/fping "${lib.makeBinPath [fping]}/fping"
'';
meta = with lib; {
description = "APC SPDU control utility";
license = licenses.mit;
maintainers = with maintainers; [ zseri ];
platforms = platforms.linux;
};
}

View file

@ -9352,6 +9352,8 @@ in
zinit = callPackage ../shells/zsh/zinit {} ;
zs-apc-spdu-ctl = callPackage ../tools/networking/zs-apc-spdu-ctl { };
zsh-autoenv = callPackage ../tools/misc/zsh-autoenv { };
zsh-autopair = callPackage ../shells/zsh/zsh-autopair { };