William Carroll
ee62bf5836
Ensures :w writes buffer even if there is nothing to save
2017-07-29 21:50:50 -04:00
William Carroll
e6eda451b5
Revises custom fns for evil window splitting
2017-07-29 21:50:11 -04:00
William Carroll
b3a40e423c
Activates nyan-cat-mode
2017-07-29 21:49:41 -04:00
William Carroll
3ad343ee23
Adds custom kbds for Man mode in emacs
2017-07-29 21:49:05 -04:00
William Carroll
5d8c7aa808
Adds hook to conditionally activate emacs tabbar
2017-07-29 21:47:48 -04:00
William Carroll
577fd84fdb
Loads helper functions extern file
2017-07-29 21:47:26 -04:00
William Carroll
81978e700a
Misc package updates
2017-07-29 21:46:52 -04:00
William Carroll
cc96fd9618
Removes dead helper fn
2017-07-29 21:45:59 -04:00
William Carroll
84789f0c33
Defines fn to conditionally activate emacs tabbar
2017-07-29 21:45:35 -04:00
William Carroll
3cc2f2bf62
Defines convenience function for quickly fuzzy-finding files
2017-07-29 21:41:52 -04:00
William Carroll
c05c4d7a02
Removes unnecessary tmux cfg line
2017-07-29 21:40:19 -04:00
William Carroll
40d9812e11
Persists erl and iex history with OTP 20 flag
2017-07-29 21:36:25 -04:00
William Carroll
11c71758d7
Defines git helpers for fuzzily adding and diffing files
2017-07-29 21:35:20 -04:00
William Carroll
4c5ea5a5b3
Sets git default push branch
2017-07-29 21:33:03 -04:00
William Carroll
a2f8dbadcf
Registers new slate kbds for Atom and Wireshark
2017-07-29 21:31:16 -04:00
William Carroll
bbf63601fd
Adds elixir-specific aliases
2017-07-29 21:30:34 -04:00
Eelco Dolstra
c7654bc491
nix-build: Fix regression causing all outputs to be built
2017-07-28 15:17:52 +02:00
Eelco Dolstra
af4689f9e9
nix-prefetch-url: Fix regression in hash printing
2017-07-28 14:56:39 +02:00
Eelco Dolstra
7480f4f9a4
builtins.fetchgit: Support specifying commit hashes
...
This adds an argument "rev" specififying the Git commit hash. The
existing argument "rev" is renamed to "ref". The default value for
"ref" is "master". When specifying a hash, it's necessary to specify a
ref since we're not cloning the entire repository but only fetching a
specific ref.
Example usage:
builtins.fetchgit {
url = https://github.com/NixOS/nixpkgs.git ;
ref = "release-16.03";
rev = "c1c0484041ab6f9c6858c8ade80a8477c9ae4442";
};
2017-07-27 18:08:23 +02:00
Eelco Dolstra
9f64cb89cb
builtins.fetchgit: Respect tarball-ttl
...
I.e. if the local ref is more recent than tarball-ttl seconds, then
don't check the remote.
2017-07-27 17:23:29 +02:00
Eelco Dolstra
69deca194e
builtins.fetchgit: Use proper refs locally
2017-07-27 17:02:25 +02:00
Eelco Dolstra
6d7de7f3de
builtins.fetchgit: Cache hash -> store path mappings
...
This prevents an expensive call to addToStore() in the cached case.
2017-07-27 16:16:08 +02:00
Eelco Dolstra
57b9505731
nix search: Add a cache
...
The package list is now cached in
~/.cache/nix/package-search.json. This gives a substantial speedup to
"nix search" queries. For example (on an SSD):
First run: (no package search cache, cold page cache)
$ time nix search blender
Attribute name: nixpkgs.blender
Package name: blender
Version: 2.78c
Description: 3D Creation/Animation/Publishing System
real 0m6.516s
Second run: (package search cache populated)
$ time nix search blender
Attribute name: nixpkgs.blender
Package name: blender
Version: 2.78c
Description: 3D Creation/Animation/Publishing System
real 0m0.143s
2017-07-26 17:29:10 +02:00
Eelco Dolstra
4c9ff89c26
nix-build/nix-shell: Eliminate call to nix-instantiate / nix-store
...
Note that this removes the need for a derivation symlink, so the
--drv-path and --add-drv-link flags now do nothing.
2017-07-26 17:29:09 +02:00
Eelco Dolstra
c94f3d5575
nix-shell: Use bashInteractive from <nixpkgs>
...
This adds about 0.1s to nix-shell runtime in the case where
bashInteractive already exists.
See discussion at https://github.com/NixOS/nixpkgs/issues/27493 .
2017-07-20 13:50:25 +02:00
Eelco Dolstra
57a30e101b
nix search: Ignore top-level eval errors
...
$NIX_PATH may contain elements that don't evaluate to an attrset (like
"nixos-config"), so ignore those.
2017-07-20 13:33:13 +02:00
Eelco Dolstra
fc3568e263
FD_SETSIZE check: BuildError -> Error
...
BuildError denotes a permanent build failure, which is not the case
here.
2017-07-20 13:33:13 +02:00
Eelco Dolstra
b144c4d617
nix search: Add --json flag
2017-07-20 13:33:13 +02:00
Eelco Dolstra
90825dea51
Add "nix search" command
2017-07-20 13:33:13 +02:00
Eelco Dolstra
3162ad5ff4
Merge pull request #1471 from veprbl/fdsetsize
...
Do not try to fill fd_set with fd>=FD_SETSIZE
2017-07-19 11:15:19 +02:00
Dmitry Kalinkin
d5e1bffd2a
Do not try to fill fd_set with fd>=FD_SETSIZE
...
This is UB and causes buffer overflow and crash on linux.
2017-07-18 17:51:50 -04:00
Domen Kožar
72462b4b6e
Merge pull request #1470 from grahamc/patch-1
...
Update mailing list.
2017-07-18 14:10:58 +02:00
Graham Christensen
364f75e03a
Update mailing list.
2017-07-18 08:04:01 -04:00
Graham Christensen
da2ad30054
Update the mailing list.
2017-07-18 08:02:53 -04:00
Eelco Dolstra
bf6792c0df
Always use base-16 for hashed mirror lookups
...
In particular, don't use base-64, which we don't support. (We do have
base-32 redirects for hysterical reasons.)
Also, add a test for the hashed mirror feature.
2017-07-17 13:13:18 +02:00
Eelco Dolstra
49304bae81
Make the hashes mirrors used by builtins.fetchurl configurable
...
In particular, this allows it to be disabled in our tests.
2017-07-17 13:07:08 +02:00
Eelco Dolstra
4ec6eb1fdf
Fix accidental printError
2017-07-17 11:38:15 +02:00
Chris Feng
7d967e7361
Allow customizing workspace indexes
...
* exwm-workspace.el (exwm-workspace-index-map): New variable for
customizing workspace indexes.
(exwm-workspace--update-switch-history): Use it.
2017-07-16 17:08:24 +08:00
Domen Kožar
f3e432305a
Merge pull request #1467 from alicebob/nomd5
...
use sha256 hashes in the examples
2017-07-16 10:58:30 +02:00
Harmen
1e0f59ae14
use sha256 hashes in the examples
...
And fix a dead link.
2017-07-15 21:06:30 +02:00
Eelco Dolstra
766ad5db3b
nix path-info: Show download sizes for binary cache stores
...
E.g.
$ nix path-info --json --store https://cache.nixos.org nixpkgs.thunderbird -S
...
"downloadHash": "sha256:1jlixpzi225wwa0f4xdrwrqgi47ip1qpj9p06fyxxg07sfmyi4q0",
"downloadSize": 43047620,
"closureDownloadSize": 84745960
}
]
2017-07-14 18:29:10 +02:00
Eelco Dolstra
fdc9da034f
Avoid a call to derivationFromPath()
...
This doesn't work in read-only mode, ensuring that operations like
nix path-info --store https://cache.nixos.org -S nixpkgs.hello
(asking for the closure size of nixpkgs.hello in cache.nixos.org) work
when nixpkgs.hello doesn't exist in the local store.
2017-07-14 18:29:10 +02:00
Eelco Dolstra
3908d3929c
nix path-info: Don't barf on invalid paths
...
Now you get
[
{
"path": "/nix/store/fzvliz4j5xzvnd0w5zgw2l0ksqh578yk-bla",
"valid": false
}
]
2017-07-14 18:29:10 +02:00
Eelco Dolstra
6438ba22af
StorePathsCommand: Don't build installables
...
On second though this was annoying. E.g. "nix log nixpkgs.hello" would
build/download Hello first, even though the log can be fetched
directly from the binary cache.
May need to revisit this.
2017-07-14 18:29:07 +02:00
Eelco Dolstra
15e8bd3bcb
Merge pull request #1466 from grahamc/nix-master-darwin-install
...
Multi-user installer for Darwin (master edition)
2017-07-14 18:25:02 +02:00
Graham Christensen
e0d39c8dc4
Rename PINCH_ME_IM_SILLY to ALLOW_PREEXISTING_INSTALLATION
2017-07-14 12:11:33 -04:00
Graham Christensen
12f6bb33d2
If there is no TTY, also skip verbose sudo messages
2017-07-14 12:11:30 -04:00
Graham Christensen
ce2281e6d8
Ensure PINCH_ME_IM_SILLY allows a /nix/store to stick around between builds
...
Also output in the status report that the user is very silly
2017-07-14 12:11:26 -04:00
Graham Christensen
1c7ce2a018
Assume yes if we have no TTY
...
Starve the TTY of input to ensure this works, but provide yes to the
current installer to handle the current broken case.
2017-07-14 12:11:23 -04:00
Graham Christensen
73a57a2f22
Cleanup and more specificity around set -e
2017-07-14 12:11:20 -04:00