mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 15:13:36 +00:00
Added meson, ninja, pkg-config, libGLU, libpng, zlib, openal, libvorbis, lld and updated to gcc15
54 lines
967 B
Nix
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;
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|