Commit graph

9997 commits

Author SHA1 Message Date
Jim Garrison
b07b3b0264 Make Debian package depend on libcurl3-nss
Otherwise nix-env fails to start if it is not installed
2015-12-14 19:42:42 -08:00
Eelco Dolstra
32ea8a9898 Merge pull request #732 from puffnfresh/patch-1
Use shellwords for nix-shell shebang
2015-12-14 13:45:33 +01:00
Vincent Ambo
af87ca21ee Various changes 2015-12-14 00:04:29 +01:00
Eelco Dolstra
399397c907 Fix coverage build 2015-12-10 11:47:34 +01:00
Eelco Dolstra
8f67325a7c Build sandbox support etc. unconditionally on Linux
Also, use "#if __APPLE__" instead of "#if SANDBOX_ENABLED" to prevent
ambiguity.
2015-12-10 11:47:17 +01:00
Eelco Dolstra
7431932b29 Merge pull request #734 from bjornfor/hash-mismatch-message
Clarify error message for hash mismatches (again)
2015-12-08 19:53:48 +01:00
Bjørn Forsman
65bd82d42a Clarify error message for hash mismatches (again)
This is arguably nitpicky, but I think this new formulation is even
clearer. My thinking is that it's easier to comprehend when the
calculated hash value is displayed close to the output path. (I think it
is somewhat similar to eliminating double negatives in logic
statements.)

The formulation is inspired / copied from the OpenEmbedded build tool,
bitbake.
2015-12-08 19:50:25 +01:00
Brian McKenna
9018deab6c Use shellwords for nix-shell shebang
Previously we can't have quoted arguments.

This now allows us to use things like `ghcWithPackages`
2015-12-07 11:31:26 +11:00
Jeremy Shaw
3afa16e16f Clarify installation error message that is shown when /nix/store exists but is not writable by the user 2015-12-06 11:00:03 -06:00
Ludovic Courtès
d1e3bf01bc daemon: Add 'buildMode' parameter to 'buildPaths' RPC 2015-12-02 18:14:49 +01:00
Eelco Dolstra
8063fc497a Use deterministic $TMPDIR in sandbox
Rather than using $<host-TMPDIR>/nix-build-<drvname>-<number>, the
temporary directory is now always /tmp/nix-build-<drvname>-0. This
improves bitwise-exact reproducibility for builds that store $TMPDIR
in their build output. (Of course, those should still be fixed...)
2015-12-02 15:04:00 +01:00
Vincent Ambo
e949c5e812 [build] Cache Docker dependencies 2015-11-29 16:52:17 +01:00
Danny Wilson
69b9d8fdbd Use DT_UNKNOWN when dirent d_type extension is not supported.
edolstra:
“…since callers of readDirectory have to handle the possibility of
 DT_UNKNOWN anyway, and we don't want to do a stat call for every
 directory entry unless it's really needed.”
2015-11-25 21:57:19 +01:00
Shea Levy
f327970129 Merge branch 'auto-call-functor'
autoCallFunction now auto-calls functors
2015-11-25 11:57:31 -05:00
Shea Levy
9533532ce2 autoCallFunction: Auto-call functors 2015-11-25 11:56:14 -05:00
Eelco Dolstra
bfb6c4876a Merge pull request #617 from Preston4tw/patch-1
Update nix.spec.in
2015-11-25 17:21:16 +01:00
Eelco Dolstra
c0d4173263 Set default binary-caches-parallel-connections to 25
Some benchmarking suggested this as a good value. Running

  $ benchmark -f ... -t 25 -- sh -c 'rm -f /nix/var/nix/binary-cache*; nix-store -r /nix/store/x5z8a2yvz8h6ccmhwrwrp9igg03575jg-nixos-15.09.git.5fd87e1M.drv --dry-run --option binary-caches-parallel-connections <N>'

gave the following mean elapsed times for these values of N:

N=10:  3.3541
N=20:  2.9320
N=25:  2.6690
N=30:  2.9417
N=50:  3.2021
N=100: 3.5718
N=150: 4.2079

Memory usage is also reduced (N=150 used 186 MB, N=25 only 68 MB).

Closes #708.
2015-11-25 17:13:11 +01:00
Eelco Dolstra
efd6a8c9f6 Fix Ubuntu/Debian/Fedora builds 2015-11-25 16:12:30 +01:00
Eelco Dolstra
0ab4d905e7 Merge branch 'p/sandbox-rename-minimal' of https://github.com/vcunat/nix 2015-11-25 14:53:42 +01:00
Eelco Dolstra
27d6ed5c68 Remove sandboxProfile from release.nix
There is really no conceivable reason why building Nix would need
access to the host's nix.conf. If it does, it's a bug, and we should
fix that instead.
2015-11-25 14:45:27 +01:00
Eelco Dolstra
a0f0733413 Fix build failure introduced by #704
Also, make the FreeBSD checks conditional on FreeBSD.
2015-11-25 14:41:19 +01:00
Eelco Dolstra
afef347157 Merge pull request #712 from pSub/print-meta-license
Print license information on '--xml --meta'
2015-11-25 14:00:52 +01:00
Eelco Dolstra
4c1c7e5812 Merge pull request #716 from ebzzry/master
Fixed typo.
2015-11-24 19:31:10 +01:00
Eelco Dolstra
cad40adce5 Merge pull request #704 from ysangkok/freebsd-support
FreeBSD support with knowledge about Linux emulation
2015-11-24 19:24:21 +01:00
Vincent Ambo
792fe17f35 Version 5.1.2 2015-11-24 14:07:57 +01:00
Vincent Ambo
599d765903 [blog] Add a deleteEntry function, only for CLI 2015-11-24 14:07:31 +01:00
Vincent Ambo
94788f1f92 [varnish & k8s] Minor config updates 2015-11-24 14:07:20 +01:00
Vincent Ambo
35dba3b211 [5.1.1] Add meta-description tag 2015-11-23 16:36:42 +01:00
Rommel M. Martinez
cf141abfe9 Fixed typo. 2015-11-23 15:59:57 +08:00
Shea Levy
6c10bd7c5e Merge branch 'host-deps' of git://github.com/pikajude/nix
Reintroduces the functionality that allows the baked-in pre-build-hook to find framework dependencies
2015-11-21 20:28:13 -05:00
Jude Taylor
279fa8f618 reintroduce host deps in tandem with sandbox profiles 2015-11-21 15:57:06 -08:00
Shea Levy
e0bd114e09 Revert "remove sandbox-defaults.sb"
As discussed in NixOS/nixpkgs#11001, we still need some of the old
sandbox mechanism.

This reverts commit d760c2638c.
2015-11-21 16:40:24 -05:00
Vincent Ambo
6138a8b0f8 [varnish] Add X-Cache headers 2015-11-21 21:20:12 +01:00
Vincent Ambo
813c273e68 [varnish] Add HSTS header on redirect 2015-11-21 20:50:02 +01:00
Vincent Ambo
7458430485 [k8s] Update hitch flags to use PROXY to Varnish 2015-11-21 20:31:05 +01:00
Vincent Ambo
8390d14877 [varnish] Fix www. redirect 2015-11-21 20:30:50 +01:00
Vincent Ambo
a3a2afdc59 [varnish] Use Varnish 4.1, redirect to HTTPS 2015-11-21 19:49:36 +01:00
Vincent Ambo
9b403a625f [5.1] Version 5.1 2015-11-21 19:09:56 +01:00
Vincent Ambo
41599161fa [blog] Update error page for new design 2015-11-21 19:07:30 +01:00
Vincent Ambo
d7d428d597 [locale/blog] Remove other unused code 2015-11-21 19:05:17 +01:00
Vincent Ambo
a68d6cfa31 [locale/blog] Remove unused locale strings 2015-11-21 19:01:05 +01:00
Vincent Ambo
4c961c4ac6 Rename res/ to static/ 2015-11-21 18:56:08 +01:00
Vincent Ambo
6bc3802646 [res] Remove old background images 2015-11-21 18:54:57 +01:00
Vincent Ambo
80b6f2ca1f [blog] Add inline class on headers 2015-11-21 18:37:29 +01:00
Vincent Ambo
28b00ef3d4 [blog] Minor design fixes 2015-11-21 18:31:39 +01:00
Vincent Ambo
e6a20995f5 [blog] Remove unneeded Lucius usage 2015-11-21 18:27:25 +01:00
Vincent Ambo
8f8cb132fb [varnish] Add HSTS header to every response 2015-11-21 18:25:22 +01:00
Vincent Ambo
4a6dcafaad [k8s] Specify Hitch backend correctly 2015-11-21 18:25:12 +01:00
Vincent Ambo
6201e24c0b
[res] Remove some unnecessary files 2015-11-21 17:25:07 +01:00
Vincent Ambo
9f33d98db5
[blog] Implement new and simpler design 2015-11-21 17:24:01 +01:00