Author: urkud
Date: Thu Mar 29 19:01:42 2012
New Revision: 33477
URL: https://nixos.org/websvn/nix/?rev=33477&sc=1

Log:
Add nut-2.6.3 without HAL support

I'm not a nut user, so I didn't touch the default nut expression, and set
meta.priority to 10.

Added:
   nixpkgs/trunk/pkgs/applications/misc/nut/2.6.3.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/applications/misc/nut/2.6.3.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/misc/nut/2.6.3.nix  Thu Mar 29 19:01:42 
2012        (r33477)
@@ -0,0 +1,34 @@
+{stdenv, fetchurl, pkgconfig, neon, libusb, openssl, udev, avahi}:
+
+stdenv.mkDerivation {
+  name = "nut-2.6.3";
+  src = fetchurl {
+    url = http://www.networkupstools.org/source/2.6/nut-2.6.3.tar.gz;
+    sha256 = "0fk3bcivv26kw1psxb6sykqp9n5w02j01s1idypzlci0kmr3p49l";
+  };
+
+  buildInputs = [pkgconfig neon libusb openssl udev avahi];
+
+  configureFlags = [
+    "--with-all"
+    "--without-snmp" # Until we have it ...
+    "--without-powerman" # Until we have it ...
+    "--without-cgi"
+    "--without-freeipmi"
+    "--without-ipmi"
+    "--without-hal"
+  ];
+
+  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 = with stdenv.lib.platforms; linux;
+    maintainers = with stdenv.lib.maintainers; [ pierron ];
+    priority = 10;
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Thu Mar 29 18:02:10 
2012        (r33476)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Thu Mar 29 19:01:42 
2012        (r33477)
@@ -8421,6 +8421,8 @@
 
   nut = callPackage ../applications/misc/nut { };
 
+  nut_2_6_3 = callPackage ../applications/misc/nut/2.6.3.nix { };
+
   disnix = callPackage ../tools/package-management/disnix { };
 
   disnix_activation_scripts = callPackage 
../tools/package-management/disnix/activation-scripts {
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to