summary refs log tree commit diff
path: root/pkgs/applications/misc/nut
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2011-06-14 02:41:01 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2011-06-14 02:41:01 +0000
commit9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9 (patch)
treea8835b22e0ed9d56d956d4b25c2a801381a05d97 /pkgs/applications/misc/nut
parent3d9e439c1a97f6f09fb1df00d020e5b89e4c1a7c (diff)
downloadnixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.tar
nixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.tar.gz
nixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.tar.bz2
nixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.tar.lz
nixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.tar.xz
nixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.tar.zst
nixpkgs-9451c1e2ca4d1d4d8a45c47f206358bdcb02efa9.zip
Add NUT package.
svn path=/nixpkgs/trunk/; revision=27448
Diffstat (limited to 'pkgs/applications/misc/nut')
-rw-r--r--pkgs/applications/misc/nut/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/misc/nut/default.nix b/pkgs/applications/misc/nut/default.nix
new file mode 100644
index 00000000000..0acb22ed2c5
--- /dev/null
+++ b/pkgs/applications/misc/nut/default.nix
@@ -0,0 +1,30 @@
+{stdenv, fetchurl, pkgconfig, neon, libusb, hal, openssl, udev}:
+
+stdenv.mkDerivation {
+  name = "nut-2.6.1";
+  src = fetchurl {
+    url = http://www.networkupstools.org/source/2.6/nut-2.6.1.tar.gz;
+    sha256 = "f5c46b856c0cf5b7f0e4b22d82b670af64cc98717a90eaac8723dd402a181c00";
+  };
+
+  buildInputs = [pkgconfig neon libusb hal openssl udev];
+
+  configureFlags = [
+    "--with-all"
+    "--without-snmp" # Until we have it ...
+    "--without-powerman" # Until we have it ...
+    "--without-cgi"
+  ];
+
+  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/;
+    platforms = platforms.linux;
+    maintainers = with stdenv.lib.maintainers [ pierron ];
+  };
+}