diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1229831 --- /dev/null +++ b/.envrc @@ -0,0 +1,6 @@ +# shellcheck shell=bash +if command -v cl6x &>/dev/null; then + export C6X_C_DIR="$(dirname "$(dirname "$(realpath "$(command -v cl6x)")")")" + C6X_C_DIR="$C6X_C_DIR/include;$C6X_C_DIR/lib" +fi +# ex: filetype=sh diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 19fd5ff..0000000 --- a/shell.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ - pkgs ? import { }, -}: - -with pkgs; -mkShell { - name = "src"; - shellHook = '' - if command -v cl6x &>/dev/null; then - export C6X_C_DIR="$(dirname "$(dirname "$(realpath "$(command -v cl6x)")")")" - C6X_C_DIR="$C6X_C_DIR/include;$C6X_C_DIR/lib" - fi - ''; -}