Commit graph

368771 commits

Author SHA1 Message Date
Maximilian Bosch 7203788068
lib/generators: withRecursion: don't break attr-sets with special attrs
Closes #168327

The issue reported there can be demonstrated with the following
expression:

    → nix-instantiate --eval -E "with import ./. {}; pkgs.lib.options.showDefs [ { file = \"foo\"; value = pkgs.rust.packages.stable.buildRustPackages; } ]"
    error: attempt to call something which is not a function but a string

           at /home/ma27/Projects/nixpkgs/lib/trivial.nix:442:35:

              441|   isFunction = f: builtins.isFunction f ||
              442|     (f ? __functor && isFunction (f.__functor f));
                 |                                   ^
              443|

Basically, if a `__functor` is in an attribute-set at depth-limit,
`__functor` will be set to `"<unevaluated>"`. This however breaks
`lib.isFunction` which checks for a `__functor` by invoking `__functor`
with `f` itself.

The same issue - "magic" attributes being shadowed by `withRecursion` -
also applies to others such as
`__pretty`/`__functionArgs`/`__toString`.

Since these attributes have a low-risk of causing a stack overflow
(because these are flat attr-sets or even functions), ignoring them in
`withRecursion` seems like a valid solution.
2022-04-12 12:34:23 +02:00
Artturi dbe672e4a7
Merge pull request #167306 from r-ryantm/auto-update/ocenaudio 2022-04-11 14:37:46 +03:00
Artturi 0cfba90938
Merge pull request #167040 from r-ryantm/auto-update/quick-lint-js 2022-04-11 14:36:00 +03:00
Artturi 8d154b4b2d
Merge pull request #164256 from r-ryantm/auto-update/soju 2022-04-11 14:35:32 +03:00
Artturi ef85e00ac4
Merge pull request #168120 from r-ryantm/auto-update/appgate-sdp 2022-04-11 14:35:08 +03:00
Artturi 38651eefb1
Merge pull request #163488 from r-ryantm/auto-update/process-exporter 2022-04-11 14:33:49 +03:00
Artturi 33fbdc22bc
Merge pull request #168029 from r-ryantm/auto-update/cudatext 2022-04-11 14:32:36 +03:00
Artturi 1e46789d9e
Merge pull request #167817 from r-ryantm/auto-update/ktlint 2022-04-11 14:31:43 +03:00
Sandro 224fab0944
Merge pull request #168252 from SuperSandro2000/wezterm 2022-04-11 13:31:29 +02:00
Artturi 323d703688
Merge pull request #167948 from andrevmatos/kernel/zen 2022-04-11 14:27:54 +03:00
Sandro 9a529dd023
Merge pull request #165969 from SuperSandro2000/intel-media-driver 2022-04-11 13:27:43 +02:00
R. RyanTM 553189b374
gopls: 0.8.1 -> 0.8.2 (#168261) 2022-04-11 13:09:19 +02:00
Fabian Affolter c8bac61280
Merge pull request #168167 from fabaff/bump-feroxbuster
feroxbuster: 2.6.2 -> 2.6.4
2022-04-11 13:06:57 +02:00
Fabian Affolter 7ce165730c
Merge pull request #168172 from dotlambda/pytibber-0.22.3
python3Packages.pytibber: 0.22.1 -> 0.22.3
2022-04-11 13:06:23 +02:00
Fabian Affolter 8d8bf082f8
Merge pull request #168200 from r-ryantm/auto-update/python3.10-sumo
python310Packages.sumo: 2.2.5 -> 2.3.0
2022-04-11 13:04:23 +02:00
Fabian Affolter 00ff3b7e6d
Merge pull request #168224 from r-ryantm/auto-update/checkip
checkip: 0.19.0 -> 0.24.5
2022-04-11 13:03:58 +02:00
Fabian Affolter 42f976f25b
Merge pull request #168219 from r-ryantm/auto-update/python3.10-env-canada
python310Packages.env-canada: 0.5.22 -> 0.5.23
2022-04-11 13:03:35 +02:00
Fabian Affolter bdb3d79628
Merge pull request #168240 from r-ryantm/auto-update/python3.10-editables
python310Packages.editables: 0.2 -> 0.3
2022-04-11 13:03:04 +02:00
piegames 3b396d7f8b
Merge pull request #167768: gnomeExtensions: refactor update script 2022-04-11 12:54:41 +02:00
Adam Joseph 33772708c6
s2n-tls: disable unsupported feature (post-quantum cryptography) on mips64 (#161163)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-04-11 12:33:51 +02:00
Damien Cassou 8b319c06f2
Merge pull request #168241 from DamienCassou/difftastic-0.26.3 2022-04-11 12:30:53 +02:00
Sandro 428f41b7b1
Merge pull request #166271 from SuperSamus/joystickwake 2022-04-11 12:21:43 +02:00
Sandro 53e30a679d
Merge pull request #165322 from willcohen/geos-3.10 2022-04-11 11:45:30 +02:00
markuskowa c2a8099158
Merge pull request #168249 from sheepforce/pcmsolver
PCMSolver Glibc Compatibility
2022-04-11 11:31:32 +02:00
Robert Hensing 29365a62d6
Merge pull request #166415 from tfc/jsoncpp-static
jsoncpp: enable static and USING_SECURE_MEMORY
2022-04-11 11:11:53 +02:00
Sandro a48aeae76a
Merge pull request #168174 from azahi/werf 2022-04-11 11:01:01 +02:00
Sandro 4f7514e18c
Merge pull request #167675 from superherointj/package-powerline-go-enable-tests 2022-04-11 10:58:34 +02:00
Sandro 160258dee9
Merge pull request #167849 from barinov274/tropics 2022-04-11 10:55:51 +02:00
Sandro e40020675e
Merge pull request #156831 from sir4ur0n/sir4ur0n/addODBCRedshiftDriver 2022-04-11 10:54:16 +02:00
Sandro Jäckel 0fc3250594
wezterm: 20220319-142410-0fcdea07 -> 20220408-101518-b908e2dd 2022-04-11 10:49:00 +02:00
Robert Hensing 4d464cf889
Merge pull request #168030 from samhug/qemu-vm
nixos/qemu-vm: sanitize generated environment variable name
2022-04-11 10:45:32 +02:00
Phillip Seeber 2c1e621741 pcmsolver: replace python2 by python3 as build dependency 2022-04-11 10:39:41 +02:00
Phillip Seeber a82378a76a pcmsolver: fix glibc >= 2.34 compatibility
related to https://github.com/PCMSolver/pcmsolver/issues/197. This is a temporary workaround until we have a proper fix from upstream
2022-04-11 10:38:44 +02:00
Artturi 7bf08c6b29
Merge pull request #162811 from JakDar/brave-wayland 2022-04-11 11:28:59 +03:00
Bobby Rong 4089616143
Merge pull request #168235 from r-ryantm/auto-update/dnsproxy
dnsproxy: 0.42.0 -> 0.42.1
2022-04-11 16:09:21 +08:00
Damien Cassou 68a880ecb1
difftastic: 0.26.0 -> 0.26.3 2022-04-11 09:37:52 +02:00
Jörg Thalheim 28ce5bc73f
Merge pull request #168163 from r-ryantm/auto-update/fio
fio: 3.29 -> 3.30
2022-04-11 08:36:58 +01:00
R. Ryantm adc727d6f8 python310Packages.editables: 0.2 -> 0.3 2022-04-11 07:32:30 +00:00
Artturi a1e37655a7
Merge pull request #168236 from Artturin/lapceupdate 2022-04-11 10:19:27 +03:00
Bernardo Meurer 1693e55bd2
Merge pull request #168065 from teutat3s/bump/nix-direnv
nix-direnv: 1.6.1 -> 2.0.0
2022-04-10 23:57:38 -07:00
Bernardo Meurer f4e8ba5316
Merge pull request #168075 from samuela/upkeep-bot/plexamp-4.2.0-1649549498
plexamp: 4.1.0 -> 4.2.0
2022-04-10 23:56:58 -07:00
Bernardo Meurer e1c1169b40
Merge pull request #168184 from DeeUnderscore/update/hugo-0.96.0
hugo: 0.92.2 -> 0.96.0
2022-04-10 23:55:40 -07:00
barinov274 e5ca3bbc0a unigine-tropics: init at 1.3 2022-04-11 16:35:41 +10:00
Artturin 17867e6fbc lapce: 0.0.10 -> 0.0.12 2022-04-11 09:29:25 +03:00
Marek Fajkus 89b195e922
Merge pull request #166874 from svalaskevicius/bloop-fix-hashes
bloop: fix hashes for the v1.4.13
2022-04-11 08:27:36 +02:00
R. Ryantm e37855ba15 dnsproxy: 0.42.0 -> 0.42.1 2022-04-11 06:22:43 +00:00
Julien Debon 6bfb28f90d unixODBCDrivers.redshift: init at 1.4.49.1000
Add Amazon Redshift ODBC driver.

As Amazon does not provide sources, we extract the Debian package and manually patchelf.
2022-04-11 07:58:17 +02:00
Artturi 5af2704214
Merge pull request #168177 from sir4ur0n/addSir4ur0nToMaintainers
Add sir4ur0n to maintainers
2022-04-11 08:37:42 +03:00
Artturi 69de768497
Merge pull request #168201 from r-ryantm/auto-update/alejandra
alejandra: 1.1.0 -> 1.2.0
2022-04-11 08:25:38 +03:00
Artturi 8af24a3a03
Merge pull request #168226 from r-ryantm/auto-update/chezmoi
chezmoi: 2.15.0 -> 2.15.1
2022-04-11 08:21:22 +03:00