-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
26 lines (22 loc) · 946 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- mode: sh; -*-
# SPDX-FileCopyrightText: 2024 Temple University <[email protected]>
# SPDX-License-Identifier: CC0-1.0
# Ensure the nix-direnv library functions are available.
# <https://github.com/nix-community/nix-direnv>
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi
{ # PRJ Base Directory Specification: https://github.com/numtide/prj-spec
# shellcheck source=/dev/null
source "$(
fetchurl \
"https://raw.githubusercontent.com/numtide/prj-spec/9b0ffcd0fddcb261bcd73ad9dad18a096760b4a0/contrib/direnv" \
"sha256-54YaaGly6Q0E8GhFT9fB/h9tN1PDERo2/4R4X0Pdi/c="
)"
}
# Reload the environment when any of these files change:
watch_file flake.nix flake.lock shell.nix
watch_file nix/devshells.nix
watch_file nix/git-hooks.nix
watch_file .env
use flake