-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from a hacky direnv cache to nix-direnv plugin
I've been using a hacked up caching speedup of direnv for a while now: https://gist.github.com/zimbatm/77bfa0268b5a2a540c4d0d9189bb1ae2 But now I've realized that a similar approach has been released as a proper plugin and is available in 20.03 nixpkgs, so this commit removes the old hack and replaces it with the shiny new `nix-direnv` plugin. More info on https://github.com/nix-community/nix-direnv/ Also, had to update to latest 20.03 nixpkgs to be able to install `nix-direnv`.
- Loading branch information
Showing
6 changed files
with
20 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if [ -f /run/current-system/sw/share/nix-direnv/direnvrc ]; then | ||
source /run/current-system/sw/share/nix-direnv/direnvrc | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fetchTarball { | ||
# https://github.com/NixOS/nixpkgs/tree/nixos-19.03 on 2020-05-10 | ||
url = "https://github.com/nixos/nixpkgs/archive/ab3adfe1c769c22b6629e59ea0ef88ec8ee4563f.tar.gz"; | ||
sha256 = "1m4wvrrcvif198ssqbdw897c8h84l0cy7q75lyfzdsz9khm1y2n1"; | ||
# https://github.com/NixOS/nixpkgs/tree/nixos-20.03 on 2020-08-08 | ||
url = "https://github.com/nixos/nixpkgs/archive/4364ff933ebec0ef856912b182f4f9272aa7f98f.tar.gz"; | ||
sha256 = "19ig1ywd2jq7qqzwpw6f1li90dq4kk3v0pbqgn6lzdabzf95bz6z"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters