aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-27Merge pull request #5835 from yorickvP/fast-repl-loadEelco Dolstra
Fix accidental O(n^2 * log n) performance in NixRepl::addAttrsToScope
2021-12-27Fix accidental O(n^2 * log n) performance in NixRepl::addAttrsToScopeYorick van Pelt
Only sort once, after adding all of the attrs first. This reduces my `nix repl '<nixpkgs>'` loading time from 1.07s to 103ms. Fixes #5823
2021-12-23Merge branch 'nm-int64' of https://github.com/nmattia/nixEelco Dolstra
2021-12-23Use int64_t and NixFloat in fromTOML typesNicolas Mattia
This makes sure that values parsed from TOML have a proper size. Using e.g. `double` caused issues on i686 where the size of `double` (32bit) was too small to accommodate some values.
2021-12-23Merge pull request #5826 from NixOS/fixup-5807Eelco Dolstra
Properly return false on `builtins.pathExists /someNonAllowedPath`
2021-12-23Properly return false on `builtins.pathExists /someNonAllowedPath`regnat
Follow-up from https://github.com/NixOS/nix/pull/5807 to fix https://github.com/NixOS/nix/pull/5807#issuecomment-1000135394
2021-12-22Merge pull request #5821 from edolstra/remove-affinityEelco Dolstra
Remove CPU locking
2021-12-22Merge pull request #5820 from ncfavier/completion-nospaceEelco Dolstra
Don't insert spaces when completing attribute paths
2021-12-22Fix attr path completion after a dotNaïm Favier
2021-12-22Don't insert spaces when completing attribute pathsNaïm Favier
2021-12-22Remove CPU lockingEelco Dolstra
This was already accidentally disabled in ba87b08. It also no longer appears to be beneficial, and in fact slow things down, e.g. when evaluating a NixOS system configuration: elapsed time: median = 3.8170 mean = 3.8202 stddev = 0.0195 min = 3.7894 max = 3.8600 [rejected, p=0.00000, Δ=0.36929±0.02513]
2021-12-22Merge pull request #5819 from edolstra/devshell-completionEelco Dolstra
Make bash completion for 'nix' work in a devshell
2021-12-22Make bash completion work when nix is invoked as ~/.../nixEelco Dolstra
2021-12-22Make bash completion for 'nix' work in a devshellEelco Dolstra
2021-12-21Merge pull request #5814 from NixOS/docker-ssl-certs-in-etcEelco Dolstra
Add cacert to /etc/ssl/certs in the docker image
2021-12-21Add cacert to /etc/ssl/certs in the docker imageRok Garbas
Fixes #5797
2021-12-21Merge pull request #5807 from NixOS/5805-ca-ifdEelco Dolstra
Fix IFD with CA derivations
2021-12-21Update release notesEelco Dolstra
2021-12-21Merge branch 'nm-toml11' of https://github.com/nmattia/nixEelco Dolstra
2021-12-21Merge branch 'why-depends-completion' of https://github.com/ncfavier/nixEelco Dolstra
2021-12-21Fix IFD with CA derivationsregnat
Rewrite the string taken by the IFD-like primops to contain the actual output paths of the derivations rather than the placeholders Fix #5805
2021-12-21Factor out the path realisation bit of IFDregnat
2021-12-21Merge pull request #5809 from pennae/small-perf-improvementsThéophane Hufschmitt
small perf improvements
2021-12-20bulk-allocate Value instances in the evaluatorpennae
calling GC_malloc for each value is significantly more expensive than allocating a bunch of values at once with GC_malloc_many. "a bunch" here is a GC block size, ie 16KiB or less. this gives a 1.5% performance boost when evaluating our nixos system. tested with nix eval --raw --impure --expr 'with import <nixpkgs/nixos> {}; system' # on master Time (mean ± σ): 3.335 s ± 0.007 s [User: 2.774 s, System: 0.293 s] Range (min … max): 3.315 s … 3.347 s 50 runs # with this change Time (mean ± σ): 3.288 s ± 0.006 s [User: 2.728 s, System: 0.292 s] Range (min … max): 3.274 s … 3.307 s 50 runs
2021-12-20Clean up toml parsing codeNicolas Mattia
2021-12-20Add shell completion for why-dependsNaïm Favier
Fixes #5806
2021-12-17Use long in fromTOMLNicolas Mattia
2021-12-17Update primops/fromTOML.cc to use toml11Nicolas Mattia
2021-12-17Replace cpptoml with toml11Nicolas Mattia
2021-12-17Merge pull request #5787 from edolstra/unshare-fsEelco Dolstra
Ignore EPERM when unsharing FS state
2021-12-17Merge pull request #5047 from symphorien/fix-nix-channelThéophane Hufschmitt
nix-channel: use nix-env -i --remove-all to upgrade
2021-12-17Test the update of multiple channelsregnat
Make sure that `nix-channel --update` won’t accidentaly remove one
2021-12-16Ignore EPERM when unsharing FS stateEelco Dolstra
On Docker (but not podman), unshare(CLONE_FS) fails with EPERM. So let's ignore it and hope nothing bad happens. Attempted fix for #5777.
2021-12-16Fix docker instructionsEelco Dolstra
2021-12-16Merge pull request #5786 from Infinisil/groupBy-testsEelco Dolstra
Add a test case for builtins.groupBy
2021-12-16Add a test case for builtins.groupBySilvan Mosberger
2021-12-16Merge pull request #5783 from johnae/masterEelco Dolstra
docker: fix image so that nix profile works
2021-12-16docker: fix image so that nix profile worksJohn Axel Eriksson
nix profile will otherwise throw this error: error: path '/nix/var/nix/profiles/default/manifest.nix' is not in the Nix store That's not entirely true since manifest.nix is within a directory in the nix store but nix profile seems to require the manifest.nix itself to be a store path.
2021-12-16Merge pull request #5774 from jessebrennan/patch-1Eelco Dolstra
List aarch64 as supported macOS hardware
2021-12-16Merge pull request #5779 from peeley/fix-shell-doc-typoEelco Dolstra
Fix typo in `nix shell --help` doc
2021-12-15Fix typo in `src/nix/shell.md`Noah Snelson
Changed `If not command` to `If no command`, also specified that the default shell launched in `nix shell` can be specified with `$SHELL`.
2021-12-15List aarch64 as supported macOS hardwarejesse
Resolves #5767
2021-12-15pkgconfig -> pkg-configEelco Dolstra
2021-12-15Revert "update flake.nix to 21.11"Eelco Dolstra
This reverts commit ad9322a48fce955fb30b111b0fb5c3b8007a6e2e because it breaks hydraJobs.buildStatic.* and the evaluation of some tests.
2021-12-14Merge pull request #5769 from NixOS/ca/get-build-statsEelco Dolstra
Add a crude tracing mechansim for the build results
2021-12-14Merge pull request #5623 from yorickvP/fix-5621Théophane Hufschmitt
flakes: fix boolean and int nixConfig values
2021-12-14Merge pull request #5771 from edolstra/single-file-flake-inputsThéophane Hufschmitt
Re-allow inputs.x.url = "/path/to/file"
2021-12-14Add a test for boolean config options in flakesregnat
2021-12-14Merge pull request #5702 from baloo/baloo/hide-non-reproducible-settingsThéophane Hufschmitt
reproducibility: hide non-reproducible settings from manual
2021-12-14Merge pull request #5366 from trofi/speedup-ca-queryThéophane Hufschmitt
ca-specific-schema.sql: add index on RealisationsRefs(referrer)