mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
783a35ca3d
Feel free to remove the following packages, which were essentially personal tools:
- apc-temp-fetch:
this is outdated anyways, it needs flit to build now,
see also: 53bcaab3e9/net-analyzer/APC-Temp-fetch/APC-Temp-fetch-0.0.9.ebuild
- libowlevelzs
- zs-apc-spdu-ctl
- zs-wait4host
- zstxtns-utils
38 lines
778 B
Nix
38 lines
778 B
Nix
{ 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 = "fogti";
|
|
repo = "zs-apc-spdu-ctl";
|
|
rev = "v${version}";
|
|
sha256 = "TMV9ETWBVeXq6tZ2e0CrvHBXoyKfOLCQurjBdf/iw/M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ libowlevelzs net-snmp ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/confent.cxx \
|
|
--replace /usr/sbin/fping "${fping}/bin/fping"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "APC SPDU control utility";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "zs-apc-spdu-ctl";
|
|
};
|
|
}
|