about summary refs log tree commit diff
path: root/pkgs/applications/misc/nut
AgeCommit message (Collapse)AuthorFilesLines
2024-04-04Merge pull request #253012 from Majiir/fix-nut-scanner-crossRick van Schijndel1-2/+2
nut: fix nut-scanner cross-compilation
2023-12-10nixos/ups: install udev rules for nutIvan Petkov1-0/+3
This is necessary to allow the usbhid driver to successfully send commands to the attached UPS. It is possible to work around this by explicitly using setting the user flag (e.g. `upsdrvctl -u root shutdown`), though it is much simpler to install the udev rules rather than patch things further.
2023-12-10nut: fix systemd unit patchingIvan Petkov1-2/+7
The NixOS module will create a file in /etc/nut/nut.conf (not in /etc/nut.conf) so the systemd units should be patched accordingly.
2023-12-10nut: patch nutshutdown to set a default for NUT_CONFPATHIvan Petkov2-0/+17
The way we build the package results in the binaries being hardcoded to look for $out/etc/ups.conf instead of /etc/nut/ups.conf (where the module places the file). This results in `upsdrvctl` failing to dispatch shutdown commands (since it cannot find the configuration) and prevents a primary monitor from cutting power to the appropriate UPS. Note that we cannot use `--sysconfdir=/etc/nut` as a configure flag since that results in the install phase trying to install directly into /etc/nut which predictably fails in the sandbox.
2023-09-23nut: strip debug symbols from cgi-bin/Sergei Trofimovich1-0/+4
Noticed by Majiir Paktu as a `gcc` development bits in the closure. The change remove 10 dependencies worth of 150MB from the closure: Before: $ nix path-info -rsSh ./result-before | nl | tail -n1 144 /nix/store/b0jsf912bix056gg3p1nz8lh3yasm82j-nut-2.8.0 10.0M 567.7M After: $ nix path-info -rsSh ./result | nl | tail -n1 134 /nix/store/gniv2fpm7qxdiszqwhz81iyvxpc62n52-nut-2.8.0 9.7M 343.8M
2023-09-02nut: fix nut-scanner cross-compilationMajiir Paktu1-2/+2
When cross-compiling, libltdl is not found and that quietly disables nut-scanner.
2023-07-09nut: build with libusb 1.0Dominik Honnef1-3/+3
NUT 2.8.0 adds support for, and defaults to, libusb-1.0.
2023-07-09nut: add support for SNMP and CGIDominik Honnef2-4/+6
2023-07-09nut: actually update to 2.8.0Dominik Honnef2-20/+46
The previous attempt at updating nut forgot to change the fod hash for the source code. Actually updating to 2.8.0 required some changes to dependencies and the patch for nut-scanner. We no longer need --without-hal because HAL support was removed as far back as verison 2.7.2.
2023-03-17Merge pull request #215890 from markuskowa/upd-nutmarkuskowa1-2/+2
nut: 2.7.4 -> 2.8.0
2023-02-22treewide: move NIX_CFLAGS_COMPILE to the env attrsetArtturin1-1/+1
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
2023-02-22treewide: use toString on list NIX_CFLAGS_COMPILEArtturin1-1/+1
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-12nut: 2.7.4 -> 2.8.0Markus Kowalewski1-2/+2
2022-11-04nut: fix search modes not finding dynamic libsMajiir Paktu2-6/+21
2022-04-25nut: fix compile errorJeff Hutchison1-0/+2
Compile was failing with: ISO C++17 does not allow dynamic exception specifications Installed and tested on x86_64-linux.
2022-03-24treewide: remove meta.repositoriesArtturin1-1/+0
there's no documentation for meta.repositories and its not widely used
2021-01-16pkgs/applications: pkgconfig -> pkg-configBen Siraphob1-2/+2
2021-01-11treewide: with stdenv.lib; in meta -> with lib;Profpatsch1-2/+2
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2020-04-28libusb-compat-0_1: rename from libusbJan Tojnar1-3/+3
2020-04-10treewide: Per RFC45, remove all unquoted URLsMichael Reilly1-2/+2
2019-11-24nut: build with openssl 1.1.xRenaud1-7/+16
instead of nss (it is upstream preference) + update homepage and src URLs to fetch over TLS Close #67906
2019-09-13nut: fix broken buildAaron Andersen1-2/+2
2018-09-01nut: add licensesMarkus Kowalewski1-3/+4
2017-04-23nut: 2.7.1 -> 2.7.4Tad Fisher1-3/+3
2016-01-24treewide: Mass replace 'libusb}/lib' to refer the 'out' outputTuomas Tynkkynen1-1/+1
2014-03-13put systemd unit dirs on the right placeVladimír Čunát1-1/+1
Also see #1936.
2013-12-21nut: update from 2.6.5 to 2.7.1; fix nut-scannerEvgeny Egorochkin1-5/+13
2013-07-19nut: adding libtool enables nut-scannerLluís Batlle i Rossell1-2/+3
2013-01-22Merge remote-tracking branch 'origin/master' into stdenv-updatesEelco Dolstra2-46/+20
2012-12-28Rename buildNativeInputs -> nativeBuildInputsEelco Dolstra1-1/+1
Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs" sounds like an imperative rather than a noun phrase.
2012-12-12nut: Update to 2.6.5 and fix building against systemdEelco Dolstra2-46/+20
http://hydra.nixos.org/build/3473781
2012-09-28Remove HALEelco Dolstra1-2/+3
It's obsolete. There was only one package still using it (nut) but it builds fine without it.
2012-03-29nut-2.6.3: add freeipmi supportYury G. Kudryashov1-4/+4
svn path=/nixpkgs/trunk/; revision=33478
2012-03-29Add nut-2.6.3 without HAL supportYury G. Kudryashov1-0/+34
I'm not a nut user, so I didn't touch the default nut expression, and set meta.priority to 10. svn path=/nixpkgs/trunk/; revision=33477
2011-06-14Fix some semicolons.Karn Kallio1-2/+2
svn path=/nixpkgs/trunk/; revision=27456
2011-06-14Add NUT package.Nicolas Pierron1-0/+30
svn path=/nixpkgs/trunk/; revision=27448