Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-07-23 | Optimize small lists | Eelco Dolstra | 9 | -115/+151 | |
The value pointers of lists with 1 or 2 elements are now stored in the list value itself. In particular, this makes the "concatMap (x: if cond then [(f x)] else [])" idiom cheaper. | |||||
2015-07-23 | Add primops all and any | Eelco Dolstra | 1 | -0/+33 | |
These are used thousands of times during NixOS evaluation, so it's useful to speed them up. | |||||
2015-07-23 | Importing derivations: Add name attribute to make a valid drv | Shea Levy | 1 | -1/+3 | |
2015-07-23 | Allow derivations-as-srcs in the context of builtins.toFile files | Shea Levy | 1 | -2/+6 | |
2015-07-23 | Add foldl' primop | Eelco Dolstra | 1 | -0/+24 | |
2015-07-20 | Make <nix/fetchurl.nix> a builtin builder | Eelco Dolstra | 3 | -259/+1 | |
This ensures that 1) the derivation doesn't change when Nix changes; 2) the derivation closure doesn't contain Nix and its dependencies; 3) we don't have to rely on ugly chroot hacks. | |||||
2015-07-17 | OCD: foreach -> C++11 ranged for | Eelco Dolstra | 9 | -200/+194 | |
2015-07-17 | Make printValue() interruptible | Eelco Dolstra | 1 | -0/+2 | |
Fixes #572. | |||||
2015-07-03 | Fix the parsing of "$"'s in strings. | Guillaume Maudoux | 1 | -6/+5 | |
2015-07-03 | Fix the hack that resets the scanner state. | Guillaume Maudoux | 2 | -42/+19 | |
2015-06-17 | Support URLs in $NIX_PATH | Eelco Dolstra | 1 | -1/+13 | |
This didn't work (despite claims in the manual), because the colon in "http://" was parsed as a element separator. So handle "://" specially. | |||||
2015-06-01 | Add tarball tests | Eelco Dolstra | 1 | -1/+1 | |
2015-06-01 | Document tarball downloading | Eelco Dolstra | 1 | -0/+1 | |
2015-06-01 | Fix fetchurl/fetchTarball | Eelco Dolstra | 1 | -1/+2 | |
2015-06-01 | readFile: Check against nul bytes | Eelco Dolstra | 1 | -1/+4 | |
2015-05-22 | Fix import-from-derivation in restricted eval mode | Eelco Dolstra | 1 | -0/+7 | |
This relaxes restricted mode to allow access to anything in the store. In the future, it would be better to allow access to only paths that have been constructed in the current evaluation (so a hard-coded /nix/store/blabla in a Nix expression would still be rejected). However, note that reading /nix/store itself is still rejected, so you can't use this so get access to things you don't know about. | |||||
2015-05-06 | nix-env/nix-instantiate/nix-build: Support URIs | Eelco Dolstra | 4 | -11/+16 | |
For instance, you can install Firefox from a specific Nixpkgs revision like this: $ nix-env -f https://github.com/NixOS/nixpkgs/archive/63def04891a0abc328b1b0b3a78ec02c58f48583.tar.gz -iA firefox Or build a package from the latest nixpkgs-unstable channel: $ nix-build https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz -A hello | |||||
2015-05-05 | Allow URLs in the Nix search path | Eelco Dolstra | 4 | -92/+116 | |
E.g. to install "hello" from the latest Nixpkgs: $ nix-build '<nixpkgs>' -A hello -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz Or to install a specific version of NixOS: $ nixos-rebuild switch -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/63def04891a0abc328b1b0b3a78ec02c58f48583.tar.gz | |||||
2015-05-05 | Make downloads interruptable | Eelco Dolstra | 1 | -0/+9 | |
2015-04-16 | Fix using restricted mode with chroots | Eelco Dolstra | 1 | -0/+5 | |
2015-04-09 | Use cached result if there is a network error | Eelco Dolstra | 3 | -8/+15 | |
2015-04-09 | Move curl stuff into a separate file | Eelco Dolstra | 3 | -112/+150 | |
2015-04-09 | Implement a TTL on cached fetchurl/fetchTarball results | Eelco Dolstra | 1 | -13/+24 | |
This is because we don't want to do HTTP requests on every evaluation, even though we can prevent a full redownload via the cached ETag. The default is one hour. | |||||
2015-04-09 | Implement caching of fetchurl/fetchTarball results | Eelco Dolstra | 1 | -14/+119 | |
ETags are used to prevent redownloading unchanged files. | |||||
2015-03-25 | Add fetchTarball builtin | Eelco Dolstra | 2 | -1/+120 | |
This function downloads and unpacks the given URL at evaluation time. This is primarily intended to make it easier to deal with Nix expressions that have external dependencies. For instance, to fetch Nixpkgs 14.12: with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-14.12.tar.gz) {}; Or to fetch a specific revision: with import (fetchTarball https://github.com/NixOS/nixpkgs/archive/2766a4b44ee6eafae03a042801270c7f6b8ed32a.tar.gz) {}; This patch also adds a ‘fetchurl’ builtin that downloads but doesn't unpack its argument. Not sure if it's useful though. | |||||
2015-03-25 | addToStore(): Take explicit name argument | Eelco Dolstra | 2 | -2/+2 | |
2015-03-24 | Don't rely on __noChroot for corepkgs | Eelco Dolstra | 1 | -2/+5 | |
This doesn't work anymore if the "strict" chroot mode is enabled. Instead, add Nix's store path as a dependency. This ensures that its closure is present in the chroot. | |||||
2015-03-19 | Disable scanning for interior pointers | Eelco Dolstra | 1 | -0/+2 | |
This may remove the "Repeated allocation of very large block" warnings. | |||||
2015-03-19 | Fix Boehm API violation | Eelco Dolstra | 2 | -38/+46 | |
We were calling GC_INIT() after doing an allocation (in the baseEnv construction), which is not allowed. | |||||
2015-03-19 | Check return values from malloc/strdup | Eelco Dolstra | 1 | -11/+34 | |
2015-03-18 | Print some Boehm GC stats | Eelco Dolstra | 1 | -0/+7 | |
2015-03-18 | valueSize(): Take into account list/bindings/env size | Eelco Dolstra | 1 | -6/+15 | |
2015-03-06 | Fix typos: s/the the/the/ | Daniel Hahler | 1 | -1/+1 | |
2015-03-06 | forceValueDeep: Add to error prefix | Eelco Dolstra | 1 | -2/+7 | |
2015-03-06 | Improve error message | Eelco Dolstra | 2 | -19/+25 | |
2015-02-23 | Add restricted evaluation mode | Eelco Dolstra | 5 | -11/+50 | |
If ‘--option restrict-eval true’ is given, the evaluator will throw an exception if an attempt is made to access any file outside of the Nix search path. This is primarily intended for Hydra, where we don't want people doing ‘builtins.readFile ~/.ssh/id_dsa’ or stuff like that. | |||||
2015-02-19 | Merge branch 'tilde-paths' of https://github.com/shlevy/nix | Eelco Dolstra | 3 | -2/+6 | |
2015-02-19 | tilde paths: The rest of the string has to start with a slash anyway | Shea Levy | 1 | -1/+1 | |
2015-02-19 | tilde paths: construct the entire path at parse time | Shea Levy | 1 | -6/+1 | |
2015-02-19 | tilde paths: get HOME at parse time | Shea Levy | 1 | -3/+1 | |
2015-02-19 | Remove obsolete reference to ~ operator | Eelco Dolstra | 1 | -1/+0 | |
2015-02-19 | ExprConcatStrings: canonicalize concatenated paths | Shea Levy | 1 | -1/+2 | |
2015-02-19 | Allow the leading component of a path to be a ~ | Shea Levy | 2 | -1/+11 | |
2015-02-05 | Remove tab | Eelco Dolstra | 1 | -1/+1 | |
2015-01-29 | Merge remote-tracking branch 'shlevy/baseNameOf-no-copy' | Shea Levy | 1 | -1/+1 | |
baseNameOf: Don't copy paths to the store first | |||||
2015-01-15 | Fix assertion failure in nix-env | Eelco Dolstra | 1 | -3/+5 | |
$ nix-env -f ~/Dev/nixops/ -iA foo nix-env: src/libexpr/eval.hh:57: void nix::Bindings::push_back(const nix::Attr&): Assertion `size_ < capacity' failed. Aborted | |||||
2015-01-09 | Fix builtins.readDir on XFS | Eelco Dolstra | 1 | -1/+1 | |
The DT_UNKNOWN fallback code was getting the type of the wrong path, causing readDir to report "directory" as the type of every file. Reported by deepfire on IRC. | |||||
2015-01-07 | Show position info for failing <...> lookups | Eelco Dolstra | 3 | -4/+8 | |
2015-01-07 | Remove quotes around filenames in position info | Eelco Dolstra | 1 | -1/+1 | |
2014-12-14 | Pedantry | Eelco Dolstra | 1 | -4/+0 | |