mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-16 14:01:14 +01:00
Merge pull request #61 from nix-community/ci
This commit is contained in:
commit
14eec73a76
2 changed files with 2 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -25,4 +25,4 @@ jobs:
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
- run:
|
- run:
|
||||||
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz ci.nix --run 'true'
|
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz ci.nix --run 'true'
|
||||||
|
|
|
||||||
2
direnvrc
2
direnvrc
|
|
@ -123,7 +123,7 @@ use_nix() {
|
||||||
path=$("${NIX_BIN_PREFIX}nix-instantiate" --find-file nixpkgs)
|
path=$("${NIX_BIN_PREFIX}nix-instantiate" --find-file nixpkgs)
|
||||||
layout_dir=$(direnv_layout_dir)
|
layout_dir=$(direnv_layout_dir)
|
||||||
local experimental_flags=()
|
local experimental_flags=()
|
||||||
if nix-shell --experimental-features '' --version 2>/dev/null; then
|
if nix-shell --experimental-features '' --version 2>/dev/null >&2; then
|
||||||
experimental_flags+=('--experimental-features' 'nix-command flakes')
|
experimental_flags+=('--experimental-features' 'nix-command flakes')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue