A structured-data shell in Gleam, inspired by Nushell
1#!/usr/bin/env bash
2
3if ! has nix_direnv_version || ! nix_direnv_version 3.1.0; then
4 source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.0/direnvrc" "sha256-yMJ2OVMzrFaDPn7q8nCBZFRYpL/f0RcHzhmw/i6btJM="
5fi
6
7watch_file flake.nix
8watch_file flake.lock
9watch_file devenv.nix
10if ! use flake . --no-pure-eval; then
11 echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
12fi