The original `nexus` derivation required `/run/sonatype-work/nexus3`
which explicitly depended on the NixOS path structure.
This would break `nexus` for everyone using `nixpkgs` on a non-NixOS
system, additionally the module never created `/run/sonatype-work`, so
the systemd unit created in `services.nexus` fails as well. The issue
wasn't actively known as the `nixos/nexus` test wasn't registered in
Hydra (see #40257).
This patch contains the following changes:
* Adds `tests.nexus` to `release.nix` to run the test on Hydra.
* Makes JVM parameters configurable: by default all JVM options were located
in `result/bin/nexus.vmoptions` which made it quite hard to patch
these parameters. Now it's possible to override all parameters by
running `VM_OPTS_FILE=custom-nexus.vmoptions ./result/bin/nexus run`
(after patching the `nexus` shell script), additionally it's possible
to override these parameters with `services.nexus.vmoptions`.
* Bumped Nexus from 3.5.1 to 3.11.0
* Run the `nexus` test on Hydra with `callTest` in `nixos/release.nix`,
furthermore the test checks if the UI is available on the specified
port.
* Added myself as maintainer for the NixOS test and the package to have
some more people in case of further breakage.
* Added sufficient disk space to the `nexus` test, otherwise the service
fails with the following errors:
```
com.orientechnologies.orient.core.exception.ODatabaseException: Cannot create database 'accesslog'
com.orientechnologies.orient.core.exception.OLowDiskSpaceException: Error occurred while executing
a write operation to database 'accesslog' due to limited free space on the disk (242 MB). The database
is now working in read-only mode. Please close the database (or stop OrientDB), make room on your hard
drive and then reopen the database. The minimal required space is 256 MB. Required space is now set to
256MB (you can change it by setting parameter storage.diskCache.diskFreeSpaceLimit) .
```
/cc @ironpinguin @xeji
It turns out none of this stuff is needed. The docs aren't evenly built
properly anyways so the build trivially succeeds either way, due to what
looks like upstream misunderstanding automake. If I try to build the
docs manually in a cross shell (before and after this change), there's a
make rule error such that some HTML files aren't even attempted to be
built and then a copy fails.
Even if this was all fixed, these been a good number of cross fixes
upstream getting them to use CC_FOR_BUILD and other good stuff, so I
doubt such hacks would be needed.
Progress towards #40531 and #33302.
Some of the new tests need the `nix` executable on `PATH`.
One also needs `hpack`, but we really don’t want to embiggen (heh) the closure
because of that.
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/keepass/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1/bin/.keepass-wrapped -h’ got 0 exit code
- ran ‘/nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1/bin/.keepass-wrapped --help’ got 0 exit code
- ran ‘/nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1/bin/.keepass-wrapped help’ got 0 exit code
- ran ‘/nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1/bin/keepass -h’ got 0 exit code
- ran ‘/nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1/bin/keepass --help’ got 0 exit code
- ran ‘/nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1/bin/keepass help’ got 0 exit code
- found 2.39.1 with grep in /nix/store/qgy0xnizyq301xhnqrklr75b59y6k7ni-keepass-2.39.1
- directory tree listing: https://gist.github.com/78c15efa16b6307a93c5f5336a99df32
- du listing: https://gist.github.com/c18c593ba095ab336bc0102838e529ca
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/feh/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/n3q1mfdip3l49wx7dh293pwrxqhlrqgd-feh-2.26.1/bin/feh -h’ got 0 exit code
- ran ‘/nix/store/n3q1mfdip3l49wx7dh293pwrxqhlrqgd-feh-2.26.1/bin/feh --help’ got 0 exit code
- ran ‘/nix/store/n3q1mfdip3l49wx7dh293pwrxqhlrqgd-feh-2.26.1/bin/.feh-wrapped -h’ got 0 exit code
- ran ‘/nix/store/n3q1mfdip3l49wx7dh293pwrxqhlrqgd-feh-2.26.1/bin/.feh-wrapped --help’ got 0 exit code
- found 2.26.1 with grep in /nix/store/n3q1mfdip3l49wx7dh293pwrxqhlrqgd-feh-2.26.1
- directory tree listing: https://gist.github.com/1e8258220f00de69ea28c57fffe352aa
- du listing: https://gist.github.com/65e35fd7395eca9058de10721f96b7d3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/xonsh/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped -h’ got 0 exit code
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped --help’ got 0 exit code
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped help’ got 0 exit code
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped -V’ and found version 0.6.3
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped --version’ and found version 0.6.3
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh -h’ got 0 exit code
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh --help’ got 0 exit code
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh help’ got 0 exit code
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh -V’ and found version 0.6.3
- ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh --version’ and found version 0.6.3
- found 0.6.3 with grep in /nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3
- directory tree listing: https://gist.github.com/c4698aa16268961773b245a4b849a9f0
- du listing: https://gist.github.com/db7c65ccf5f4bf3c4457401c300d1862