Eelco Dolstra
d361901bfe
curl: Set CURLOPT_NOSIGNAL
...
Otherwise using curl is not safe in multi-threaded applications
because it installs a SIGALRM handler.
2016-02-22 15:51:14 +01:00
Shea Levy
037ff4e70a
Merge branch 'docs' of git://github.com/joelmo/nix
2016-02-22 07:14:16 -05:00
Shea Levy
9dd175294c
Merge branch 'patch-1' of git://github.com/dckc/nix
2016-02-22 07:13:31 -05:00
Scott Olson
97da6d62f2
Print syntactially invalid attribute names as strings.
2016-02-20 01:14:22 -06:00
Shea Levy
4f011bccf8
Merge branch 'master' of git://github.com/stepcut/nix
2016-02-19 18:21:41 -05:00
Eelco Dolstra
7a173a7be1
JSONObject: Support floats and booleans
2016-02-19 14:24:04 +01:00
Dan Connolly
b39ec410ee
context for introducing runtime dependencies
...
The first occurrence of "runtime dependencies" wasn't related to the surrounding narrative.
2016-02-18 23:29:00 -06:00
Joel Moberg
bb36a1a3cf
Document IN_NIX_SHELL variable
2016-02-18 23:32:37 +01:00
Eelco Dolstra
a52fd0dbd0
Merge branch 'issue-13' of https://github.com/tsion/nix-repl
2016-02-18 19:40:27 +01:00
Eelco Dolstra
02daf2ec0b
Merge branch 'multiline' of https://github.com/tsion/nix-repl
2016-02-18 19:33:46 +01:00
Scott Olson
56c7f0e8c5
Fix typo in comment.
2016-02-18 07:04:55 -06:00
Scott Olson
60ba98242f
Fix recognition of REPL commands.
2016-02-18 06:59:51 -06:00
Scott Olson
64080d26fe
Cancel multiline input on Ctrl-C.
2016-02-18 06:50:52 -06:00
Scott Olson
2d729e4f6f
Support multiline input by detecting "unfinished" parse errors.
...
Fixes #4 ,
2016-02-18 06:27:39 -06:00
Scott Olson
287dfee35e
Expand the help message printed from --help.
...
Fixes #10 . I consider this a temporary measure, however, until nix-repl has a
manpage (see #14 ). Then it can just open its manpage on --help like the other
nix tools do.
Much of the text in this commit was copied from nix-build's manpage.
2016-02-18 04:05:11 -06:00
Eelco Dolstra
7251a81bde
Drop all distros that are not down with C++11
2016-02-17 13:36:56 +01:00
Eelco Dolstra
b49d323ce2
Fix build without sodium
...
http://hydra.nixos.org/build/32085949
2016-02-17 12:42:14 +01:00
Scott Olson
cfc874ee52
Open the store before constructing EvalState.
...
EvalState requires the `store` global to be initialized before it is constructed
in some cases, e.g. when it needs to download a tarball for something in
NIX_PATH. Hence, this fixes #13 .
2016-02-16 18:40:47 -06:00
Eelco Dolstra
c4d22997f3
Add C++ functions for .narinfo processing / signing
...
This is currently only used by the Hydra queue runner rework, but like
eff5021eaa
it presumably will be useful
for the C++ rewrite of nix-push and
download-from-binary-cache. (@shlevy)
2016-02-16 16:38:44 +01:00
Eelco Dolstra
5ac27053e9
Rename ValidPathInfo::hash -> narHash for consistency
2016-02-16 11:49:12 +01:00
Tristan Hume
9b05d5848c
Fix to-base16 description
2016-02-16 10:15:58 +01:00
Peter Simons
92063851b1
nix-profile.sh.in: find ca-bundle.pem on openSUSE Tumbleweed machines
2016-02-16 10:15:05 +01:00
Scott Olson
82aca33899
Add :i command to install a package to the current profile.
...
It works by running `nix-env -i <derivation path>`.
Fixes #15 .
2016-02-16 00:36:50 -06:00
Scott Olson
30a7bfbebe
Fix grammar.
2016-02-15 23:11:26 -06:00
Scott Olson
3cfb8d1584
Remove unused global variable.
2016-02-15 19:16:24 -06:00
Eelco Dolstra
eff5021eaa
Add xz compression function
...
This is used by the Hydra queue runner, but since it may also be
useful for the C++ rewrite of nix-push, I'm putting it here.
2016-02-15 21:45:56 +01:00
Eelco Dolstra
bfdacb712c
decompressXZ: Ensure that lzma_end() is called
...
Otherwise we might leak memory.
2016-02-15 21:26:28 +01:00
Eelco Dolstra
03109e9580
Fix nix-copy-closure
...
http://hydra.nixos.org/build/32005971
2016-02-15 20:09:30 +01:00
Eelco Dolstra
c8f4d89a34
Expose the export magic value and move LocalStore::queryReferences to Store
2016-02-15 15:01:26 +01:00
Eelco Dolstra
e03d6e0998
Fix broken number parsing in fromJSON
...
The call to tmp_number.append had its arguments mixed up. Also, JSON
does not allow a trailing "," after array/object members.
2016-02-15 15:01:26 +01:00
Eelco Dolstra
eb62e23f14
Fix test broken by #762
2016-02-15 15:01:26 +01:00
Eelco Dolstra
d089372565
Add function to extract hash part of a store path
2016-02-15 15:01:26 +01:00
Eelco Dolstra
dc8b51754b
Merge pull request #16 from tsion/dashed-assign
...
Improve variable name parsing for assignments.
2016-02-15 10:25:45 +01:00
Scott Olson
f30fd9c47b
Don't consider empty strings or strings beginning with numbers as variable names.
2016-02-14 01:50:47 -06:00
Scott Olson
2111098a3a
Don't consider strings starting with - or ' as variable names.
2016-02-14 01:29:48 -06:00
Scott Olson
f7980b4712
Parse foo-bar = expr
as an assignment.
2016-02-14 01:16:30 -06:00
Shea Levy
74f954ee62
Merge branch 'patch-1' of https://github.com/tsion/nix
...
Typo fix
2016-02-13 14:44:52 -05:00
Scott Olson
37b8e59f6f
Fix typo in nix-shell command reference.
2016-02-13 01:03:32 -07:00
Peter Simons
bd42510e49
nix-profile.sh.in: quote use of $HOME in shell arguments
...
All other places in the script do this already, so let's be consistent.
2016-02-12 13:24:25 +01:00
Eelco Dolstra
b3e8d72770
Merge pull request #762 from ctheune/ctheune-floats
...
Implement floats
2016-02-12 12:49:59 +01:00
Eelco Dolstra
ae4a3cfa03
Move addPermRoot into Store
2016-02-11 16:14:42 +01:00
Eelco Dolstra
fd205fb6f8
ref<T>: Add cast operator
2016-02-11 15:32:48 +01:00
Alex Cruice
ad0dc41899
Check shell profile is writeable before modifying
...
The `set -e` at the top of the script causes the installation to fail to
complete if the shell profile is not writeable. Checking file existence
only is not enough.
2016-02-10 11:57:50 +01:00
Eelco Dolstra
206bbb5dc9
Add basic "nix build" command
...
Currently only builds by attribute from <nixpkgs> or the specified
file, e.g. "nix build hello".
2016-02-09 21:34:24 +01:00
Eelco Dolstra
cd2196b089
Start of new Nix command-line interface
2016-02-09 21:28:29 +01:00
Eelco Dolstra
0db9e6cd1a
New command line parsing infrastructure
2016-02-09 21:07:48 +01:00
Eelco Dolstra
c780c1124e
More of the same
2016-02-04 15:10:47 +01:00
Eelco Dolstra
fa7cd5369b
StoreAPI -> Store
...
Calling a class an API is a bit redundant...
2016-02-04 14:48:42 +01:00
Eelco Dolstra
c10c61449f
Eliminate the "store" global variable
...
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-02-04 14:28:26 +01:00
Eelco Dolstra
4f7824c58e
Remove tests/lexer.sh
...
"tests/lang.sh" can handle this.
2016-02-01 18:27:37 +01:00