mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
bump version 1.5.0
This commit is contained in:
parent
32dd9403c7
commit
083ac16bf5
2 changed files with 3 additions and 3 deletions
|
|
@ -133,8 +133,8 @@ via home-manager section.
|
||||||
Put the following lines in your `.envrc`:
|
Put the following lines in your `.envrc`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
if ! has nix_direnv_version || ! nix_direnv_version 1.4.0; then
|
if ! has nix_direnv_version || ! nix_direnv_version 1.5.0; then
|
||||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.4.0/direnvrc" "sha256-sha256-carKk9aUFHMuHt+IWh74hFj58nY4K3uywpZbwXX0BTI="
|
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.5.0/direnvrc" "sha256-sha256-carKk9aUFHMuHt+IWh74hFj58nY4K3uywpZbwXX0BTI="
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
2
direnvrc
2
direnvrc
|
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
# Checks that the nix-direnv version is at least as old as <version_at_least>.
|
# Checks that the nix-direnv version is at least as old as <version_at_least>.
|
||||||
nix_direnv_version() {
|
nix_direnv_version() {
|
||||||
declare major='1' minor='4' patch='0' # UPDATE(nix-direnv version)
|
declare major='1' minor='5' patch='0' # UPDATE(nix-direnv version)
|
||||||
|
|
||||||
[[ $1 =~ ^([^+-.]*)(\.?)([^+-.]*)(\.?)([^+-]*)(-?)([^+]*)(\+?)(.*)$ ]]
|
[[ $1 =~ ^([^+-.]*)(\.?)([^+-.]*)(\.?)([^+-]*)(-?)([^+]*)(\+?)(.*)$ ]]
|
||||||
declare -a ver; ver=("${BASH_REMATCH[@]:1}")
|
declare -a ver; ver=("${BASH_REMATCH[@]:1}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue