From 13136f0038c3e5265f05015bb08bcc90ef534141 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Thu, 5 Mar 2026 16:40:55 +0200 Subject: [PATCH] add dev containers --- .devcontainer/devcontainer.json | 13 +++++++++++++ .devcontainer/nix/devcontainer.json | 19 +++++++++++++++++++ .gitattributes | 8 ++++++++ 3 files changed, 40 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/nix/devcontainer.json create mode 100644 .gitattributes 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