A modern, delicious implementation of the Nix package manager, focused on correctness, usability, and growth — and committed to doing right by its community
Find a file
Robert Hensing c965f35de7 Improve sqlite error messages
They did not include the detailed error message, losing essential
information for troubleshooting.

Example message:

    warning: creating statement 'insert or rplace into NARs(cache, hashPart, namePart, url, compression, fileHash, fileSize, narHash, narSize, refs, deriver, sigs, ca, timestamp, present) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1)': at offset 10: SQL logic error, near "rplace": syntax error (in '/tmp/nix-shell.grQ6f7/nix-test/tests/binary-cache/test-home/.cache/nix/binary-cache-v6.sqlite')

It's not the best example; more important information will be in
the message for e.g. a constraint violation.

I don't see why this specific error is printed as a warning, but
that's for another commit.
2022-12-17 14:51:37 +01:00
.github Remove auto assign 2022-12-12 13:01:23 +01:00
config
contrib
doc/manual Merge pull request #7456 from ncfavier/fix-links 2022-12-13 17:27:13 +01:00
m4
maintainers maintainers/README.md: Use CET 2022-12-05 16:35:25 +01:00
misc Merge pull request #6645 from Artturin/limitinfinity 2022-12-09 13:36:13 +01:00
mk
perl
scripts Merge pull request #7419 from fricklerhandwerk/installer-contact 2022-12-07 13:27:09 +01:00
src Improve sqlite error messages 2022-12-17 14:51:37 +01:00
tests Fix a crash in DerivedPath::Built::toJSON() with impure derivations 2022-12-15 16:02:27 +01:00
.dir-locals.el
.editorconfig
.gitignore
.version .version: Add newline 2022-12-07 13:39:10 +01:00
boehmgc-coroutine-sp-fallback.diff
bootstrap.sh
configure.ac Trivial changes from the lazy-trees branch 2022-12-07 14:06:34 +01:00
COPYING
default.nix
docker.nix Add nobody user/group to Nix docker image 2022-11-29 10:01:46 +00:00
flake.lock
flake.nix Build Nix with the GC disabled in hydra 2022-12-13 10:44:07 +01:00
local.mk
Makefile
Makefile.config.in
precompiled-headers.h
README.md
shell.nix

Nix

Open Collective supporters Test

Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. Please refer to the Nix manual for more details.

Installation

On Linux and macOS the easiest way to install Nix is to run the following shell command (as a user other than root):

$ curl -L https://nixos.org/nix/install | sh

Information on additional installation methods is available on the Nix download page.

Building And Developing

See our Hacking guide in our manual for instruction on how to build nix from source with nix-build or how to get a development environment.

Additional Resources

License

Nix is released under the LGPL v2.1.