aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-25TypoEelco Dolstra
2022-05-25Merge remote-tracking branch 'origin/file-fetcher'Eelco Dolstra
2022-05-25Fix warningEelco Dolstra
2022-05-25Merge pull request #6568 from yorickvP/check-busybox-standaloneEelco Dolstra
configure.ac: check for sandbox-shell's FEATURE_SH_STANDALONE
2022-05-25Merge pull request #6565 from ↵Eelco Dolstra
NixOS/dependabot/github_actions/zeebe-io/backport-action-0.0.8 Bump zeebe-io/backport-action from 0.0.7 to 0.0.8
2022-05-25Merge pull request #6567 from Ma27/simplify-git-fixEelco Dolstra
libfetchers: drop `getGitDir` and hardcode `.git`
2022-05-24configure.ac: don't run sandbox-shell test when cross compilingYorick van Pelt
2022-05-24configure.ac: check for sandbox-shell's FEATURE_SH_STANDALONEYorick van Pelt
See also: https://bugs.archlinux.org/task/73998. Busybox's FEATURE_SH_STANDALONE feature causes other busybox applets to leak into the sandbox, where system() calls will start preferring them over tools in $PATH. On arch, this even includes `ar`. Let's check for this evil feature and disallow using this as a sandbox shell.
2022-05-24libfetchers: drop `getGitDir` and hardcode `.git`Maximilian Bosch
As discussed[1] this is most likely not desirable. [1] https://github.com/NixOS/nix/pull/6440#issuecomment-1120876248
2022-05-23Bump zeebe-io/backport-action from 0.0.7 to 0.0.8dependabot[bot]
Bumps [zeebe-io/backport-action](https://github.com/zeebe-io/backport-action) from 0.0.7 to 0.0.8. - [Release notes](https://github.com/zeebe-io/backport-action/releases) - [Commits](https://github.com/zeebe-io/backport-action/compare/v0.0.7...v0.0.8) --- updated-dependencies: - dependency-name: zeebe-io/backport-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23Merge pull request #6490 from abathur/fix_macos_install_vim_againDomen Kožar
darwin-install: fix break from bad vimrc
2022-05-23Merge pull request #6560 from ncfavier/patch-1Théophane Hufschmitt
typo: defaultApps → defaultApp
2022-05-23Merge pull request #6532 from flox/show_warningThéophane Hufschmitt
fix: alignment during flake show of legacyPackages
2022-05-21typo: defaultApps → defaultAppNaïm Camille Favier
2022-05-19Merge pull request #6553 from Artturin/raisefilelimitEelco Dolstra
nix-daemon.service: sync LimitNOFILE with the nixos service
2022-05-19nix-daemon.service: sync LimitNOFILE with the nixos serviceArtturin
https://github.com/NixOS/nixpkgs/blob/5628480acda2985cc334d0c5ec85512858ed60f9/nixos/modules/services/misc/nix-daemon.nix#L737 Closes https://github.com/NixOS/nix/issues/6007
2022-05-19fetchTree: Allow fetching plain filesTony Olagbaiye
Add a new `file` fetcher type, which will fetch a plain file over http(s), or from the local file. Because plain `http(s)://` or `file://` urls can already correspond to `tarball` inputs (if the path ends-up with a know archive extension), the URL parsing logic is a bit convuluted in that: - {http,https,file}:// urls will be interpreted as either a tarball or a file input, depending on the extensions of the path part (so `https://foo.com/bar` will be a `file` input and `https://foo.com/bar.tar.gz` as a `tarball` input) - `file+{something}://` urls will be interpreted as `file` urls (with the `file+` part removed) - `tarball+{something}://` urls will be interpreted as `tarball` urls (with the `tarball+` part removed) Fix #3785 Co-Authored-By: Tony Olagbaiye <me@fron.io>
2022-05-18Merge pull request #6544 from ncfavier/getFlake-no-write-lock-fileThéophane Hufschmitt
Do not attempt to write a lock file in builtins.getFlake
2022-05-18Do not attempt to write a lock file in builtins.getFlakeNaïm Favier
Fixes https://github.com/NixOS/nix/issues/6541
2022-05-18Merge pull request #6543 from herberteuler/masterEelco Dolstra
primop_match: fix example letter case in document
2022-05-18primop_match: fix example letter case in documentzhujun
2022-05-16Merge pull request #6522 from elikoga/masterThéophane Hufschmitt
Add priority for nix profile install
2022-05-16Make nix::eval_cache::int_t more idiomaticThéophane Hufschmitt
Don’t explicitely give it a constructor, but use aggregate initialization instead (also prevents having an implicit coertion, which is probably good here)
2022-05-16change priority conflict messageEli Kogan-Wang
2022-05-16resolve redundant priority passing, wrap NixInt in eval-cache variantEli Kogan-Wang
2022-05-16Merge pull request #6517 from NixOS/document-the-libexpr-testsEelco Dolstra
Expand the testing section of the hacking docs
2022-05-16Add int to eval-cache, bump eval cache schema versionEli Kogan-Wang
2022-05-16Merge branch 'NixOS:master' into masterelikoga
2022-05-13Integrate review changesEli Kogan-Wang
2022-05-13fix: alignment during flake show of legacyPackagesTom Bereknyei
Fixes: https://github.com/NixOS/nix/issues/6240 https://github.com/NixOS/nix/issues/6045
2022-05-13Merge pull request #6525 from J-Swift/feature/bash-prefixEelco Dolstra
Add `bash-prompt-prefix` option
2022-05-12Don’t recommend writing unit testsThéophane Hufschmitt
As asked in <https://github.com/NixOS/nix/pull/6517#discussion_r869416905>
2022-05-12Merge branch 'fix-unrecognized-archive-format' of https://github.com/NobbZ/nixEelco Dolstra
2022-05-12fix GitHub URL templateNorbert Melzer
2022-05-11Merge pull request #6523 from ncfavier/stop-logger-legacyThéophane Hufschmitt
Stop the logger properly in legacy commands
2022-05-11Stop the logger properly in legacy commandsNaïm Favier
Ensures the logger is stopped on exit in legacy commands. Without this, when using `nix-build --log-format bar` and stopping nix with CTRL+C, the bar is not cleared from the screen.
2022-05-11Add priority for nix profile installEli Kogan-Wang
2022-05-11Fix static buildEelco Dolstra
https://hydra.nixos.org/build/176211267
2022-05-10Add documentation for bash-prompt-prefixJimmy Reichley
2022-05-10Allow setting bash-prompt-prefix nix develop configurationJimmy Reichley
2022-05-10Merge pull request #6497 from danielfullmer/ghe-fetcher-urlEelco Dolstra
Use correct URL for GitHub Enterprise
2022-05-10Merge pull request #6518 from edolstra/fix-nix-developEelco Dolstra
nix develop: Find bin/bash in the bashInteractive outputs
2022-05-10nix develop: Find bin/bash in the bashInteractive outputsEelco Dolstra
2022-05-10Expand the testing section of the hacking docsThéophane Hufschmitt
- Make it clear what the different kind of tests are, where they live and how they can be ran - Ask people to primarily write unit tests
2022-05-10Merge pull request #6510 from ↵Eelco Dolstra
NixOS/dependabot/github_actions/docker/login-action-2 Bump docker/login-action from 1 to 2
2022-05-09Bump docker/login-action from 1 to 2dependabot[bot]
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v1...v2) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09Merge pull request #6505 from jtojnar/patch-3Théophane Hufschmitt
libexpr: Fix manual link in error message
2022-05-08libexpr: Fix manual link in error messageJan Tojnar
It was changed to the old manual in https://github.com/NixOS/nix/commit/8895fa70a4b05ddebbb5a23ea96464d5e01345fb
2022-05-06Use correct URL for GitHub EnterpriseDaniel Fullmer
For GitHub Enterprise, the API is accessed through a slightly different URL. See [1], where it says: > Use http(s)://[hostname]/api/v3 to access the API for GitHub > Enterprise Server. Also tested working on a GHE instance. [1] https://docs.github.com/en/enterprise-server@3.3/rest/guides/getting-started-with-the-rest-api
2022-05-06Add unit tests for libexpr (#5377)Andreas Rammhold
* libexpr: fix builtins.split example The example was previously indicating that multiple whitespaces would be collapsed into a single captured whitespace. That isn't true and was likely a mistake when being documented initially. * Fix segfault on unitilized list when printing value Since lists are just chunks of memory the individual elements in the list might be unitilized when a programming error happens within Nix. In this case the values are null-initialized (at least with Boehm GC) and we can avoid a nullptr deref when printing them. I ran into this issue while ensuring that new expression tests would show the actual value on an assertion failure. This is unlikely to cause any runtime performance regressions as printing values is not really in the hot path (unless the repl is the primary use case). * Add operator<< for ValueTypes * Add libexpr tests This introduces tests for libexpr that evalulate various trivial Nix language expressions and primop invocations that should be good smoke tests wheter or not the implementation is behaving as expected.