diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..01bea41a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,13 @@ +{ + "name": "Simplicity C", + "image": "mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04", + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.cpptools", + "ms-vscode.makefile-tools" + ] + } + }, + "postCreateCommand": "cd C && make" +} diff --git a/.devcontainer/nix/devcontainer.json b/.devcontainer/nix/devcontainer.json new file mode 100644 index 00000000..05043420 --- /dev/null +++ b/.devcontainer/nix/devcontainer.json @@ -0,0 +1,19 @@ +{ + "name": "Simplicity Nix", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04", + "features": { + "ghcr.io/devcontainers/features/nix:1": { + "multiUser": false, + "extraNixConfig": "sandbox = false" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "jnoortheen.nix-ide", + "mkhl.direnv" + ] + } + }, + "postCreateCommand": "nix-shell --run 'echo Nix shell environment ready'" +} diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..ce599159 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# Force LF line endings for all text files (prevents CRLF issues in Nix builds) +* text=auto eol=lf + +# Explicitly binary files +*.png binary +*.jpg binary +*.pdf binary +*.eps binary