Created
March 12, 2026 02:33
-
-
Save shackra/48af2bd7c49a73f81a894c490553c393 to your computer and use it in GitHub Desktop.
go-sdl3 flake.nix without errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.27) | |
| { | |
| # Flake inputs | |
| inputs = { | |
| flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*"; | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
| }; | |
| # Flake outputs that other flakes can use | |
| outputs = | |
| { | |
| self, | |
| flake-schemas, | |
| nixpkgs, | |
| }: | |
| let | |
| # Helpers for producing system-specific outputs | |
| supportedSystems = [ | |
| "x86_64-linux" | |
| "aarch64-darwin" | |
| "x86_64-darwin" | |
| "aarch64-linux" | |
| ]; | |
| forEachSupportedSystem = | |
| f: | |
| nixpkgs.lib.genAttrs supportedSystems ( | |
| system: | |
| f { | |
| pkgs = import nixpkgs { inherit system; }; | |
| } | |
| ); | |
| in | |
| { | |
| # Schemas tell Nix about the structure of your flake's outputs | |
| schemas = flake-schemas.schemas; | |
| # Development environments | |
| devShells = forEachSupportedSystem ( | |
| { pkgs }: | |
| { | |
| default = pkgs.mkShell { | |
| env.CGO_ENABLED = "0"; | |
| env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ | |
| pkgs.sdl3 | |
| pkgs.sdl3-ttf | |
| pkgs.sdl3-image | |
| ]; | |
| # Pinned packages available in the environment | |
| packages = with pkgs; [ | |
| sdl3.lib | |
| sdl3.dev | |
| sdl3-ttf | |
| sdl3-image | |
| ]; | |
| }; | |
| } | |
| ); | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment