This version was last touched in February 2022, as opposed to the
version we were using before, which hasn't been touched since January
2019.
I've reviewed the diff, and it all seems reasonable. We need a newer
version of this package, because hannesha's version doesn't build with
Linux 5.18.
Introduce new boolean arguments "pamSupport" and "capabilitiesSupport" that
control whether "pam" and "libcap" are compiled in. These flags are true by
default, so this commit does not cause any rebuilds.
Without the change build on upstream gcc-10 fals as:
ld: ipxfrm.o:(.bss+0x0): multiple definition of `filter'; ipmroute.o:(.bss+0x0): first defined here
ld: xfrm_monitor.o:(.bss+0x0): multiple definition of `listen_all_nsid'; ipmonitor.o:(.bss+0x0): first defined here
* dockutil 2.0.5 -> 3.0.2
Implement required changes to dockutil to handle newer version of package: 3.0.2
* Add gzip to inputs, remove pbzx as it is unused
* Utilise recommended changes reducing build dependencies and following darwin patterns more closely.
Note; this changeset does maintain the symlinking of $out/usr/local/bin in order to resolve an issue with crashing.
* Apply format/lint with nixfmt
Without the change ubuild fails on gcc-10 as:
ld: impl/light-razer.o:/build/source/src/helpers.h:24: multiple definition of
`light_loglevel'; light-main.o:/build/source/src/helpers.h:24: first defined here
Account for all `with*` options causing their respective unit files to
not be built, just like the current code `withCryptsetup` already does.
This fixes build errors like the following:
```
missing /nix/store/5fafsfms64fn3ywv274ky7arhm9yq2if-systemd-250.4/example/systemd/system/systemd-importd.service
error: builder for '/nix/store/67rdli5q5akzwmqgf8q0a1yp76jgr0px-system-units.drv' failed with exit code 1
```
Found by using a customised systemd package as follows:
```
systemd.package = pkgs.systemd-small;
nixpkgs.config.packageOverrides = pkgs: {
"systemd-small" = pkgs.systemd.override {
withImportd = false;
withMachined = false;
...
};
};
```