Commit graph

1030 commits

Author SHA1 Message Date
Jörg Thalheim
baea0fe141
Merge pull request #100 from thomasbach-dev/master
fix(doc): document how to enable flake support on NixOS
2021-07-01 09:45:18 +01: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
Ana Hobden
7f73bb6d9a chore: fix double import of nixpkgs
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-06-28 19:18:55 -07:00
Jörg Thalheim
a11b96b557
Merge pull request #98 from Hoverbear/fix-stdenv-lib-missing
fix(warn): stdenv.lib missing
2021-06-26 11:46:39 +02:00
Ana Hobden
d9150502ad chore: add overlay
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-06-25 09:02:01 -07:00
Ana Hobden
3868bd048a fix(warn): stdenv.lib missing
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-06-25 08:56:58 -07:00
Jörg Thalheim
ccc2e4c5db
Merge pull request #95 from JesusMtnez/doc
Update installation via home-manager documentation
2021-06-16 22:32:35 +02:00
JesusMtnez
dcf67cd1b5
Update installation via home-manager documentation 2021-06-16 06:09:42 +02:00
Jörg Thalheim
4eab19bf22
Merge pull request #93 from ryneeverett/refactor-tests
test.py: isolate assertions; DRY data generation
2021-06-13 11:55:47 +02:00
ryneeverett
5c65694ea8 test.py: isolate assertions; DRY data generation
The majority of the test code is just creating the stdout data against
which to make assertions. Increasing the test cases will be more
manageable if the assertions are separate from this data generation.

It is also a generally preferred style to have one assertion per test,
because this way all assertions run even if others fail and each test
only fails for one reason. It also facilitates better test documentation
and adding additional tests without increasing complexity.
2021-06-11 15:13:57 -04:00
Jörg Thalheim
6c32d2d5ff
Merge pull request #91 from ryneeverett/shellhook-caching
flakes: Don't run shellHook on cached dev shells
2021-06-11 08:37:55 +02:00
ryneeverett
6e68ea7235 flakes: Don't run shellHook on cached dev shells
This makes the behavior of `use flake` consistent with that of `use
nix`.

Resolve #90.
2021-06-08 20:51:07 -04:00
Jörg Thalheim
4cb1aa4f10
README: fix checksum 2021-06-03 18:55:23 +02:00
Jörg Thalheim
11c33126cc
README: update fetchurl checksum 2021-06-03 18:54:27 +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
b45b9dc614
Merge pull request #87 from martinetd/outoftree_flake
use flake: allow optional flake expression
2021-05-29 10:15:26 +02:00
Jörg Thalheim
4e437fc64f
Merge branch 'master' into outoftree_flake 2021-05-29 10:13:53 +02:00
Jörg Thalheim
745177c537
Merge pull request #88 from nix-community/template
add project template
2021-05-29 10:12:47 +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
1134713112
fix update checksum script 2021-05-19 07:24:53 +02: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
f6fd4a4d48
Merge pull request #85 from nix-community/revert-async-nix-shell
Revert "async nix-shell"
2021-05-14 07:44:20 +01:00
Jörg Thalheim
be4863dae6
Revert "async nix-shell"
This reverts commit 5996ecbfdb.
2021-05-14 08:42:04 +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
Jörg Thalheim
5996ecbfdb
async nix-shell 2021-05-09 08:38:49 +02:00
Jörg Thalheim
69f714f91b
Merge pull request #81 from bbigras/patch-1
don't override experimental-features
2021-05-08 16:05:28 +01:00
Bruno Bigras
760ce16e6c don't override experimental-features
Co-authored-by: regnat <rg@regnat.ovh>
2021-05-05 12:09:09 -04:00
Jörg Thalheim
974fa8c7c3
Merge pull request #80 from seb314/master
README: mention direnv shell hook setup
2021-04-17 15:05:35 +01:00
seb314
d8d3c7cd7a README: mention shell hook setup 2021-04-17 14:27:14 +02:00
Jörg Thalheim
a512304cde
Merge pull request #79 from nix-community/dependabot/github_actions/cachix/install-nix-action-v13
Bump cachix/install-nix-action from v12 to v13
2021-04-05 06:41:00 +01:00
dependabot[bot]
a0014bd4aa
Bump cachix/install-nix-action from v12 to v13
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v12 to v13.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...8d6d5e949675fbadb765c6b1a975047fa5f09b27)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-05 05:21:47 +00:00
Jörg Thalheim
c61bdfb7b9
Merge pull request #77 from nix-community/ci
README: update source_url
2021-03-30 11:58:21 +01:00
Jörg Thalheim
2c87a8d83f
README: update source_url 2021-03-30 12:57:56 +02:00
Jörg Thalheim
c3ff5993f8
Merge pull request #76 from houstdav000/readme_syntax-highlighting
Add Missing Code Type Tags
2021-03-25 06:32:54 +00: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
Jörg Thalheim
912b847b4d
Merge pull request #75 from meck/fix_xdg_data_dirs_flake 2021-03-19 21:27:47 +00:00
Jörg Thalheim
c3a8747d62
direnvc: add TODO 2021-03-19 21:20:50 +00:00
meck
b2d35ce3e9 save XDG_DATA_DIRS in flakes 2021-03-19 13:02:49 +01:00
Jörg Thalheim
eb75bbe7f3
Merge pull request #73 from OlivierNicole/patch-1
Avoid pitfall in home-manager config instructions
2021-03-12 07:31:19 +00: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
aca3a32145
Merge pull request #71 from meck/xdg_data_dirs
Preserve XDG_DATA_DIRS
2021-02-27 18:08:14 +00:00
meck
7ac4290e82 Preserve XDG_DATA_DIRS 2021-02-27 17:38:48 +01:00