Commit graph

266842 commits

Author SHA1 Message Date
sternenseemann d9a7d03da8 lib/generators: fix toPretty throwing on (partially applied) builtins
An high level example case of this problem occuring can be found below:

nix-repl> lib.generators.toPretty {} (lib.concatStringsSep "\n")
error: 'functionArgs' requires a function, at /home/lukas/src/nix/nixpkgs/lib/trivial.nix:334:42

However this does not happen on other partially applied functions:

nix-repl> lib.generators.toPretty {} (lib.concatMapStringsSep "\n")
"<function>"

The issue, as it turns out is that while builtins are functions,
builtins.functionArgs throws if is passed a builtin or a partially
applied builtin:

nix-repl> lib.generators.toPretty {} builtins.toString
error: 'functionArgs' requires a function, at /home/lukas/src/nix/nixpkgs/lib/trivial.nix:334:42

nix-repl> lib.generators.toPretty {} (builtins.foldl' (a: b: a + b))
error: 'functionArgs' requires a function, at /home/lukas/src/nix/nixpkgs/lib/trivial.nix:334:42

I'm pretty sure this qualifies as a nix bug and should be filed
accordingly, but we can work around it in lib.generators.toPretty by
using tryEval and falling back to {} which functionArgs _should_ return
for builtins.

The nix behavior is inconsistent to say the least:

nix-repl> builtins.functionArgs builtins.functionArgs
error: 'functionArgs' requires a function, at (string):1:1

nix-repl> builtins.typeOf builtins.functionArgs
"lambda"

builtins.functionArgs (a: 1 + a)
{ }

nix-repl> builtins.typeOf (a: 1 + a)
"lambda"
2021-01-31 15:35:17 +01:00
Milan 552d718287
qutebrowser: 1.14.1 -> 2.0.1 (#108272) 2021-01-29 19:04:17 +01:00
Florian Klink dfb2bc857b nixos/acme: fix docs 2021-01-29 18:56:28 +01:00
Svein Ove Aas c9f8884592 nVidia: Support dynamic (fine-grained) power management 2021-01-29 12:55:51 -05:00
Svein Ove Aas 6021ab7820 nvidia: Add AMD APU option for Prime 2021-01-29 12:55:51 -05:00
adisbladis d25c7c1450
Merge pull request #111033 from szlend/fix-oci-containers-service-depends
nixos/oci-containers: Remove dependency on system.path
2021-01-29 18:35:49 +01:00
Simon Žlender ede24160fc nixos/oci-containers: Remove dep on system.path 2021-01-29 18:29:07 +01:00
Michael Weiss 2c0b72cae5
cargo-c: 0.7.1 -> 0.7.2 2021-01-29 18:12:47 +01:00
John Ericson 0a822bcce4
Merge pull request #111145 from aforemny/armhf-gcc
gcc: fix armhf target
2021-01-29 11:58:14 -05:00
Tim Steinbach 40463bfd03
jenkins: 2.263.2 → 2.263.3 2021-01-29 11:57:00 -05:00
Tim Steinbach c78daf764b
awscli: 1.18.221 -> 1.18.222 2021-01-29 11:56:59 -05:00
Tim Steinbach 999db28127
python3Packages.boto3: 1.16.61 -> 1.16.62 2021-01-29 11:56:58 -05:00
Tim Steinbach b7882e26df
python3Packages.botocore: 1.19.61 -> 1.19.62 2021-01-29 11:56:54 -05:00
Martin Weinelt 398a8767e4
Merge pull request #111143 from r-ryantm/auto-update/bpytop
bpytop: 1.0.59 -> 1.0.61
2021-01-29 17:53:50 +01:00
Sandro 532dd98cdb
Merge pull request #111155 from helsinki-systems/hostapd
nixos/hostapd: add interface type
2021-01-29 17:47:39 +01:00
Sandro 32fb3b7bc3
Merge pull request #111154 from helsinki-systems/hoogle
nixos/hoogle: add type
2021-01-29 17:47:26 +01:00
Matthew Bauer 6307346fd9
Merge pull request #98858 from sorki/cross/rpifw
raspberrypi-builder: allow passing firmware package as argument
2021-01-29 10:21:32 -06:00
Florian Klink 82102fc37d
Merge pull request #100356 from m1cr0man/docsupdate
nixos/acme: Docs, explain how to set permissions
2021-01-29 17:16:06 +01:00
Michael Weiss c9e9792dbf
inxi: 3.2.02-2 -> 3.3.00-1 2021-01-29 17:11:40 +01:00
Martin Weinelt 0a9982fb3e
Merge pull request #110370 from fabaff/plugwise
python3Packages.plugwise: init at 0.8.5
2021-01-29 17:08:54 +01:00
Martin Weinelt 90a9b71b73
Merge pull request #109629 from fabaff/regenmaschine
python3Packages.regenmaschine: init at 3.1.1
2021-01-29 16:47:13 +01:00
Ryan Mulligan a6507da440
Merge pull request #111124 from r-ryantm/auto-update/mednaffe
mednaffe: 0.8.8 -> 0.9.0
2021-01-29 07:43:53 -08:00
Martin Weinelt b1280aaa3e
Merge pull request #109482 from fabaff/aiocoap
python3Packages.aiocoap: init at 0.4b3
2021-01-29 16:39:35 +01:00
WORLDofPEACE 3eae73d862
Merge pull request #97618 from lf-/fix-bad-caddy-configs
nixos/caddy: fix overwriting of tls settings in config
2021-01-29 10:08:46 -05:00
Anderson Torres 79256619ce
Merge pull request #108294 from GovanifY/silent-boot
boot.initrd: add verbose option
2021-01-29 11:56:20 -03:00
R. RyanTM 54f8b31971
ayatana-ido: 0.8.1 -> 0.8.2 (#111147) 2021-01-29 14:14:08 +00:00
adisbladis fb38ac0e97
Merge pull request #110626 from talyz/updater-emacs-fix
updater-emacs: Add missing `pkgs` in path to `withPackages`
2021-01-29 15:00:46 +01:00
Ryan Mulligan cc21e592d5
Merge pull request #109898 from r-ryantm/auto-update/acme-client
acme-client: 1.0.1 -> 1.1.0
2021-01-29 05:48:02 -08:00
Sandro 73341706c0
Merge pull request #111118 from marsam/update-postgis
postgresqlPackages.postgis: 3.1.0 -> 3.1.1
2021-01-29 14:45:06 +01:00
Sandro 29e649be21
Merge pull request #111116 from marsam/update-scheme-manpages
scheme-manpages: 2020-08-14 -> 2021-01-17
2021-01-29 14:39:48 +01:00
Frederik Rietdijk b45d645405
Merge pull request #110569 from NixOS/staging-next
Staging next
2021-01-29 13:49:45 +01:00
github-actions[bot] 5953c2bc94
Merge master into staging-next 2021-01-29 12:23:53 +00:00
Scriptkiddi 679e369ba2
nixos/hostapd: add interface type 2021-01-29 13:04:50 +01:00
Scriptkiddi 3f41fbc8e8
nixos/hoogle: add type 2021-01-29 13:03:37 +01:00
Oleksii Filonenko e32327fde7
Merge pull request #111149 from r-ryantm/auto-update/cargo-cache
cargo-cache: 0.6.0 -> 0.6.1
2021-01-29 14:03:26 +02:00
Stig de9aef7686
Merge pull request #111024 from dywedir/exiftool
perlPackages.ImageExifTool: 12.00 -> 12.16
2021-01-29 12:51:59 +01:00
R. RyanTM 638791d7ba cargo-cache: 0.6.0 -> 0.6.1 2021-01-29 11:22:53 +00:00
Jörg Thalheim dd9f73e7d3
Merge pull request #111123 from lasers/deja-dup-dconf
deja-dup: add dconf
2021-01-29 10:53:13 +00:00
Jörg Thalheim be580db895
Merge pull request #111088 from r-ryantm/auto-update/ffuf
ffuf: 1.1.0 -> 1.2.1
2021-01-29 10:47:56 +00:00
R. RyanTM d38b3b2e49 bpytop: 1.0.59 -> 1.0.61 2021-01-29 10:40:16 +00:00
Sandro da1f7da30d
Merge pull request #111107 from mweinelt/gobby
gobby5: unstable-2018-04-03 -> unstable-2020-12-29
2021-01-29 11:30:53 +01:00
Gabriel Ebner b7fe801cce
Merge pull request #111117 from r-ryantm/auto-update/lean
lean: 3.25.0 -> 3.26.0
2021-01-29 11:04:43 +01:00
Alexander Foremny 75e2f7ce63 gcc: fix armhf target
Fixes #96921
2021-01-29 10:48:23 +01:00
Daniël de Kok 5fb5d024d7
Merge pull request #111128 from danieldk/somajo-2.1.2
python3Packages.somajo: 2.1.1 -> 2.1.2
2021-01-29 10:36:32 +01:00
Jörg Thalheim 6e8964256c
Merge pull request #110724 from ilian/fix/nvidia-rt 2021-01-29 09:28:39 +00:00
Gabriel Gonzalez 80f6769ebc
Don't createHome for the hydra user (#110722)
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2021-01-29 09:22:49 +00:00
Florian Klink 7944650bb7
Merge pull request #111119 from r-ryantm/auto-update/lego
lego: 4.1.3 -> 4.2.0
2021-01-29 10:05:13 +01:00
Sandro 1f730f2918
Merge pull request #111126 from helsinki-systems/gogoclient
nixos/gogoclient: add types
2021-01-29 09:52:35 +01:00
Daniël de Kok 49232e8757 python3Packages.somajo: update license to gpl3Plus 2021-01-29 09:49:20 +01:00
Sandro 94cafab3ad
Merge pull request #111083 from higebu/add-gobgp 2021-01-29 09:47:06 +01:00