Go to file
Florian Klink 6ade7ec022 progress-bar: hide expected if expected is 0 (unknown)
Sometimes, "expected" can be "0", but in fact means "unknown".

This is for example the case when downloading a file while the http
server doesn't send the `Content-Length` header, like when running `nix
build` pointing to a nixpkgs checkout streamed from GitHub:

⇒  nix build -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz hello
[1.8/0.0 MiB DL] downloading 'https://github.com/NixOS/nixpkgs/archive/master.tar.gz'

In that case, don't show that weird progress bar, but only the (slowly
increasing) downloaded size ("done").

⇒  nix build -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz hello
[1.8 MiB DL] downloading 'https://github.com/NixOS/nixpkgs/archive/master.tar.gz'

This commit also updates fmt calls with three numbers (when something is
currently 'running' too) - I'm not sure if this can be provoked, but
showing "0" as expected doesn't make any sense, as we're obviously doing
more than nothing.
2019-05-11 12:34:39 +02:00
.github Rename 1.12 -> 2.0 2018-01-31 18:58:45 +01:00
config update config/config.{sub,guess} 2018-08-13 20:00:17 +00:00
corepkgs Support SRI hashes 2018-12-13 14:30:52 +01:00
doc/manual docs: Mention --max-jobs 0 to build remotely only 2019-03-31 03:57:45 +02:00
maintainers Fix release script 2019-04-15 19:17:17 +02:00
misc nix-daemon: add variable to disable fork safety 2019-02-09 20:35:30 +01:00
mk Support --disable-shared flag. 2019-02-13 00:03:10 -05:00
perl perl/configure.ac: fix for new version location too 2019-03-25 09:18:30 +01:00
scripts Merge pull request #2679 from bjornfor/offline-install 2019-05-01 15:48:39 +02:00
src progress-bar: hide expected if expected is 0 (unknown) 2019-05-11 12:34:39 +02:00
tests Update eval-okay-types.exp to match #1828 2019-03-27 21:07:04 +01:00
.dir-locals.el Add .dir-locals.el for Emacs 2016-01-28 11:12:04 +01:00
.editorconfig Add .editorconfig 2017-06-05 22:57:28 +01:00
.gitignore Treat plain derivation paths in context as normal paths. 2019-01-13 11:29:55 -05:00
.travis.yml Test the installer 2017-07-14 12:11:04 -04:00
.version version -> .version, avoid conflict with C++20 <version> 2019-03-25 09:18:30 +01:00
bootstrap.sh bootstrap: Simplify & make more robust. 2011-09-06 12:11:05 +00:00
configure.ac configure.ac: update for new version file location 2019-03-25 09:18:30 +01:00
COPYING * Change this to LGPL to keep the government happy. 2006-04-25 16:41:06 +00:00
local.mk Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
Makefile Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
Makefile.config.in Support --disable-shared flag. 2019-02-13 00:03:10 -05:00
nix.spec.in Attempt to fix the RPM build 2018-07-31 14:03:19 +02:00
README.md Fix minor grammatical nitpick ("it's" vs. "its") in README.md. 2017-03-22 10:11:23 -04:00
release-common.nix Remove editline expression, not needed anymore 2018-11-13 20:55:08 +01:00
release.nix Use Nixpkgs 19.03 2019-04-01 21:09:25 +02:00
shell.nix Use Nixpkgs 19.03 2019-04-01 21:09:25 +02:00

Nix, the purely functional package manager

Nix is a new take on package management that is fairly unique. Because of its purity aspects, a lot of issues found in traditional package managers don't appear with Nix.

To find out more about the tool, usage and installation instructions, please read the manual, which is available on the Nix website at http://nixos.org/nix/manual.

Contributing

Take a look at the Hacking Section of the manual. It helps you to get started with building Nix from source.

License

Nix is released under the LGPL v2.1

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit.