Jörg Thalheim
e5c4a4678a
use readlink instead of realpath
...
fixes #54
readpath is not available on macOS.
2020-12-09 17:38:37 +01:00
Jörg Thalheim
9b3e62f10f
Merge pull request #53 from nix-community/dependabot/github_actions/cachix/install-nix-action-v12
...
Bump cachix/install-nix-action from v11 to v12
2020-11-09 13:02:19 +01:00
dependabot[bot]
f6278e2a32
Bump cachix/install-nix-action from v11 to v12
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from v11 to v12.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v11...07da2520eebede906fbeefa9dd0a2b635323909d )
Signed-off-by: dependabot[bot] <support@github.com>
2020-11-09 05:34:43 +00:00
Jörg Thalheim
b54e2f2c4b
README: fix usuage example
2020-10-25 20:08:08 +00:00
Jörg Thalheim
55cb247ab7
Merge pull request #49 from erikarvstedt/readme-fix
...
README: minor formatting/wording fixes
2020-10-24 15:54:30 +02:00
Erik Arvstedt
c9f9be0a46
README: minor formatting/wording fixes
2020-10-24 08:46:43 +02:00
Jörg Thalheim
c6be02bdf0
Merge pull request #48 from erikarvstedt/fix-layout-dirs
...
README: fix direnv_layout_dir setup
2020-10-24 08:25:06 +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
Jörg Thalheim
a751ddd538
Merge pull request #47 from erikarvstedt/master
...
use mkdir -p for direnv_layout_dir
2020-10-16 20:17:31 +02:00
Erik Arvstedt
91f83adf52
use mkdir -p for direnv_layout_dir
...
This avoids a 'cannot create directory' error when a custom layout dir like
direnv_layout_dir=$HOME/.cache/nix-direnv/$pwdHash
is used and the cache dir doesn't exist. This may happen when nix-direnv is used
for the first time or when the cache has been cleared.
2020-10-15 21:38:04 +02:00
Jörg Thalheim
17f288b353
Merge pull request #46 from nix-community/shell
2020-10-15 02:08:48 +02:00
Jörg Thalheim
1ef31ac5ff
direnvrc: don't drop shellHook output
2020-10-15 01:58:54 +02:00
Jörg Thalheim
bb0fc5792f
don't override SHELL
...
this variable might be useful in direnv to expose different behavior
depending on calling shell.
fixes https://github.com/nix-community/nix-direnv/issues/45
2020-10-15 01:47:48 +02:00
Jörg Thalheim
94cc112118
Merge pull request #42 from nix-community/dependabot/github_actions/cachix/install-nix-action-v11
2020-09-28 09:57:13 +02:00
Jörg Thalheim
d6b414a912
githubactions: set nix_path
2020-09-28 09:51:43 +02:00
dependabot[bot]
0901f6662e
Bump cachix/install-nix-action from v10 to v11
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from v10 to v11.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v10...95a8068e317b8def9482980abe762f36c77ccc99 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-28 05:37:18 +00:00
Jörg Thalheim
d13fe36fef
Merge pull request #41 from DavHau/patch-1
...
readme: add `direnv` to systemPackages in configuration.nix
2020-09-26 16:08:37 +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
a57119b050
Merge pull request #38 from nix-community/Mic92-patch-1
...
fix incorrectly spelled variable
2020-09-17 20:40:47 +02:00
Jörg Thalheim
ab123704e7
fix incorrectly spelled variable
...
fixes #37
2020-09-17 16:12:10 +01:00
Jörg Thalheim
300258e2bd
remove uncessary line escapes
2020-08-16 11:19:32 +01:00
Jörg Thalheim
892015898f
Merge pull request #35 from nix-community/cleanup-1
2020-08-15 10:00:20 +01: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
970c00c66c
make condition checks more eye-pleasing
2020-08-15 09:48:16 +01:00
Jörg Thalheim
83eb30fbdd
introduce helper function to unset env variables.
2020-08-15 09:48:09 +01:00
Jörg Thalheim
666edff7fe
README.md: improve FAQ
2020-08-13 20:53:12 +01:00
Jörg Thalheim
23326b9439
Merge pull request #33 from nix-community/ssl-certs
...
fix restoring SSL_CERT_FILE files
2020-08-12 09:40:13 +01:00
Jörg Thalheim
647242044d
fix restoring SSL_CERT_FILE files
2020-08-11 14:11:02 +00:00
Jörg Thalheim
3f6fd70082
Merge pull request #31 from nix-community/flake-support
2020-08-11 07:26:30 +01:00
Jörg Thalheim
8a397b7eb2
improve documentation for use_flake
2020-08-11 07:08:36 +01:00
Jörg Thalheim
f8592153f3
direnvrc: fix gcroot creation in use-nix
2020-08-11 07:04:24 +01:00
Jörg Thalheim
20e2676b19
fixup temporary directory environment variables
2020-08-11 06:48:45 +01:00
Jörg Thalheim
8fa23fb61b
fix gcroot for nix-shell
2020-08-11 05:20:31 +00:00
Jörg Thalheim
8b067fb376
extend ci to nixUnstable/macOS
2020-08-10 22:51:51 +01:00
Jörg Thalheim
c2998e750d
fix NIX_SSL_CERT_FILE handling
2020-08-10 10:39:47 +01:00
Jörg Thalheim
d1bf45b1bf
add usage example
2020-08-10 09:56:24 +01:00
Jörg Thalheim
9e887c3201
add tests for flakes
2020-08-09 22:51:10 +01:00
Jörg Thalheim
70d8f8444d
add use_flake
2020-08-09 22:50:56 +01:00
Farid Zakaria
d9ae5315b3
Mark NIX_SHEL as impure ( #29 )
...
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-07-18 09:45:18 +01:00
Jörg Thalheim
529e6fcf96
Merge pull request #27 from nix-community/strict-env
...
fix direnv strict_env evaluation
2020-07-09 14:17:24 +01:00
Jörg Thalheim
8e95338708
fix direnv strict_env evaluation
...
.version-suffix does not contain a newline and therefore fails with read
2020-07-09 12:56:41 +01:00
Jörg Thalheim
a46ea78bfa
Merge pull request #25 from nix-community/fix-ci
...
make flake8 happy
2020-06-30 08:49:08 +01:00
Jörg Thalheim
7a5efc4080
make flake8 happy
2020-06-30 08:47:24 +01:00
Jörg Thalheim
d25e41f8cb
Merge pull request #24 from nix-community/dependabot/github_actions/cachix/install-nix-action-v10
2020-06-30 08:31:22 +01:00
dependabot[bot]
bbb401b5f4
Bump cachix/install-nix-action from v7 to v10
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from v7 to v10.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v7...63cf434de4e4292c6960639d56c5dd550e789d77 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-06-30 07:31:10 +00:00
Jörg Thalheim
e09beb8f11
automatically update github actions
2020-06-30 08:30:42 +01:00
Jörg Thalheim
00f8ce4654
Merge pull request #23 from purcell/patch-1
...
README updates
2020-06-30 08:29:03 +01:00