diff options
| author | Sergei Trofimovich <slyich@gmail.com> | 2024-01-05 10:39:00 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyich@gmail.com> | 2024-01-05 10:39:00 +0000 |
| commit | 9c51fb0606181c9b6b35ccfd8bd8e368d388c154 (patch) | |
| tree | 6a2215758637a0f0d6d7adaa9d26d29669dad036 /pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos | |
| parent | 12f69cd4858b6853113ba918119400df8a9e2205 (diff) | |
nvidia-x11: add an assert that `useSettings` implies more than `libsOnly`
Without the change `primusLib.glvnd.settings` fails the eval without a
chance of recovery (uncatchable error):
$ NIXPKGS_ALLOW_UNFREE=1 nix build --no-link -f. primusLib.glvnd.settings
error:
… while calling the 'derivationStrict' builtin
at /derivation-internal.nix:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'nvidia-settings-545.29.06'
whose name attribute is located at pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'postPatch' of derivation 'nvidia-settings-545.29.06'
at pkgs/os-specific/linux/nvidia-x11/settings.nix:81:3:
80|
81| postPatch = lib.optionalString nvidia_x11.useProfiles ''
| ^
82| sed -i 's,/usr/share/nvidia/,${nvidia_x11.bin}/share/nvidia/,g' src/gtk+-2.x/ctkappprofile.c
error: attribute 'bin' missing
at pkgs/os-specific/linux/nvidia-x11/settings.nix:82:36:
81| postPatch = lib.optionalString nvidia_x11.useProfiles ''
82| sed -i 's,/usr/share/nvidia/,${nvidia_x11.bin}/share/nvidia/,g' src/gtk+-2.x/ctkappprofile.c
| ^
83| '';
After the change `builtins.tryEval` can catch errors thrown by `assert`.
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos')
0 files changed, 0 insertions, 0 deletions
