Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-02-04 | Use libsodium instead of OpenSSL for binary cache signing | Eelco Dolstra | 1 | -13/+12 | |
Sodium's Ed25519 signatures are much shorter than OpenSSL's RSA signatures. Public keys are also much shorter, so they're now specified directly in the nix.conf option ‘binary-cache-public-keys’. The new command ‘nix-store --generate-binary-cache-key’ generates and prints a public and secret key. | |||||
2015-01-30 | nix-install-package: follow symlinks | Jaka Hudoklin | 1 | -1/+1 | |
2015-01-28 | Moves runHook to a later execution position | Oliver Dunkl | 1 | -1/+1 | |
It moves runHook to a later position in the rcfile. After that we are able to set the PS1 environment-variable for a nix-shell environment e.g.: # turn the color of the prompt to blue shellHook = '' export PS1="\n\[\033[1;34m\][\u@\h:\w]$\[\033[0m\] "; ''; | |||||
2015-01-15 | Shut up "Wide character in print" warning in copy-from-other-stores.pl | Eelco Dolstra | 1 | -0/+1 | |
2015-01-15 | Set correct user agent for NAR downloads from binary caches | Eelco Dolstra | 1 | -2/+4 | |
2015-01-08 | nix-shell: Add --run flag | Eelco Dolstra | 1 | -2/+7 | |
‘--run’ is like ‘--command’, except that it runs the command in a non-interactive shell. This is important if you do things like: $ nix-shell --command make Hitting Ctrl-C while make is running drops you into the interactive Nix shell, which is probably not what you want. So you can now do $ nix-shell --run make instead. | |||||
2015-01-08 | nix-shell: Interpret filenames relative to the #!-script | Eelco Dolstra | 1 | -0/+7 | |
So you can have a script like: #! /usr/bin/env nix-shell #! nix-shell script.nix -i python import prettytable x = prettytable.PrettyTable(["Foo", "Bar"]) for i in range(1, 10): x.add_row([i, i**2]) print x with a ‘script.nix’ in the same directory: with import <nixpkgs> {}; runCommand "dummy" { buildInputs = [ python pythonPackages.prettytable ]; } "" (Of course, in this particular case, using the ‘-p’ flag is more convenient.) | |||||
2015-01-08 | Allow nix-shell to be used as a #! interpreter | Eelco Dolstra | 1 | -0/+37 | |
This allows scripts to fetch their own dependencies via nix-shell. For instance, here is a Haskell script that, when executed, pulls in GHC and the HTTP package: #! /usr/bin/env nix-shell #! nix-shell -i runghc -p haskellPackages.ghc haskellPackages.HTTP import Network.HTTP main = do resp <- Network.HTTP.simpleHTTP (getRequest "http://nixos.org/") body <- getResponseBody resp print (take 100 body) Or a Perl script that pulls in Perl and some CPAN packages: #! /usr/bin/env nix-shell #! nix-shell -i perl -p perl perlPackages.HTMLTokeParserSimple perlPackages.LWP use HTML::TokeParser::Simple; my $p = HTML::TokeParser::Simple->new(url => 'http://nixos.org/'); while (my $token = $p->get_tag("a")) { my $href = $token->get_attr("href"); print "$href\n" if $href; } Note that the options to nix-shell must be given on a separate line that starts with the magic string ‘#! nix-shell’. This is because ‘env’ does not allow passing arguments to an interpreter directly. | |||||
2015-01-07 | nix-shell --command: Remove bogus argument to "exit" | Eelco Dolstra | 1 | -1/+1 | |
Fixes "exit: Inappropriate: numeric argument required" errors. | |||||
2014-12-13 | Install cacert before running nix-channel | Eelco Dolstra | 1 | -5/+6 | |
Also, make it more robust against incorrent SSL_CERT_FILE values. | |||||
2014-12-10 | Include cacert in the binary tarball | Eelco Dolstra | 1 | -2/+5 | |
This prevents having to fetch Nixpkgs or cacert over http. | |||||
2014-12-10 | Always use https to fetch the Nixpkgs channel | Eelco Dolstra | 2 | -6/+2 | |
2014-12-10 | Fix bad comment | Eelco Dolstra | 1 | -1/+1 | |
2014-12-09 | Doh | Eelco Dolstra | 1 | -1/+1 | |
2014-12-09 | Add option to disable binary cache certificate checking | Eelco Dolstra | 1 | -1/+7 | |
2014-12-09 | Provide some fallback defaults for the CA bundle | Eelco Dolstra | 1 | -0/+2 | |
2014-12-09 | Use https://cache.nixos.org instead of http://cache.nixos.org | Eelco Dolstra | 1 | -1/+1 | |
2014-12-05 | Fix another operator precedence issue found by Perl 5.20 | Eelco Dolstra | 1 | -1/+1 | |
2014-11-18 | Add a test for the binary tarball installer | Eelco Dolstra | 1 | -2/+4 | |
2014-11-12 | build-remote.pl.in: Add some more trace messages | Eelco Dolstra | 1 | -0/+2 | |
This allows hydra-build to keep track of the actual build time (so excluding time required to copy closures around). | |||||
2014-11-04 | download-from-binary-cache.pl: Fix flushing of stderr | Eelco Dolstra | 1 | -0/+1 | |
2014-10-15 | Fix nix-copy-closure --from | Shea Levy | 1 | -1/+1 | |
http://hydra.nixos.org/build/15885652 | |||||
2014-10-15 | Revert "binary download: Use $NIX_CURL_FLAGS" | Eelco Dolstra | 1 | -1/+1 | |
This reverts commit bc4795919afac59af8f27d3c1f26ab404330f718. It breaks the build: http://hydra.nixos.org/build/15860847 | |||||
2014-10-14 | binary download: Use $NIX_CURL_FLAGS | wmertens | 1 | -1/+1 | |
As in https://github.com/NixOS/nixpkgs/blob/5c0816567d6b99bd2ef7c8ae5744f80a6a0372c4/pkgs/build-support/fetchurl/builder.sh#L17 | |||||
2014-10-14 | nix-channel: Add --rollback flag | Eelco Dolstra | 1 | -0/+14 | |
Fixes #368. | |||||
2014-10-14 | nix-channel --add: Validate URL / channel ID | Eelco Dolstra | 1 | -0/+2 | |
Fixes #369. | |||||
2014-10-14 | Remove unused @sshOpts flag | Eelco Dolstra | 1 | -2/+2 | |
Closes #300. | |||||
2014-10-14 | nix-copy-closure: Use strict | Eelco Dolstra | 1 | -0/+1 | |
2014-09-23 | Pass through --set from nix-install-package command line to nix-env | Shell Turner | 1 | -1/+5 | |
2014-09-05 | build-remote.pl: UTF-8-decode errors | Eelco Dolstra | 1 | -1/+2 | |
2014-09-05 | Fix build-remote.pl | Eelco Dolstra | 1 | -1/+4 | |
Apparently, turning on utf8 encoding on stderr changes its flushing behaviour, causing sendReply to not send anything. http://hydra.nixos.org/build/13944384 | |||||
2014-08-29 | Shut up "Wide character" warnings in Perl scripts | Eelco Dolstra | 10 | -0/+25 | |
2014-08-21 | Set a curl timeout on binary cache lookups | Eelco Dolstra | 1 | -0/+1 | |
2014-08-20 | Use proper quotes everywhere | Eelco Dolstra | 12 | -78/+80 | |
2014-08-17 | Propagate remote timeouts properly | Eelco Dolstra | 1 | -6/+1 | |
2014-08-17 | nix-build: Propagate exit status from nix-store -r | Eelco Dolstra | 1 | -1/+1 | |
2014-08-17 | build-remote.pl: Provide defaults for $NIX_CURRENT_LOAD and $NIX_REMOTE_SYSTEMS | Eelco Dolstra | 1 | -2/+2 | |
2014-08-13 | nix-shell: Use $XDG_RUNTIME_DIR | Eelco Dolstra | 1 | -1/+2 | |
This prevents collisions with other users. Fixes #262. | |||||
2014-08-13 | Use $XDG_RUNTIME_DIR for temporary files | Eelco Dolstra | 7 | -22/+7 | |
2014-08-07 | Warn about untrusted binary caches in extra-binary-caches | Eelco Dolstra | 1 | -2/+5 | |
2014-08-07 | nix-install-package: Use extra-binary-caches | Eelco Dolstra | 1 | -1/+1 | |
2014-08-07 | download-from-binary-cache.pl: Respect $SSL_CERT_FILE | Eelco Dolstra | 1 | -1/+1 | |
2014-08-07 | install-nix-from-closure.sh: Use https channel if possible | Eelco Dolstra | 1 | -1/+5 | |
2014-07-29 | install-nix-from-closure.sh: Install cacert | Eelco Dolstra | 1 | -0/+3 | |
2014-07-29 | nix-profile.sh: Set $SSL_CERT_FILE | Eelco Dolstra | 1 | -1/+10 | |
2014-07-24 | nix-copy-closure: Drop --bzip2, --xz, --show-progress | Eelco Dolstra | 2 | -16/+6 | |
These are too difficult to implement via nix-store --serve. ‘--show-progress’ could be re-implemented fairly easily via a sink/source wrapper class. | |||||
2014-07-24 | nix-copy-closure: Implement --gzip via ssh's -C flag | Eelco Dolstra | 1 | -2/+1 | |
2014-07-24 | Remove obsolete SSH master connection code | Eelco Dolstra | 1 | -1/+1 | |
2014-07-24 | Implement nix-copy-closure --from via nix-store --serve | Eelco Dolstra | 2 | -29/+10 | |
2014-07-24 | build-remote.pl: Be less verbose on failing builds | Eelco Dolstra | 1 | -1/+2 | |