Eelco Dolstra
0163e8928c
Fix broken uploadProgressCallback closure
...
Since the callback is global we can't refer to 'path' in it. This
could cause a segfault or printing of arbitrary data.
2018-10-30 11:45:31 +01:00
Eelco Dolstra
056c3fbbfc
Merge pull request #2494 from FPtje/fix-copy-from-old
...
copyStorePath: Fix hash errors when copying from older store
2018-10-29 20:45:25 +01:00
Falco Peijnenburg
49e272f647
copyStorePath: Fix hash errors when copying from older store
...
This commit partially reverts 48662d151b . When
copying from an older store (in my case a store running Nix 1.11.7), nix would
throw errors about there being no hash. This is fixed by recalculating the hash.
2018-10-29 20:24:37 +01:00
Will Dietz
2a8bdfd31a
editline: 1.15.3 -> 1.16.0
...
Bump fallback editline expression to latest in nixpkgs.
2018-10-29 08:47:46 -05:00
Will Dietz
9f998096d2
repl: complete if all matches share prefix
2018-10-29 08:45:04 -05:00
Will Dietz
3d974d31fa
editline: wip
2018-10-29 08:44:58 -05:00
Eelco Dolstra
f90a67e24d
Merge pull request #2495 from LnL7/doctor-exit-code
...
nix doctor: return nonzero exitcode if a check fails
2018-10-29 13:19:55 +01:00
Daiderd Jordan
8e6bf49297
nix doctor: return nonzero exitcode if a check fails
...
This makes it easier to use this when testing the installer or when
running the checks with other automated tooling.
2018-10-29 12:09:22 +00:00
Vincent Ambo
32fa661a27
feat(adho): Add Gatwick wifi network
2018-10-28 23:40:20 +01:00
Eelco Dolstra
18b4c53f71
Restore old (dis)allowedRequisites behaviour for self-references
...
stdenv relies on this. So ignore self-references (but only in legacy non-structured attributes mode).
2018-10-27 15:41:53 +02:00
Nick Dimov
73fc5fc4b9
Support for a new SP2 device.
...
It returns different codes for check and checknl.
2018-10-27 16:15:47 +03:00
Eelco Dolstra
1427958b3c
Merge branch 'simplify-lexer' of https://github.com/layus/nix
2018-10-27 13:42:06 +02:00
Eelco Dolstra
0c61515be1
Fix signedness warning
2018-10-27 13:07:26 +02:00
Eelco Dolstra
63575ffa38
Merge branch 'nix-doctor' of https://github.com/LnL7/nix
2018-10-27 12:54:22 +02:00
Eelco Dolstra
2cf98218c8
Merge pull request #2488 from dtzWill/fix/struct-class-minor
...
remote-store.hh: ConnectionHandle is struct, minor fix warning
2018-10-27 12:50:16 +02:00
Eelco Dolstra
cb073f5218
Merge pull request #2487 from dtzWill/fix/symlink-names
...
src/nix/local.mk: fix typos in names of symlinks
2018-10-27 12:49:05 +02:00
Guillaume Maudoux
6a5bf9b143
simplify handling of extra '}'
2018-10-27 00:14:51 +02:00
Will Dietz
9d24b5d56e
nix-prefetch-url: progressbar
2018-10-26 13:19:10 -05:00
Will Dietz
3283c0dc45
remote-store.hh: ConnectionHandle is struct, minor fix warning
2018-10-26 13:15:48 -05:00
Will Dietz
27c2fcd4c0
src/nix/local.mk: fix typos in names of symlinks
2018-10-26 13:15:07 -05:00
Eelco Dolstra
f6a3dfe4e0
Merge all nix-* binaries into nix
...
These are all symlinks to 'nix' now, reducing the installed size by
about ~1.7 MiB.
2018-10-26 12:54:00 +02:00
Vincent Ambo
909c7bdf21
feat(pkgs): Install omnisharp and friends
2018-10-25 11:25:29 +02:00
Vincent Ambo
0e8f4832ed
feat(adho): Add various wifi networks (NixCon etc.)
2018-10-25 11:25:09 +02:00
Eelco Dolstra
c47e14ee45
Merge pull request #2483 from mayflower/tail-config
...
Promote verbose-build and log-lines
2018-10-23 16:59:52 +02:00
Linus Heckemann
a25abe823f
Promote log-lines to a fully-qualified option
...
This allows commands like
nix build --log-lines 30 nixpkgs.hello
in order to obtain more information in case of a failure.
2018-10-23 16:54:24 +02:00
Eelco Dolstra
1a08ad75ea
Merge pull request #2479 from nlewo/graphml
...
Add --graphml option to the nix-store --query command
2018-10-23 15:56:05 +02:00
Eelco Dolstra
3cd15c5b1f
Per-output reference and closure size checks
...
In structured-attributes derivations, you can now specify per-output
checks such as:
outputChecks."out" = {
# The closure of 'out' must not be larger than 256 MiB.
maxClosureSize = 256 * 1024 * 1024;
# It must not refer to C compiler or to the 'dev' output.
disallowedRequisites = [ stdenv.cc "dev" ];
};
outputChecks."dev" = {
# The 'dev' output must not be larger than 128 KiB.
maxSize = 128 * 1024;
};
Also fixed a bug in allowedRequisites that caused it to ignore
self-references.
2018-10-23 01:29:16 +02:00
Antoine Eiche
d506342aa2
Remove the --xml query command option
...
The `--graphml` option can be used instead.
2018-10-20 09:48:53 +02:00
Antoine Eiche
73c2ae43f0
Add --graphml option to the nix-store --query command
...
This prints the references graph of the store paths in the graphML
format [1]. The graphML format is supported by several graph tools
such as the Python Networkx library or the Apache Thinkerpop project.
[1] http://graphml.graphdrawing.org
2018-10-20 09:48:34 +02:00
Eelco Dolstra
7a9ac91a43
Merge pull request #2481 from graham-at-target/patch-1
...
install script: remove unportable command check, fixup errant escape
2018-10-17 15:16:04 +02:00
Eelco Dolstra
bd78544f66
Fix assertion failure in Store::queryPathInfo()
...
$ nix-store -qR /nix/store/fnord
nix-store: src/libstore/store-api.cc:80: std::__cxx11::string nix::storePathToHash(const Path&): Assertion `base.size() >= storePathHashLen' failed.
Aborted
2018-10-16 23:39:36 +02:00
Eelco Dolstra
79e358ce6d
RemoteStore: Close connection if an exception occurs
...
Fixes #2075 .
2018-10-16 23:36:15 +02:00
Eelco Dolstra
ba51100d64
Get rid of UDSRemoteStore::Connection
...
Since its superclass RemoteStore::Connection contains 'to' and 'from'
fields that refer to the file descriptor maintained in the subclass,
it was possible for the flush() call in Connection::~Connection() to
write to a closed file descriptor (or worse, a file descriptor now
referencing another file). So make sure that the file descriptor
survives 'to' and 'from'.
2018-10-16 22:58:01 +02:00
Graham Christensen (Target)
ea41838ae0
install script: remove unportable command check, fixup errant escape
...
`which` isn't necessarily portable, but `command -v` is an equivalent form.
Additionally, the `\'` is not necessary, as it is already quoted by `"`.
2018-10-16 10:22:36 -04:00
Vincent Ambo
3ec17661bd
feat(emacs): Install meghanada-mode
2018-10-14 16:20:28 +02:00
Vincent Ambo
68e8692f03
fix(pkgs): Backport exa from unstable channel
2018-10-14 16:20:15 +02:00
Vincent Ambo
c423b264ea
chore(pkgs): Bump channel versions
2018-10-14 16:20:07 +02:00
Vincent Ambo
0dd84abd44
fix(dotfiles): Disable Alacritty's visual bell
...
It's v e r y annoying.
2018-10-14 15:47:43 +02:00
Vincent Ambo
9fed0bdb45
docs(README): Add note about inclusion in NixOS 18.09
2018-10-10 15:16:37 +02:00
Vincent Ambo
ab65fb2371
fix(adho): Disable Nix sandbox on adho
...
Sandboxing was enabled by default in NixOS 18.09, but it breaks some
of the less-than-clean work build setups.
2018-10-10 13:34:34 +02:00
Vincent Ambo
ff1f5271f4
chore(dotfiles): Update Alacritty configuration for new version
2018-10-10 12:55:28 +02:00
Vincent Ambo
cd10aa4754
feat(pkgs): Install chromium
2018-10-10 12:55:12 +02:00
Vincent Ambo
12ce508508
chore(adho): Enable kvm-intel kernel module
...
Suggested by nixos-generate-config.
2018-10-10 12:54:59 +02:00
Vincent Ambo
c7e60c1de4
chore(emacs): Remove manually upgraded packages that are in 18.09
...
Removes a whole bunch of manually pinned packages that were moved into
stable in 18.09.
However, it should be noted that `sly` is again broken in stable.
2018-10-10 11:21:15 +02:00
Vincent Ambo
d3058c0d0b
fix(pkgs): Remove manually installed cargo
...
This conflicts with the rustup binary otherwise.
2018-10-10 11:20:40 +02:00
Vincent Ambo
78ae29aac4
feat(pkgs): Bump channels to latest
...
This moves to NixOS 18.09.
2018-10-10 11:20:22 +02:00
Vincent Ambo
dc1674f2a1
feat(adho): Add Homan Bistro wifi
2018-10-10 11:20:07 +02:00
Vincent Ambo
67d016029c
chore: Disable Redis service on all machines
2018-10-10 11:19:54 +02:00
Eelco Dolstra
9617a04354
Merge pull request #2454 from dtzWill/update/nixpkgs-1809
...
bump base nixpkgs used by default 18.03 -> 18.09
2018-10-09 13:56:33 +02:00
Vincent Ambo
623a84f6f8
refactor: Require directory instead of file path for cursors
...
The previous change, which makes journaldriver write the cursor
position in two steps, requires that journaldriver can write files
adjacent to the cursor position file itself.
Instead of simply guessing that this is possible (e.g. by changing the
file suffix), expect the user to provide a directory that
journaldriver can work with.
2018-10-09 11:38:41 +02:00