Age | Commit message (Collapse) | Author | Files | Lines |
|
nut: fix nut-scanner cross-compilation
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
When cross-compiling, libltdl is not found and that quietly disables
nut-scanner.
|
|
NUT 2.8.0 adds support for, and defaults to, libusb-1.0.
|
|
|
|
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.
|
|
nut: 2.7.4 -> 2.8.0
|
|
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
|
|
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
|
|
|
|
|
|
Compile was failing with: ISO C++17 does not allow dynamic exception specifications
Installed and tested on x86_64-linux.
|
|
there's no documentation for meta.repositories and its not widely used
|
|
|
|
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
|
|
|
|
|
|
instead of nss (it is upstream preference)
+ update homepage and src URLs to fetch over TLS
Close #67906
|
|
|
|
|
|
|
|
|
|
Also see #1936.
|
|
|
|
|
|
|
|
Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs"
sounds like an imperative rather than a noun phrase.
|
|
http://hydra.nixos.org/build/3473781
|
|
It's obsolete. There was only one package still using it (nut) but it
builds fine without it.
|
|
svn path=/nixpkgs/trunk/; revision=33478
|
|
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
|
|
svn path=/nixpkgs/trunk/; revision=27456
|
|
svn path=/nixpkgs/trunk/; revision=27448
|