Add flake.nix

This commit is contained in:
2026-07-08 15:16:17 +01:00
parent 9620b57b96
commit fabcad8dc8
6 changed files with 74 additions and 1044 deletions
+41
View File
@@ -0,0 +1,41 @@
{
description = "game";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" ];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system:
f (import nixpkgs {
inherit system;
}));
in {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
clang
ccache
pkg-config
gnumake
ruby
xxd
sdl3
sdl3-ttf
sdl3-image
];
shellHook = ''
export CC=clang
export CXX=clang++
export LD=clang
'';
};
});
};
}