Commit graph

155 commits

Author SHA1 Message Date
Jörg Thalheim
083ac16bf5 bump version 1.5.0 2021-10-21 07:50:57 +02:00
Jörg Thalheim
8110535675 README: update fetchurl checksum 2021-10-21 07:47:48 +02:00
Julien Debon
09f97b357c
Explain customizing the nix file name 2021-10-19 13:47:02 +02:00
SEKUN
5dfd5220dc
Update lorri link in README 2021-08-29 23:14:51 +00:00
Jörg Thalheim
6461344126
README: update nix-direnv 2021-07-01 10:47:57 +02:00
Thomas Bach
e890fb5ec0 fix(doc): document how to enable flake support on NixOS
Due to NixOS making nix-direnv use the stable version of nix by
default we get this error when using flakes:

direnv: using flake
error: 'print-dev-env' is not a recognised command
[…]
error: 'flake' is not a recognised command

This can be worked around by passing `enableFlakes = true` to the
package.

See also #92.
2021-06-29 14:36:07 +02:00
JesusMtnez
dcf67cd1b5
Update installation via home-manager documentation 2021-06-16 06:09:42 +02:00
Jörg Thalheim
4cb1aa4f10
README: fix checksum 2021-06-03 18:55:23 +02:00
Jörg Thalheim
f2fd3f433c
bump version 1.4.0 2021-06-03 18:44:32 +02:00
Jörg Thalheim
3d58c3270b
README: fix hash 2021-06-03 17:26:45 +02:00
Jörg Thalheim
40b96cbd35
add nixify/flakify helper 2021-05-29 13:04:44 +02:00
Jörg Thalheim
4e437fc64f
Merge branch 'master' into outoftree_flake 2021-05-29 10:13:53 +02:00
Jörg Thalheim
5655ef0fbd
add project template 2021-05-29 09:43:52 +02:00
Dominique Martinet
fd12ba39f3 use flake: allow optional flake expression
This allows using flake.nix out of tree, which is very appreciable
if you develop in a big repository as flake evaluation will copy the
whole git archive to store everytime it changes.
2021-05-26 13:49:31 +09:00
Jörg Thalheim
eb0a0bbea5
README: update fetchurl checksum 2021-05-19 07:23:40 +02:00
Jörg Thalheim
a14fc56bdf
bump version 1.3.0 2021-05-19 07:13:59 +02:00
bb010g
9f40e3b1c3
direnvrc: Add nix_direnv_version
In the style of direnv's `direnv_version`.
729fbecd96/stdlib.go (L1173-L1179)

Can be tested for with `has`, e.g. to decide on using `source_url`.
2021-05-19 06:47:20 +02:00
Jörg Thalheim
adfca0d26d
update direnv checksum 2021-05-14 08:50:31 +02:00
Jörg Thalheim
1857c3f8ed
bump version 1.2.6 2021-05-14 08:46:30 +02:00
Jörg Thalheim
d29647fa64
update direnvrc checksum 2021-05-09 08:43:08 +02:00
Jörg Thalheim
5b754502ad
bump version 1.2.5 2021-05-09 08:39:02 +02:00
seb314
d8d3c7cd7a README: mention shell hook setup 2021-04-17 14:27:14 +02:00
Jörg Thalheim
2c87a8d83f
README: update source_url 2021-03-30 12:57:56 +02:00
David Houston
46374a40b4
Add "Nix" tags to 3 Nix code blocks to enable syntax highlighting, add "bash" tag to one. 2021-03-24 19:54:26 -04:00
Olivier Nicole
a90f24191e
Avoid pitfall in home-manager config instructions
When I followed the README, direnv did not get hooked into zsh because I had zsh installed at the system level, rather than enabled in my `home-manager` configuration. I suggest you make it explicit that it must be the case for the `home.nix` changes to work.
2021-03-11 16:12:46 +01:00
Jörg Thalheim
04f80bf417
README.md: update source_url 2021-02-16 14:19:53 +01:00
Jörg Thalheim
afe42485d0
re-tested lorri 2021-02-11 10:17:51 +01:00
Jörg Thalheim
5299609865
README: update source_url 2021-01-30 19:49:47 +01:00
Jörg Thalheim
dff7b0bfe9
bump version 1.2.1 2021-01-10 08:46:34 +01:00
Jörg Thalheim
246a0fbe3a
REAMDE: link to other projects, improve evaluation cache invalidation 2021-01-10 08:32:07 +01:00
Jörg Thalheim
a5d469806c
add source_url installation 2020-12-31 07:55:12 +01:00
Jörg Thalheim
e19d62fc02
use_flake: add gcroot for inputs 2020-12-25 17:29:44 +01:00
Jörg Thalheim
b54e2f2c4b
README: fix usuage example 2020-10-25 20:08:08 +00:00
Erik Arvstedt
c9f9be0a46 README: minor formatting/wording fixes 2020-10-24 08:46:43 +02:00
Erik Arvstedt
2aa433e90e README: fix direnv_layout_dir setup
The static setup of `direnv_layout_dir` in `direnvrc` leads to the
creation of separate layout dirs and nix shell caches for each
subdirectory of a project.
Reason: When `direnvrc` is evaluated, `PWD` has the value of the calling
user's shell, instead of pointing to the project directory (the dir containing `.envrc`).

Fix this by dynamically evaluating `$PWD` in a function.
Dynamic evaluation is also required when `.envrc` includes (via `source_*`) `.envrc`
files from other projects because `$PWD` changes in this case.

Cache the computed layout paths because `shasum` is
fairly expensive (13 ms on my desktop system).
2020-10-23 15:30:52 +02:00
DavHau
35f310f1a2
readme: add direnv to systemPackages in configuration.nix 2020-09-26 14:10:55 +07:00
Jörg Thalheim
c28d4ef615
README: restructure installation section 2020-09-26 08:04:10 +02:00
Manu S Ajith
e8c54c3f64
Fix typo in readme. (#39) 2020-09-18 16:49:14 +02:00
Jörg Thalheim
682f750d0a
README: update advantages of nix-direnv over lorri 2020-08-15 09:59:01 +01:00
Jörg Thalheim
67eb84ddb5
README: document how to trigger re-evaluation 2020-08-15 09:54:34 +01:00
Jörg Thalheim
666edff7fe
README.md: improve FAQ 2020-08-13 20:53:12 +01:00
Jörg Thalheim
8a397b7eb2
improve documentation for use_flake 2020-08-11 07:08:36 +01:00
Jörg Thalheim
d1bf45b1bf
add usage example 2020-08-10 09:56:24 +01:00
Steve Purcell
9149cf8985
README updates
- Make it clearer this is a re-implementation of `use_nix`
- Grammar/spelling fixes
- Clarifications
2020-06-30 08:55:11 +12:00
pca006132
0d42dad65a
updated installation guide for home-manager 2020-06-07 17:32:14 +08:00
Vincent Breitmoser
b22d941231
readme: update home-manager instructions
Update readme with a more home-managery way of installing nix-direnv in home-manager.
2020-05-25 23:44:14 +02:00
Jörg Thalheim
268a02754f
update installations instructions 2020-05-11 09:20:15 +01:00
Jörg Thalheim
f29fc205ce
README.md: improve documentation 2020-04-10 13:44:40 +01:00
Jörg Thalheim
82711395ac
README: mention lorri
fixes #9
2020-04-09 06:32:05 +01:00
Jörg Thalheim
b366328f74
README.md: add test badge 2020-04-01 16:17:18 +01:00