aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-19Cleanup: Remove unused makeDeb/makeRPM functionsEelco Dolstra
2019-12-18nix make-content-addressable: Add --json flagEelco Dolstra
Fixes #3274.
2019-12-18Fix getting the timestamp of GitHub flakesEelco Dolstra
2019-12-18Fix tests.githubFlakesEelco Dolstra
2019-12-18Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-12-17Add priority setting to storesEelco Dolstra
This allows overriding the priority of substituters, e.g. $ nix-store --store ~/my-nix/ -r /nix/store/df3m4da96d84ljzxx4mygfshm1p0r2n3-geeqie-1.4 \ --substituters 'http://cache.nixos.org?priority=100 daemon?priority=10' Fixes #3264.
2019-12-16Update flake.lockEelco Dolstra
2019-12-16Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-12-16nix-store -r: Handle symlinks to store pathsEelco Dolstra
Fixes #3270.
2019-12-16StorePath::new(): Check store directoryEelco Dolstra
2019-12-15Fix cargo testEelco Dolstra
2019-12-15Tweak error messageEelco Dolstra
2019-12-15Merge branch 'limit_depth_resolveExprPath' of https://github.com/d-goldin/nixEelco Dolstra
2019-12-14Merge pull request #3269 from xzfc/nix-shellEelco Dolstra
nix-shell: don't check for "nix-shell" in shebang script name
2019-12-14Fix progress barEelco Dolstra
2019-12-14Fix InstallableCommandEelco Dolstra
2019-12-14Fix 'nix profile'Eelco Dolstra
2019-12-14nix-shell: don't check for "nix-shell" in shebang script nameAlbert Safin
2019-12-13Move some codeEelco Dolstra
2019-12-13Don't leak exceptionsEelco Dolstra
2019-12-13Improve gzip error messageEelco Dolstra
2019-12-13Get rid of CBoxEelco Dolstra
2019-12-13Validate tarball componentsEelco Dolstra
2019-12-13Simplify tarball testEelco Dolstra
2019-12-13bugfix: Adding depth limit to resolveExprPathDima
There is no termination condition for evaluation of cyclical expression paths which can lead to infinite loops. This addresses one spot in the parser in a similar fashion as utils.cc/canonPath does. This issue can be reproduced by something like: ``` ln -s a b ln -s b a nix-instantiate -E 'import ./a' ```
2019-12-13Only install *.sb files on macOSEelco Dolstra
2019-12-13Remove FIXMEEelco Dolstra
2019-12-13SimplifyEelco Dolstra
2019-12-13Merge branch 'libstore-ssh-better-exec-error-message' of ↵Eelco Dolstra
https://github.com/Profpatsch/nix
2019-12-13Initial gzip supportTom Bereknyei
Closes #3256
2019-12-12libstore/ssh: Improve error message on failing `execvp`Profpatsch
If the `throw` is reached, this means that execvp into `ssh` wasn’t successful. We can hint at a usual problem, which is a missing `ssh` executable. Test with: ``` env PATH= ./result/bin/nix-copy-closure --builders '' unusedhost ``` and the bash version with ``` env PATH= ./result/bin/nix-copy-closure --builders '' localhost ```
2019-12-12Temporarily revert to using 'tar' until we have gzip supportEelco Dolstra
2019-12-11Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-12-10Speed up StorePath::to_string()Eelco Dolstra
1.81% -> 0.56%
2019-12-10Speed up base32::decode()Eelco Dolstra
From 1.03% to 0.19% of the runtime of 'nix-instantiate "<nixpkgs>" -A texlive.combined.scheme-full --dry-run'.
2019-12-10Make the Store API more type-safeEelco Dolstra
Most functions now take a StorePath argument rather than a Path (which is just an alias for std::string). The StorePath constructor ensures that the path is syntactically correct (i.e. it looks like <store-dir>/<base32-hash>-<name>). Similarly, functions like buildPaths() now take a StorePathWithOutputs, rather than abusing Path by adding a '!<outputs>' suffix. Note that the StorePath type is implemented in Rust. This involves some hackery to allow Rust values to be used directly in C++, via a helper type whose destructor calls the Rust type's drop() function. The main issue is the dynamic nature of C++ move semantics: after we have moved a Rust value, we should not call the drop function on the original value. So when we move a value, we set the original value to bitwise zero, and the destructor only calls drop() if the value is not bitwise zero. This should be sufficient for most types. Also lots of minor cleanups to the C++ API to make it more modern (e.g. using std::optional and std::string_view in some places).
2019-12-10Add StorePath testsEelco Dolstra
2019-12-10Shut up about deprecated functionsEelco Dolstra
2019-12-10Shut up warningsEelco Dolstra
2019-12-10Use hyper directly instead of reqwestEelco Dolstra
2019-12-10Update to async/await-enabled tokioEelco Dolstra
2019-12-10Add NAR parserEelco Dolstra
2019-12-10StorePath improvementsEelco Dolstra
2019-12-10Add base32 encoder/decoderEelco Dolstra
2019-12-10Move stuff aroundEelco Dolstra
2019-12-10Drop some dependenciesEelco Dolstra
2019-12-10Use rustlsEelco Dolstra
In particular, this enables HTTP/2 support in reqwest, which is a lot more efficient.
2019-12-10Basic BinaryCacheStore implementation using async RustEelco Dolstra
2019-12-10EvalState::callFunction(): Make FunctionCallTrace use less stack spaceEelco Dolstra
The FunctionCallTrace object consumes a few hundred bytes of stack space, even when tracing is disabled. This was causing stack overflows: $ nix-instantiate '<nixpkgs> -A texlive.combined.scheme-full --dry-run error: stack overflow (possible infinite recursion) This is with the default stack size of 8 MiB. Putting the object on the heap reduces stack usage to < 5 MiB.
2019-12-09Remove UserLock self-lock checkEelco Dolstra
This is no longer needed since we're not using POSIX locks anymore.