10 # TODO: add a services entry for the /etc/zs-apc-spdu.conf file
11 stdenv.mkDerivation rec {
12 pname = "zs-apc-spdu-ctl";
15 src = fetchFromGitHub {
17 repo = "zs-apc-spdu-ctl";
19 sha256 = "TMV9ETWBVeXq6tZ2e0CrvHBXoyKfOLCQurjBdf/iw/M=";
22 nativeBuildInputs = [ cmake ];
23 buildInputs = [ libowlevelzs net-snmp ];
26 substituteInPlace src/confent.cxx \
27 --replace /usr/sbin/fping "${fping}/bin/fping"
31 description = "APC SPDU control utility";
32 license = licenses.mit;
34 platforms = platforms.linux;
35 mainProgram = "zs-apc-spdu-ctl";