flake and design doc

This commit is contained in:
chrisbell committed 2026-11-02 12:25:49 -06:00
1 parent 8da6770ad6
commit 71ef8470f4
3 files changed
+233 -15

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
{
description = "Regolith, a retained mode GUI library in C";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system:
f nixpkgs.legacyPackages.${system});
in {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell.override { stdenv = pkgs.clangStdenv; } {
nativeBuildInputs = with pkgs; [
cmake
ninja
pkg-config
clang-tools
emscripten
gdb
valgrind
lua5_4
lua-language-server
];
buildInputs = with pkgs; [
sdl3
libGL
];
shellHook = ''
export EM_CACHE="$PWD/.emscripten-cache"
'';
};
});
};
}