#!/usr/bin/env bash # SPDX-FileCopyrightText: 2020-2021 Simon Bruder # # SPDX-License-Identifier: CC0-1.0 if [ ! -e ./.envrc ]; then echo "use nix" > .envrc direnv allow fi if [[ ! -e shell.nix ]] && [[ ! -e default.nix ]]; then cat > shell.nix << EOF { pkgs ? import {} }: pkgs.mkShell { buildInputs = with pkgs; [ ]; } EOF vim shell.nix fi