Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-openframeworks

Standalone Nix packaging for openFrameworks 0.12.1. This flake is designed to be:

  • Standalone: No external dependencies beyond nixpkgs and flake-utils
  • Reusable: Reference from other projects via flake inputs
  • Minimal: Only what's needed for packaging and development
  • Upstream-ready: Structured for eventual nixpkgs contribution

Quick Start

Use as a Development Input

Add to your project's flake.nix:

inputs.nix-openframeworks = {
  url = "github:yourusername/nix-openframeworks";
  flake = true;
};

Then reference the overlay:

overlays = [ nix-openframeworks.overlays.default ];
# Now `openframeworks` package is available

Or use the package directly:

packages.openframeworks = nix-openframeworks.packages.${system}.openframeworks;

Local Development

nix develop
# openFrameworks dev environment with build tools

Repository Structure

.
├── flake.nix          # Main flake with package definition
├── pkgs/
│   └── default.nix    # openFrameworks package derivation
├── README.md          # This file
└── .gitignore         # Standard Nix files

Features

  • Cross-platform: Linux (x86_64, aarch64) and macOS (x86_64, aarch64)
  • Complete dependencies: All core openFrameworks dependencies included
  • Framework support: macOS frameworks automatically included for Darwin systems
  • Convenience symlinks: Standard include/lib paths for downstream consumers

Maintenance

To update to a newer openFrameworks version:

  1. Update the tag in flake.nix:

    openframeworks-src = {
      url = "github:openframeworks/openFrameworks/0.13.0";  # New version
      flake = false;
    };
  2. Update version in pkgs/default.nix:

    version = "0.13.0";
  3. Test locally:

    nix flake update
    nix build

Usage in Projects

See gem_generator_3000 for an example project that uses this flake as an input.

License

MIT (same as openFrameworks)

Contributing

Contributions and improvements welcome! This repo is intended for eventual upstream contribution to nixpkgs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages