4jcraft/flake.nix
zukrmn 4b841c68e8 chore(flake): sync dependencies and tools with devcontainer
Added meson, ninja, pkg-config, libGLU, libpng, zlib, openal, libvorbis, lld and updated to gcc15
2026-03-07 06:26:28 +00:00

54 lines
967 B
Nix

{
description = "4jcraft-nix dev shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { nixpkgs, ... }:
let
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forAllSystems ({ pkgs }:
let
libs = with pkgs; [
openssl.dev
libGL
libGLU
glfw
libpng
zlib
openal
libvorbis
];
packages = with pkgs; [
gcc15
lld
cmake
gnumake
meson
ninja
pkg-config
];
in
{
default = pkgs.mkShell {
LD_LIBRARY_PATH = "/run/opengl-driver/lib";
buildInputs = libs;
nativeBuildInputs = packages;
};
}
);
};
}