Commit Graph

358489 Commits

Author SHA1 Message Date
Robert Hensing
c90844aeb9 lib/tests/modules: Add test case for duplicate option error file location 2022-03-07 11:21:23 +01:00
Robert Hensing
e162ed8a14 lib/modules.nix: Move comment to the actual legacy code 2022-03-07 11:21:19 +01:00
Robert Hensing
db08290453 Revert "lib.modules: Remove redundant fixupOptionType in option injection"
This reverts commit 6b077c47ff.

Thanks Infinisil for discovering this problem:

> After a lot of trial and error, trying to prove why fixupOptionType should
> be used here or not, I figured it out: It's needed for the sake of file
> locations in error messages.
2022-03-07 10:59:03 +01:00
Robert Hensing
2050669922 lib.modules: Inline a private function
This should save about four calls per module.
2022-03-03 00:29:15 +01:00
Robert Hensing
28aeae2126 lib.modules: Default shorthandOnlyDefinesConfig to true when null 2022-03-03 00:29:14 +01:00
Robert Hensing
6b077c47ff lib.modules: Remove redundant fixupOptionType in option injection 2022-03-03 00:29:14 +01:00
Robert Hensing
8baea8b82c lib.modules: Make option injection work when shorthandOnlyDefinesConfig 2022-03-03 00:29:14 +01:00
Robert Hensing
11537c9c02 lib.modules: Improve option-is-prefix error message 2022-03-03 00:29:11 +01:00
Robert Hensing
81f342d1f3 lib.modules: Explain why options can only be merged into submodules 2022-03-03 00:28:35 +01:00
Robert Hensing
0c09eb343d lib.modules: Refactor option scanning slightly
This scans the options with fewer function calls, improving performance.

It also removes a let Env from the happy flow of the new logic.
2022-03-03 00:28:35 +01:00
Robert Hensing
58a8a48e9d lib.types.submodule: Remove redundant isSubmodule attr 2022-03-03 00:28:35 +01:00
Robert Hensing
d030e2109f lib.modules: Let module declare options directly in bare submodule
... where a bare submodule is an option that has a type like
`submoduleWith x`, as opposed to `attrsOf (submoduleWith x)`.

This makes migration unnecessary when introducing a freeform type
in an existing option tree.

Closes #146882
2022-03-03 00:28:35 +01:00
Fabian Affolter
33e8df0921
Merge pull request #162532 from fabaff/bump-soco
python3Packages.soco: 0.26.3 -> 0.26.4
2022-03-03 00:08:34 +01:00
Fabian Affolter
485517205b
Merge pull request #162541 from fabaff/bump-meshtastic
python3Packages.meshtastic: 1.2.87 -> 1.2.88
2022-03-03 00:07:57 +01:00
Lyndon Sanche
3f4b189485 alacritty: 0.10.0 -> 0.10.1 2022-03-02 14:48:37 -08:00
Bernardo Meurer
d9aa42326f
Merge pull request #162537 from lovesegfault/pulumi-update
pulumi-bin: 3.22.1 -> 3.25.1
2022-03-02 14:09:56 -08:00
Fabian Affolter
fe65279cb8 python3Packages.meshtastic: 1.2.87 -> 1.2.88 2022-03-02 22:53:12 +01:00
Fabian Affolter
b01649ffc0
Merge pull request #162510 from fabaff/bump-checkov
checkov: 2.0.908 -> 2.0.913
2022-03-02 22:47:06 +01:00
Bernardo Meurer
37143b9cd9
pulumi-bin: 3.22.1 -> 3.25.1 2022-03-02 13:45:12 -08:00
Artturi
40cc4ae294
Merge pull request #160159 from psydvl/discord-ptb 2022-03-02 23:38:25 +02:00
Michael Weiss
8db2ef0b8f
Merge pull request #161866 from r-ryantm/auto-update/signal-desktop
signal-desktop: 5.31.1 -> 5.33.0
2022-03-02 22:29:50 +01:00
zowoq
6979f4920d terraform: 1.1.6 -> 1.1.7
https://github.com/hashicorp/terraform/releases/tag/v1.1.7
2022-03-03 07:09:53 +10:00
Fabian Affolter
c27c301544
Merge pull request #160003 from fabaff/fix-flexget
flexget: override jsonschema
2022-03-02 22:04:20 +01:00
Fabian Affolter
63f536d770 python3Packages.soco: 0.26.3 -> 0.26.4 2022-03-02 21:59:36 +01:00
Robert Schütz
3e072546ea python3Packages.tifffile: remove old patch 2022-03-02 20:48:56 +00:00
Fabian Affolter
2c4ac5f402 flexget: relax dependency constrains 2022-03-02 21:40:49 +01:00
zowoq
6a28e4887c nixos/release: disable nfs3.simple
follow up from 5682853027
2022-03-03 06:34:59 +10:00
Jonathan Ringer
4550f15784 wpsoffice: don't use nativeOnly for steam 2022-03-02 12:25:45 -08:00
Jonathan Ringer
5f91781b55 treewide: remove steam-run-native 2022-03-02 12:25:45 -08:00
Jonathan Ringer
ee5fab452b steam-run-native: deprecate 2022-03-02 12:25:45 -08:00
Jonathan Ringer
fae860361e steam: remove nativeOnly options 2022-03-02 12:25:45 -08:00
Renaud
671a068a01
Remove F-PROT package and service module (EoL) (#160372) 2022-03-02 21:51:47 +02:00
Robert Schütz
6fc2b4b5e9 python3Packages.twitchapi: init at 2.5.2 2022-03-02 11:46:58 -08:00
aszlig
7286be7e81 nixos/systemd-confinement: Allow shipped unit file
In issue #157787 @martined wrote:

  Trying to use confinement on packages providing their systemd units
  with systemd.packages, for example mpd, fails with the following
  error:

  system-units> ln: failed to create symbolic link
  '/nix/store/...-system-units/mpd.service': File exists

  This is because systemd-confinement and mpd both provide a mpd.service
  file through systemd.packages. (mpd got updated that way recently to
  use upstream's service file)

To address this, we now place the unit file containing the bind-mounted
paths of the Nix closure into a drop-in directory instead of using the
name of a unit file directly.

This does come with the implication that the options set in the drop-in
directory won't apply if the main unit file is missing. In practice
however this should not happen for two reasons:

  * The systemd-confinement module already sets additional options via
    systemd.services and thus we should get a main unit file
  * In the unlikely event that we don't get a main unit file regardless
    of the previous point, the unit would be a no-op even if the options
    of the drop-in directory would apply

Another thing to consider is the order in which those options are
merged, since systemd loads the files from the drop-in directory in
alphabetical order. So given that we have confinement.conf and
overrides.conf, the confinement options are loaded before the NixOS
overrides.

Since we're only setting the BindReadOnlyPaths option, the order isn't
that important since all those paths are merged anyway and we still
don't lose the ability to reset the option since overrides.conf comes
afterwards.

Fixes: https://github.com/NixOS/nixpkgs/issues/157787
Signed-off-by: aszlig <aszlig@nix.build>
2022-03-02 11:42:44 -08:00
Samuel Ainsworth
2e3231cd6b python3Packages.wandb: 0.12.10 -> 0.12.11 2022-03-02 11:41:33 -08:00
Scriptkiddi
98213c5eaf python3Packages.pyprecice: init at 2.3.0.1 2022-03-02 11:40:44 -08:00
Fabian Affolter
6c8c2339ca python3Packages.pyskyqremote: remove stale input 2022-03-02 11:31:45 -08:00
Fabian Affolter
b9f5f4fe6f python3Packages.pyskyqremote: 0.3.2 -> 0.3.5 2022-03-02 11:31:45 -08:00
R. Ryantm
e0fbb0a974 python310Packages.PyChromecast: 10.2.3 -> 10.3.0 2022-03-02 11:29:34 -08:00
Fabian Affolter
3116a1e430 python3Packages.adafruit-io: init at 2.6.0 2022-03-02 11:29:16 -08:00
Fabian Affolter
0da44bd46d python3Packages.pycfmodel: 0.16.3 -> 0.17.0 2022-03-02 11:29:06 -08:00
R. Ryantm
d33740c674 python310Packages.weasyprint: 54.1 -> 54.2 2022-03-02 11:18:21 -08:00
Fabian Affolter
7e814f1b74 python3Packages.adafruit-platformdetect: 3.20.0 -> 3.20.1 2022-03-02 11:11:11 -08:00
Renaud
53d7e8f391
klayout: 0.27.3 -> 0.27.8
(#161675)
2022-03-02 20:08:18 +01:00
Samuel Ainsworth
78892fe8cf python3Packages.torch-tb-profiler: init at 0.3.1 2022-03-02 11:07:51 -08:00
Renaud
6c2fe76f6f
Merge pull request #161850 from r-ryantm/auto-update/octant
octant: 0.25.0 -> 0.25.1
2022-03-02 20:05:44 +01:00
Lassulus
1d8b13942b
Merge pull request #161504 from moinessim/writefsharp
writers: Add writeFSharp and makeFSharpWriter functions to writers
2022-03-02 20:05:18 +01:00
Felix Buehler
2e5f265fdb emacs-nox: remove appendToName to have a consistent package name for repology 2022-03-02 11:00:53 -08:00
Silvan Mosberger
6bcfd61109
Merge pull request #162283 from Infinisil/functionTo.description
lib/types: Fix functionTo description
2022-03-02 19:42:48 +01:00
Jonathan Ringer
a0148164d6 electrum-grs: fix src 2022-03-02 10:20:57 -08:00