Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2016-02-19 | JSONObject: Support floats and booleans | Eelco Dolstra | 1 | -1/+12 | |
2016-02-15 | Fix broken number parsing in fromJSON | Eelco Dolstra | 1 | -4/+3 | |
The call to tmp_number.append had its arguments mixed up. Also, JSON does not allow a trailing "," after array/object members. | |||||
2016-02-12 | Merge pull request #762 from ctheune/ctheune-floats | Eelco Dolstra | 13 | -23/+172 | |
Implement floats | |||||
2016-02-04 | StoreAPI -> Store | Eelco Dolstra | 3 | -5/+5 | |
Calling a class an API is a bit redundant... | |||||
2016-02-04 | Eliminate the "store" global variable | Eelco Dolstra | 6 | -36/+40 | |
Also, move a few free-standing functions into StoreAPI and Derivation. Also, introduce a non-nullable smart pointer, ref<T>, which is just a wrapper around std::shared_ptr ensuring that the pointer is never null. (For reference-counted values, this is better than passing a "T&", because the latter doesn't maintain the refcount. Usually, the caller will have a shared_ptr keeping the value alive, but that's not always the case, e.g., when passing a reference to a std::thread via std::bind.) | |||||
2016-01-20 | Revert "Revert "next try for "don't abort when given unmatched '}' with ↵ | Eelco Dolstra | 1 | -7/+17 | |
'start-condition stack underflow'. This fixes #751""" This reverts commit b669d3d2e83d3c50238751b57cff3ed0ca39bc8a. | |||||
2016-01-20 | Revert "next try for "don't abort when given unmatched '}' with ↵ | Eelco Dolstra | 1 | -17/+7 | |
'start-condition stack underflow'. This fixes #751"" This reverts commit ed23c8568e10d15196bb4ff2b79fc14191d28109. Let's merge this *after* the 1.11.1 release. | |||||
2016-01-19 | next try for "don't abort when given unmatched '}' with 'start-condition ↵ | Fabian Schmitthenner | 1 | -7/+17 | |
stack underflow'. This fixes #751" This reverts commit 8120b6fb8a4924f8ae717bba9bbda4a2f89e2141 and fixes the regression introduced in 8d22b26448a091c76ab972c0b0603daac5e255e4. | |||||
2016-01-19 | Revert "don't abort when given unmatched '}' with 'start-condition stack ↵ | Eelco Dolstra | 1 | -17/+7 | |
underflow'. This fixes #751" This reverts commit 8d22b26448a091c76ab972c0b0603daac5e255e4. It breaks Nixpkgs: $ nix-env -qa error: syntax error, unexpected IND_STR, expecting '}', at /home/eelco/Dev/nixpkgs-stable/pkgs/top-level/python-packages.nix:7605:8 | |||||
2016-01-12 | don't abort when given unmatched '}' with 'start-condition stack underflow'. ↵ | Fabian Schmitthenner | 1 | -7/+17 | |
This fixes #751 | |||||
2016-01-07 | Fix some signedness warnings | Eelco Dolstra | 1 | -1/+1 | |
2016-01-06 | @eelco's feedback: downgrade to regular float for size, remove unused function. | Christian Theune | 1 | -1/+1 | |
2016-01-05 | Better error message | Fabian Schmitthenner | 1 | -1/+1 | |
Also show types when nix cannot compare values of different types. This is also more consistent since types are already shown when comparing values of the same not comparable type. | |||||
2016-01-05 | Use __toString when coercing sets to strings. | Shea Levy | 2 | -2/+10 | |
For example, "${{ foo = "bar"; __toString = x: x.foo; }}" evaluates to "bar". With this, we can delay calling functions like mkDerivation, buildPythonPackage, etc. until we actually need a derivation, enabling overrides and other modifications to happen by simple attribute set update. | |||||
2016-01-05 | manual: document builtins.functionArgs | Vladimír Čunát | 1 | -1/+1 | |
The text is just a conversion of comment from src/libexpr/primops.cc | |||||
2016-01-05 | Edge condition: parser did not pick up floats starting exactly with 0. | Christian Theune | 1 | -1/+1 | |
2016-01-05 | Fix up float parsing. | Christian Theune | 2 | -2/+3 | |
2016-01-05 | Try a simplified version of float lexing that didn't work. | Christian Theune | 1 | -1/+1 | |
The last one I tried was botchered anyway ... | |||||
2016-01-05 | First hit at providing support for floats in the language. | Christian Theune | 13 | -23/+171 | |
2015-12-17 | showId: Handle empty attribute names | Eelco Dolstra | 1 | -2/+3 | |
We should probably disallow these, but until then, we shouldn't barf with an assertion failure. Fixes #738. | |||||
2015-11-25 | Merge branch 'auto-call-functor' | Shea Levy | 1 | -0/+11 | |
autoCallFunction now auto-calls functors | |||||
2015-11-25 | autoCallFunction: Auto-call functors | Shea Levy | 1 | -0/+11 | |
2015-11-24 | Merge pull request #704 from ysangkok/freebsd-support | Eelco Dolstra | 1 | -1/+4 | |
FreeBSD support with knowledge about Linux emulation | |||||
2015-10-29 | int2String() -> std::to_string() | Eelco Dolstra | 1 | -1/+1 | |
2015-10-08 | isFunctor: Simplify | Eelco Dolstra | 2 | -11/+6 | |
2015-10-08 | forceFunction: allow functors as well | Mathnerd314 | 3 | -1/+13 | |
2015-10-06 | Don't try to link libdl on FreeBSD. | Manuel Jacob | 1 | -1/+4 | |
There is no libdl on FreeBSD. Instead the symbols are included in libc. | |||||
2015-09-18 | Shut up clang warnings | Eelco Dolstra | 1 | -0/+2 | |
2015-08-03 | Removed unnecessary included | Iwan Aucamp | 1 | -1/+0 | |
2015-07-31 | Fix stack consumption | Eelco Dolstra | 2 | -8/+3 | |
2015-07-31 | Output line number on infinite recursion | Iwan Aucamp | 3 | -13/+14 | |
2015-07-28 | Add sort primop | Eelco Dolstra | 1 | -1/+36 | |
2015-07-28 | Add primop genList | Eelco Dolstra | 1 | -0/+20 | |
This can be used to implement functions like ‘imap’ (or for that matter, ‘map’) without the quadratic complexity incurred by calling ‘++’ repeatedly. | |||||
2015-07-24 | Add replaceStrings primop | Eelco Dolstra | 1 | -1/+37 | |
This is a generalisation of replaceChars in Nixpkgs. | |||||
2015-07-24 | Add concatStringsSep as a primop | Eelco Dolstra | 1 | -0/+21 | |
This fixes the quadratic behaviour of concatStrings/concatStringsSep in Nixpkgs. | |||||
2015-07-23 | Cleanup | Eelco Dolstra | 2 | -18/+13 | |
2015-07-23 | Optimize empty sets | Eelco Dolstra | 3 | -4/+14 | |
This reduces the number of Bindings allocations by about 10%. | |||||
2015-07-23 | Merge branch 'attr-set-hh' of https://github.com/nbp/nix | Eelco Dolstra | 4 | -94/+142 | |
Conflicts: src/libexpr/eval.cc | |||||
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-14 | Move attribute set data structures into their own header file. | Nicolas B. Pierron | 4 | -94/+142 | |
This modification moves Attr and Bindings structures into their own header file which is dedicated to the attribute set representation. The goal of to isolate pieces of code which are related to the attribute set representation. Thus future modifications of the attribute set representation will only have to modify these files, and not every other file across the evaluator. | |||||
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. |