Permalink
Commits on Mar 28, 2017
  1. Ignore broken "Deriver: unknown-deriver" fields in .narinfo

    These were generated by a legacy tool.
    edolstra committed Mar 28, 2017
Commits on Mar 24, 2017
Commits on Mar 22, 2017
  1. Merge pull request #1287 from mattaudesse/readme-grammar-its-typo

    Fix minor grammatical nitpick ("it's" vs. "its") in `README.md`.
    edolstra committed on GitHub Mar 22, 2017
  2. Fix xz decompression

    Fixes #1285.
    edolstra committed Mar 22, 2017
Commits on Mar 21, 2017
  1. Only use cache.nixos.org when the store is /nix/store

    This is consistent with the behaviour of the old
    download-from-binary-cache substituter.
    edolstra committed Mar 21, 2017
  2. Require signatures by default

    This corresponds to the NixOS default.
    edolstra committed Mar 21, 2017
  3. Honor $NIX_SSHOPTS again

    NixOps needs this.
    edolstra committed Mar 21, 2017
Commits on Mar 20, 2017
  1. Merge pull request #1275 from steveeJ/patch-1

    nix-shell/pure: keep environment variable SHLVL
    edolstra committed on GitHub Mar 20, 2017
Commits on Mar 16, 2017
  1. nix copy: Make -r option use the "from" store

    Previously, we tried to compute the closure in the local store, which
    obviously doesn't work.
    edolstra committed Mar 16, 2017
  2. copyPaths(): Don't query path info for a path the target already has

    For example, this cuts "nix-copy-closure --from" on a NixOS system
    closure from 15.9s to 0.5s.
    edolstra committed Mar 16, 2017
  3. LegacySSHStore: Provide a faster implementation of computeFSClosure()

    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).
    edolstra committed Mar 16, 2017
  4. Fix nix-copy-closure --to

    edolstra committed Mar 16, 2017
  5. Remove "killing process <pid>" messages

    They convey no useful information.
    edolstra committed Mar 16, 2017
  6. nix-copy-closure: Fix assertion failure

      $ ./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.
    edolstra committed Mar 16, 2017
Commits on Mar 15, 2017
  1. runProgram(): Distinguish between empty input and no input

    For example, if we call brotli with an empty input, it shouldn't read
    from the caller's stdin.
    edolstra committed Mar 15, 2017
  2. Compress NAR listings using the "text-compression" method

    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.
    edolstra committed Mar 14, 2017
  3. S3BinaryCacheStore: Set Content-Type

    This is necessary for serving log files to browsers.
    edolstra committed Mar 14, 2017
  4. S3BinaryCacheStore: Support compression of narinfo and log files

    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.
    edolstra committed Mar 14, 2017
  5. Fix assertion failure on SIGINT

      nix: src/libutil/compression.cc:142: virtual nix::XzSink::~XzSink(): Assertion `finished' failed.
    edolstra committed Mar 14, 2017
  6. Add support for brotli compression

    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.
    edolstra committed Mar 13, 2017
  7. BinaryCacheStore: Implement getBuildLog()

    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
    edolstra committed Mar 13, 2017
  8. Add a "nix log" command

    This replaces "nix-store --read-log". It checks the local store and
    any configured substituters for the requested logs.
    edolstra committed Mar 13, 2017