nut: update from 2.6.5 to 2.7.1; fix nut-scanner
This commit is contained in:
parent
b17324265a
commit
c857d90619
@ -1,17 +1,17 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, neon, libusb, openssl, udev, avahi, freeipmi
|
{ stdenv, fetchurl, pkgconfig, neon, libusb, openssl, udev, avahi, freeipmi
|
||||||
, libtool }:
|
, libtool, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nut-2.6.5";
|
name = "nut-2.7.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.networkupstools.org/source/2.6/${name}.tar.gz";
|
url = "http://www.networkupstools.org/source/2.7/${name}.tar.gz";
|
||||||
sha256 = "0gxrzsblx0jc4g9w0903ybwqbv1d79vq5hnks403fvnay4fgg3b1";
|
sha256 = "1667n9h8jcz7k6h24fn615khqahlq5z22zxs4s0q046rsqxdg9ki";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ neon libusb openssl udev avahi freeipmi libtool ];
|
buildInputs = [ neon libusb openssl udev avahi freeipmi libtool ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-all"
|
[ "--with-all"
|
||||||
@ -21,10 +21,17 @@ stdenv.mkDerivation rec {
|
|||||||
"--without-cgi"
|
"--without-cgi"
|
||||||
"--without-hal"
|
"--without-hal"
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/systemd"
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/systemd"
|
||||||
|
"--with-udev-dir=$(out)/etc/udev"
|
||||||
];
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/nut-scanner --prefix LD_LIBRARY_PATH : \
|
||||||
|
"$out/lib:${neon}/lib:${libusb}/lib:${avahi}/lib:${freeipmi}/lib"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Network UPS Tools";
|
description = "Network UPS Tools";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -33,6 +40,7 @@ stdenv.mkDerivation rec {
|
|||||||
It uses a layered approach to connect all of the parts.
|
It uses a layered approach to connect all of the parts.
|
||||||
'';
|
'';
|
||||||
homepage = http://www.networkupstools.org/;
|
homepage = http://www.networkupstools.org/;
|
||||||
|
repositories.git = https://github.com/networkupstools/nut.git;
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
maintainers = with stdenv.lib.maintainers; [ pierron ];
|
maintainers = with stdenv.lib.maintainers; [ pierron ];
|
||||||
priority = 10;
|
priority = 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user