Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-03-31 | Merge branch 'builtins.exec' | Shea Levy | 3 | -5/+59 | |
2017-03-31 | Fix evaluation error | Eelco Dolstra | 1 | -1/+1 | |
2017-03-31 | Retry curl error 16 | Eelco Dolstra | 1 | -0/+1 | |
2017-03-31 | Fix perl build | Eelco Dolstra | 4 | -27/+20 | |
2017-03-31 | Merge branch 'remove-perl' of https://github.com/shlevy/nix | Eelco Dolstra | 16 | -111/+220 | |
2017-03-30 | Remove tabs | Shea Levy | 1 | -3/+3 | |
2017-03-30 | Add exec primop behind allow-unsafe-native-code-during-evaluation. | Shea Levy | 3 | -5/+59 | |
Execute a given program with the (optional) given arguments as the user running the evaluation, parsing stdout as an expression to be evaluated. There are many use cases for nix that would benefit from being able to run arbitrary code during evaluation, including but not limited to: * Automatic git fetching to get a sha256 from a git revision * git rev-parse HEAD * Automatic extraction of information from build specifications from other tools, particularly language-specific package managers like cabal or npm * Secrets decryption (e.g. with nixops) * Private repository fetching Ideally, we would add this functionality in a more principled way to nix, but in the mean time 'builtins.exec' can be used to get these tasks done. The primop is only available when the 'allow-unsafe-native-code-during-evaluation' nix option is true. That flag also enables the 'importNative' primop, which is strictly more powerful but less convenient (since it requires compiling a plugin against the running version of nix). | |||||
2017-03-28 | Ignore broken "Deriver: unknown-deriver" fields in .narinfo | Eelco Dolstra | 1 | -3/+5 | |
These were generated by a legacy tool. | |||||
2017-03-24 | use std::tuple for ValueMap allocator | Daiderd Jordan | 1 | -1/+1 | |
2017-03-22 | Merge pull request #1287 from mattaudesse/readme-grammar-its-typo | Eelco Dolstra | 1 | -1/+1 | |
Fix minor grammatical nitpick ("it's" vs. "its") in `README.md`. | |||||
2017-03-22 | Fix minor grammatical nitpick ("it's" vs. "its") in `README.md`. | Matt Audesse | 1 | -1/+1 | |
See: http://data.grammarbook.com/blog/pronouns/1-grammar-error/ | |||||
2017-03-22 | Fix xz decompression | Eelco Dolstra | 1 | -4/+1 | |
Fixes #1285. | |||||
2017-03-21 | LocalFSStore::getBuildLog(): Handle corrupted logs | Eelco Dolstra | 3 | -14/+21 | |
2017-03-21 | Don't hang in decompression if bzip2 data ends prematurely | Eelco Dolstra | 1 | -0/+6 | |
2017-03-21 | Fix tests to reflect the signed-binary-caches default change | Eelco Dolstra | 3 | -10/+11 | |
2017-03-21 | Only use cache.nixos.org when the store is /nix/store | Eelco Dolstra | 1 | -1/+5 | |
This is consistent with the behaviour of the old download-from-binary-cache substituter. | |||||
2017-03-21 | Require signatures by default | Eelco Dolstra | 1 | -1/+1 | |
This corresponds to the NixOS default. | |||||
2017-03-21 | Restore cache.nixos.org as the default substituter | Eelco Dolstra | 3 | -15/+4 | |
Fixes #1283. | |||||
2017-03-21 | Don't make brotli a hard dependency | Eelco Dolstra | 1 | -1/+1 | |
2017-03-21 | Move istringstream_nocopy to a separate file | Eelco Dolstra | 5 | -90/+95 | |
2017-03-21 | Honor $NIX_SSHOPTS again | Eelco Dolstra | 2 | -9/+14 | |
NixOps needs this. | |||||
2017-03-20 | Merge branch 'darwin-s3-binary-cache-store' of https://github.com/shlevy/nix | Eelco Dolstra | 4 | -15/+89 | |
2017-03-20 | Merge pull request #1275 from steveeJ/patch-1 | Eelco Dolstra | 1 | -1/+1 | |
nix-shell/pure: keep environment variable SHLVL | |||||
2017-03-16 | nix copy: Make -r option use the "from" store | Eelco Dolstra | 3 | -4/+14 | |
Previously, we tried to compute the closure in the local store, which obviously doesn't work. | |||||
2017-03-16 | ssh:// -> ssh-ng://, legacy-ssh:// -> ssh:// | Eelco Dolstra | 4 | -4/+4 | |
2017-03-16 | copyPaths(): Use queryValidPaths() to reduce SSH latency | Eelco Dolstra | 10 | -38/+46 | |
2017-03-16 | copyPaths(): Don't query path info for a path the target already has | Eelco Dolstra | 1 | -0/+1 | |
For example, this cuts "nix-copy-closure --from" on a NixOS system closure from 15.9s to 0.5s. | |||||
2017-03-16 | LegacySSHStore: Provide a faster implementation of computeFSClosure() | Eelco Dolstra | 2 | -1/+23 | |
This avoids the latency of the standard implementation, which can make a huge difference (e.g. 16.5s -> 0.5s on a NixOS system closure). | |||||
2017-03-16 | Fix nix-copy-closure --to | Eelco Dolstra | 1 | -1/+1 | |
2017-03-16 | Remove "killing process <pid>" messages | Eelco Dolstra | 4 | -11/+6 | |
They convey no useful information. | |||||
2017-03-16 | nix-copy-closure: Fix assertion failure | Eelco Dolstra | 1 | -1/+5 | |
$ ./inst/bin/nix-copy-closure --to bla $(type -p firefox) nix-copy-closure: src/libstore/store-api.cc:80: std::__cxx11::string nix::storePathToHash(const Path&): Assertion `base.size() >= storePathHashLen' failed. | |||||
2017-03-15 | More precise compression settings | Eelco Dolstra | 1 | -5/+8 | |
2017-03-15 | runProgram(): Distinguish between empty input and no input | Eelco Dolstra | 5 | -15/+30 | |
For example, if we call brotli with an empty input, it shouldn't read from the caller's stdin. | |||||
2017-03-15 | Compress NAR listings using the "text-compression" method | Eelco Dolstra | 2 | -3/+3 | |
So if "text-compression=br", the .ls file in S3 will get a Content-Encoding of "br". Brotli appears to compress better than xz for this kind of file and is natively supported by browsers. | |||||
2017-03-15 | S3BinaryCacheStore: Set Content-Type | Eelco Dolstra | 5 | -13/+25 | |
This is necessary for serving log files to browsers. | |||||
2017-03-15 | S3BinaryCacheStore: Support compression of narinfo and log files | Eelco Dolstra | 5 | -8/+71 | |
You can now set the store parameter "text-compression=br" to compress textual files in the binary cache (i.e. narinfo and logs) using Brotli. This sets the Content-Encoding header; the extension of compressed files is unchanged. You can separately specify the compression of log files using "log-compression=br". This is useful when you don't want to compress narinfo files for backward compatibility. | |||||
2017-03-15 | Fix assertion failure on SIGINT | Eelco Dolstra | 1 | -2/+0 | |
nix: src/libutil/compression.cc:142: virtual nix::XzSink::~XzSink(): Assertion `finished' failed. | |||||
2017-03-15 | Fix deadlock in runProgram() when input is larger than the pipe buffer size | Eelco Dolstra | 1 | -3/+9 | |
2017-03-15 | Add support for brotli compression | Eelco Dolstra | 7 | -5/+38 | |
Build logs on cache.nixos.org are compressed using Brotli (since this allows them to be decompressed automatically by Chrome and Firefox), so it's handy if "nix log" can decompress them. | |||||
2017-03-15 | Remove dependency on "curl" binary | Eelco Dolstra | 3 | -4/+0 | |
2017-03-15 | BinaryCacheStore: Implement getBuildLog() | Eelco Dolstra | 3 | -1/+31 | |
We assume that build logs are stored under log/<drv>, e.g. /nix/store/q7ab198v13p0f8x8wgnd75dva7d5mip6-friday-devil-0.1.1.1.drv maps to https://cache.nixos.org/log/q7ab198v13p0f8x8wgnd75dva7d5mip6-friday-devil-0.1.1.1.drv | |||||
2017-03-15 | Add a "nix log" command | Eelco Dolstra | 1 | -0/+57 | |
This replaces "nix-store --read-log". It checks the local store and any configured substituters for the requested logs. | |||||
2017-03-15 | Store: Add a method for getting build logs | Eelco Dolstra | 9 | -83/+50 | |
This allows various Store implementations to provide different ways to get build logs. For example, BinaryCacheStore can get the build logs from the binary cache. Also, remove the log-servers option since we can use substituters for this. | |||||
2017-03-12 | Merge branch 'configurable-aws-region' | Shea Levy | 3 | -7/+11 | |
2017-03-12 | nix-shell/pure: keep environment variable SHLVL | Stefan Junker | 1 | -1/+1 | |
2017-03-11 | Dockerfile: 1.11.2 -> 1.11.7 | Domen Kožar | 1 | -1/+1 | |
2017-03-09 | nix -> Nix | Eelco Dolstra | 1 | -2/+2 | |
2017-03-09 | Merge branch 'allow-import-from-derivation' of https://github.com/shlevy/nix | Eelco Dolstra | 4 | -0/+17 | |
2017-03-09 | Merge pull request #1267 from adevress/master | Eelco Dolstra | 1 | -0/+1 | |
Add missing header <sstream> | |||||
2017-03-08 | Add missing header <sstream> | Adrien Devresse | 1 | -0/+1 | |