-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathshell.nix
More file actions
42 lines (35 loc) · 893 Bytes
/
shell.nix
File metadata and controls
42 lines (35 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Nix development shell for Papyrix Reader
#
# Usage:
# nix-shell # Enter development environment
# nix-shell --pure # Enter pure (isolated) environment
#
{ pkgs ? import <nixpkgs> {} }:
let
pythonEnv = pkgs.python312.withPackages (ps: with ps; [
freetype-py # Font conversion scripts
pillow # Image conversion scripts
]);
in
pkgs.mkShell {
name = "papyrix-dev";
buildInputs = with pkgs; [
# PlatformIO for ESP32 firmware builds
platformio-core
# Python environment with packages
pythonEnv
# Code quality tools
clang-tools # clang-format
cppcheck
# Version control
git
# Build tools
gnumake
];
shellHook = ''
echo "Papyrix Reader Development Environment"
echo " make build - Build firmware"
echo " make check - Run cppcheck"
echo " make format - Format code"
'';
}