2012-12-12 16:17:47 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, neon, libusb, openssl, udev, avahi, freeipmi }:
|
2011-06-14 04:41:01 +02:00
|
|
|
|
2012-12-12 16:17:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nut-2.6.5";
|
2012-09-28 18:15:12 +02:00
|
|
|
|
2011-06-14 04:41:01 +02:00
|
|
|
src = fetchurl {
|
2012-12-12 16:17:47 +01:00
|
|
|
url = "http://www.networkupstools.org/source/2.6/${name}.tar.gz";
|
|
|
|
sha256 = "0gxrzsblx0jc4g9w0903ybwqbv1d79vq5hnks403fvnay4fgg3b1";
|
2011-06-14 04:41:01 +02:00
|
|
|
};
|
|
|
|
|
2012-12-12 16:17:47 +01:00
|
|
|
buildInputs = [ neon libusb openssl udev avahi freeipmi ];
|
2011-06-14 04:41:01 +02:00
|
|
|
|
2013-01-22 23:23:53 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-12-12 16:17:47 +01:00
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-all"
|
|
|
|
"--with-ssl"
|
|
|
|
"--without-snmp" # Until we have it ...
|
|
|
|
"--without-powerman" # Until we have it ...
|
|
|
|
"--without-cgi"
|
|
|
|
"--without-hal"
|
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/systemd"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2011-06-14 04:41:01 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Network UPS Tools";
|
|
|
|
longDescription = ''
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
interface for monitoring and administering UPS, PDU and SCD hardware.
|
|
|
|
It uses a layered approach to connect all of the parts.
|
|
|
|
'';
|
|
|
|
homepage = http://www.networkupstools.org/;
|
2011-06-14 17:29:40 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ pierron ];
|
2012-12-12 16:17:47 +01:00
|
|
|
priority = 10;
|
2011-06-14 04:41:01 +02:00
|
|
|
};
|
|
|
|
}
|