Eelco Dolstra
4f7824c58e
Remove tests/lexer.sh
...
"tests/lang.sh" can handle this.
2016-02-01 18:27:37 +01:00
Vincent Ambo
009888e1ed
Add slides
2016-02-01 15:59:00 +01:00
Eelco Dolstra
d367b8e787
Add build mode to compute fixed-output derivation hashes
...
For example,
$ nix-build --hash -A nix-repl.src
will build the fixed-output derivation nix-repl.src (a fetchFromGitHub
call), but instead of *verifying* the hash given in the Nix
expression, it prints out the resulting hash, and then moves the
result to its content-addressed location in the Nix store. E.g
build produced path ‘/nix/store/504a4k6zi69dq0yjc0bm12pa65bccxam-nix-repl-8a2f5f0607540ffe56b56d52db544373e1efb980-src’ with sha256 hash ‘0cjablz01i0g9smnavhf86imwx1f9mnh5flax75i615ml71gsr88’
The goal of this is to make all nix-prefetch-* scripts unnecessary: we
can just let Nix run the real thing (i.e., the corresponding fetch*
derivation).
Another example:
$ nix-build --hash -E 'with import <nixpkgs> {}; fetchgit { url = "https://github.com/NixOS/nix.git "; sha256 = "ffffffffffffffffffffffffffffffffffffffffffffffffffff"; }'
...
git revision is 9e7c1a4bbd
...
build produced path ‘/nix/store/gmsnh9i7x4mb7pyd2ns7n3c9l90jfsi1-nix’ with sha256 hash ‘1188xb621diw89n25rifqg9lxnzpz7nj5bfh4i1y3dnis0dmc0zp’
(Having to specify a fake sha256 hash is a bit annoying...)
2016-01-31 12:18:09 +01:00
Eelco Dolstra
9e7c1a4bbd
Use the daemon when we don't have write access to the Nix database
2016-01-31 10:28:48 +01:00
Eelco Dolstra
4fa08f3edb
Untabify
2016-01-28 16:03:32 +01:00
Eelco Dolstra
26566cd28e
Untabify
2016-01-28 16:01:01 +01:00
Eelco Dolstra
9f14d7d33a
printMissing(): Propagate store argument
2016-01-28 15:16:06 +01:00
Eelco Dolstra
ca6d287b33
Add .dir-locals.el for Emacs
2016-01-28 11:12:04 +01:00
Eelco Dolstra
7899fc959d
Define HashType's size to allow it to be forward-declared
2016-01-27 17:46:01 +01:00
Eelco Dolstra
739bab0be7
Trivia
2016-01-27 17:18:31 +01:00
Eelco Dolstra
d45ad8fcf5
Make hashLength32() a method of Hash
2016-01-27 17:18:20 +01:00
Vincent Ambo
91d7f03000
Add compiled PDF for the plebs
2016-01-22 00:47:34 +01:00
Vincent Ambo
7bcbdfe81e
Smallcaps titles
2016-01-21 19:34:19 +01:00
Vincent Ambo
1eb2797d03
Update demo units, change font size
2016-01-21 19:32:37 +01:00
Vincent Ambo
d2e97f4042
Add some demo units
2016-01-21 16:21:39 +01:00
Vincent Ambo
f368f12a90
Minor corrections
2016-01-21 16:21:26 +01:00
Vincent Ambo
8e06fe4d92
Add notes for adoption slide
2016-01-21 15:04:02 +01:00
Vincent Ambo
487e936f3e
Add slides for criticism & adoption
2016-01-21 15:02:01 +01:00
Vincent Ambo
38f1823df2
Finish pre-demo slides
2016-01-21 14:40:11 +01:00
Vincent Ambo
ed1184b326
Add systemd basics & unit types
2016-01-21 12:46:26 +01:00
Vincent Ambo
f15a12bc4e
Add slides about classical init, systemd history
2016-01-20 17:52:42 +01:00
Vincent Ambo
0e0cb2ce25
Add presenter notes file
2016-01-20 17:27:06 +01:00
Eelco Dolstra
5b8c09c124
string2Int: Barf on negative numbers for unsigned types
2016-01-20 16:45:05 +01:00
Brian McKenna
3baf8be1d1
Fix broken call to shellwords
...
nix-shell shebangs were broken by 9018deab
2016-01-20 16:35:16 +01:00
Eelco Dolstra
5d8b7eb3e1
Revert "Revert "next try for "don't abort when given unmatched '}' with 'start-condition stack underflow'. This fixes #751 """
...
This reverts commit b669d3d2e8
.
2016-01-20 16:34:42 +01:00
Eelco Dolstra
84e01203a7
Bump
2016-01-20 16:34:37 +01:00
Vincent Ambo
e4feeda4a3
Add init system slide
2016-01-20 16:29:07 +01:00
Vincent Ambo
cb21e47784
Initial check-in
2016-01-20 12:13:25 +01:00
Eelco Dolstra
da4495eb17
Fix eval
2016-01-20 00:26:51 +01:00
Eelco Dolstra
b669d3d2e8
Revert "next try for "don't abort when given unmatched '}' with 'start-condition stack underflow'. This fixes #751 ""
...
This reverts commit ed23c8568e
. Let's
merge this *after* the 1.11.1 release.
2016-01-20 00:05:28 +01:00
Shea Levy
7db05781a6
Merge branch 'lexer-regression-fix' of git://github.com/fkz/nix
2016-01-19 16:24:16 -05:00
Fabian Schmitthenner
ed23c8568e
next try for "don't abort when given unmatched '}' with 'start-condition stack underflow'. This fixes #751 "
...
This reverts commit 8120b6fb8a
and fixes the regression introduced in
8d22b26448
.
2016-01-19 20:35:35 +00:00
Eelco Dolstra
9fff492561
Add tests for Nixpkgs/NixOS evaluation
2016-01-19 21:10:32 +01:00
Eelco Dolstra
ef53735f28
Do a 1.11.1 brown paper bag release
2016-01-19 20:35:51 +01:00
Eelco Dolstra
8120b6fb8a
Revert "don't abort when given unmatched '}' with 'start-condition stack underflow'. This fixes #751 "
...
This reverts commit 8d22b26448
. 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-19 20:33:32 +01:00
Eelco Dolstra
4c8098f30c
Bump version
2016-01-19 14:15:48 +01:00
Eelco Dolstra
8b4577ac9d
Grmbl
2016-01-19 12:35:17 +01:00
Eelco Dolstra
d704abc0f3
Update release notes
2016-01-18 15:59:28 +01:00
Eelco Dolstra
71e5b937fb
Document --check
2016-01-18 15:54:14 +01:00
Eelco Dolstra
0824f40760
<nix/buildenv.nix>: Don't substitute
...
This should get rid of a certificate warning from "nix-env -i" early
in the install script.
2016-01-18 15:06:36 +01:00
Peter Simons
a1bf934044
doc/manual/command-ref/nix-collect-garbage.xml: document --max-freed option
...
Mention the --max-freed option in the nix-collect-garbage man page.
Related to https://github.com/NixOS/nix/issues/609 .
2016-01-18 13:25:36 +01:00
Shea Levy
a6d52fcd95
Merge branch 'lexer' of git://github.com/fkz/nix
2016-01-17 10:08:03 -05:00
Fabian Schmitthenner
8d22b26448
don't abort when given unmatched '}' with 'start-condition stack underflow'. This fixes #751
2016-01-12 20:40:41 +00:00
Eelco Dolstra
786046cf13
--option build-repeat: Keep the differing output if -K is given
...
Similar to 00903fa799
. Regardless of -K,
we now also print which output differs.
2016-01-12 18:26:24 +01:00
Eelco Dolstra
8906eda2f9
Canonicalize gids to 0
...
Previously files in the Nix store were owned by root or by nixbld,
depending on whether they were created by a substituter or by a
builder. This doesn't matter much, but causes spurious diffoscope
differences. So use root everywhere.
2016-01-12 17:27:40 +01:00
Eelco Dolstra
00903fa799
--check: Keep the differing output if -K is given
...
This makes it easier to investigate the non-determinism, e.g.
$ nix-build pkgs/stdenv/linux -A stage1.pkgs.zlib --check -K
error: derivation ‘/nix/store/l54i8wlw22656i4pk05c52ngv9rpl39q-zlib-1.2.8.drv’ may not be deterministic: output ‘/nix/store/11a27shh6n2ivi4a7s964i65ql80cf27-zlib-1.2.8’ differs from ‘/nix/store/11a27shh6n2ivi4a7s964i65ql80cf27-zlib-1.2.8-check’
$ diffoscope /nix/store/11a27shh6n2ivi4a7s964i65ql80cf27-zlib-1.2.8 /nix/store/11a27shh6n2ivi4a7s964i65ql80cf27-zlib-1.2.8-check
...
├── lib/libz.a
│ ├── metadata
│ │ @@ -1,15 +1,15 @@
│ │ -rw-r--r-- 30001/30000 3096 Jan 12 15:20 2016 adler32.o
...
│ │ +rw-r--r-- 30001/30000 3096 Jan 12 15:28 2016 adler32.o
...
2016-01-12 16:44:26 +01:00
Eelco Dolstra
0cad1f8049
--check: Fix "failed to produce output path"
...
This occured when sandbox building is disabled, at least one output
exists, and at least one other output does not.
2016-01-12 15:13:47 +01:00
Eelco Dolstra
1c57ab8b31
--check: Fix assertion failure when some outputs are missing
...
E.g.
$ nix-build pkgs/stdenv/linux/ -A stage1.pkgs.perl --check
nix-store: src/libstore/build.cc:1323: void nix::DerivationGoal::tryToBuild(): Assertion `buildMode != bmCheck || validPaths.size() == drv->outputs.size()' failed.
when perl.out exists but perl.man doesn't. The fix is to only check
the outputs that exist. Note that "nix-build -A stage1.pkgs.all
--check" will still give a (proper) error in this case.
2016-01-12 14:54:39 +01:00
Eelco Dolstra
ef7c2d8b3e
Revert "Do not override environment CFLAGS and CXXFLAGS"
...
This reverts commit 80ebd60e7c
. The
reason why we cleared CFLAGS/CXXFLAGS was because otherwise we get a
default value of -O2, which interferes with the defaults set in the
Makefile. (E.g. "make OPTIMIZE=0" should not pass -O2.)
2016-01-12 13:51:38 +01:00
Eelco Dolstra
4202b17666
Temporarily do Darwin builds from a different Nixpkgs branch
2016-01-08 10:48:48 +01:00