This bumps the version of Plex to the new 1.2.x branch, available to the
public. During the 1.1.x branch, there were several more critical
binaries that were added to the distribution; we also have to patch
these new executables as well with the version bump, to ensure things
keep working.
Part of this patch was authored by Michael Francis - I simply bumped the
version.
Closes#20137.
Authored-by: Austin Seipp <aseipp@pobox.com>
Authored-by: Michael Francis <edude03@gmail.com>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
They both reference the toJSON builtin, so we get semantic identifiers
that express the intent of the generation.
Both should be able to map each nix value (minus functions) to the
destination config files.
Includes two invocation unit tests.
Many configurations are INI-style files. Attribute sets can be mapped
rather painlessly to the INI format.
This adds a function toINI inside a new generators library section.
Also, unit tests for the default values are provided.
This reverts commit e82c325bff0295ed4bbbd308fd4f99cdfd9ab515.
This package update breaks the `update-grub.pl` script:
updating GRUB 2 menu...
Btrfs did not return a path for the subvolume at /
error: unable to activate new configuration
This backwards-incompatible change is the culprit:
$ /nix/store/np25r3yzv2r41ji7v73j110inpj8lhn2-btrfs-progs-4.8.2/bin/btrfs subvol show /
/ is toplevel subvolume
vs.
$ /nix/store/h53vs13nqvjwahpl26a4s7ygqk9xw1mw-btrfs-progs-4.8.3/bin/btrfs subvol show /
/
Name: <FS_TREE>
UUID: -
Parent UUID: -
Received UUID: -
Creation time: -
Subvolume ID: 5
Generation: 6004631
Gen at creation: 0
Parent ID: 0
Top level ID: 0
Flags: -
Snapshot(s):
The reason to patch QEMU is that with latest Nix, tests like "printing"
or "misc" fail because they expect the store paths to be owned by uid 0
and gid 0.
Starting with NixOS/nix@5e51ffb1c2, Nix
builds inside of a new user namespace. Unfortunately this also means
that bind-mounted store paths that are part of the derivation's inputs
are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534.
This in turn causes things like sudo or cups to fail with errors about
insecure file permissions.
So in order to avoid that, let's make sure the VM always gets files
owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store
path.
In addition, this adds a virtualisation.qemu.program option so that we
can make sure that we only use the patched version if we're *really*
running NixOS VM tests (that is, whenever we have imported
test-instrumentation.nix).
Tested against the "misc" and "printing" tests.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>