Login
1 branch 0 tags
Ben (T14/NixOS) Some more minor work 29bb2cc 1 day ago 5 Commits
moon / flake.nix
{
  description = "Moon";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
  };

  outputs = { self, nixpkgs }:
    let
      # Target system(s) — adjust if you need macOS or other
      systems = [ "x86_64-linux" "aarch64-linux" ];
      forAllSystems = nixpkgs.lib.genAttrs systems;
    in
      {
        devShells = forAllSystems (system:
          let
            pkgs = nixpkgs.legacyPackages.${system};
          in
            {
              default = pkgs.mkShell {
                strictDeps = true;
                nativeBuildInputs = with pkgs; [
                  gcc
                  mold
                  gnumake
                  zopfli

                  pkg-config
                ];
                buildInputs = with pkgs; [
                  SDL2
                  SDL2_mixer
                  libGL
                  libGLU
                ];
              };
            });
      };
}