Skip to content

Commit

Permalink
envrc: use the flake directly
Browse files Browse the repository at this point in the history
the flake show is expensive due to the number of targets that there are
currently in Ghaf. so rather than using the info, metadata should be
enough to test for flake or not.

Signed-off-by: Brian McGillion <[email protected]>
  • Loading branch information
brianmcgillion committed Feb 13, 2025
1 parent 94de38f commit 02abd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0

# try to use flake initially, fallback to non-flake use otherwise
if nix flake show &>/dev/null; then
#try to use flake initially, fallback to non-flake use otherwise
if nix flake metadata &>/dev/null; then
use flake
else
use nix
Expand Down

0 comments on commit 02abd14

Please sign in to comment.