Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Roadmap for creating a poly-repo nixpkgs fork

Notifications You must be signed in to change notification settings

jonringer/poly-repo-roadmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 

Repository files navigation

Poly-repo Nixpkgs Fork

Why? Although a single mono-repo makes it easy for dealing with issues which span many language ecosystems or subtle software interactions, it also causes many maintenance issues. Issues like commit access giving "too much power", high noise to signal ration in issues and PRs for contributors, and other issues makes it difficult to maintain nixpkgs from a human perspective.

Basic repository overview

Repositories will be structured in a way where the most impactful packages can reside in the "stdenv" and "core" repositories. From this core, language ecosystem packages and other package ecosystems can branch off of core and these "vertical slices" can be curated independently from the others. The pkgs repository allows for all of these packages to be recombined through overlays into a single package set similar to nixpkgs. The user-pkgs overlay will allow for semi-official user packages to be added, and greater freedom for individuals to contribute their additions with less emphasis on dogmatic best practices.

flowchart RL
    pkgs["Pkgs + PkgsModules"]
    Core["Core + CoreModules"]
    Stdenv --> Lib
    Core --> Stdenv
    Python --> Core
    Haskell --> Core
    Node --> Core
    etc... --> Core
    pkgs --> Core
    pkgs --> Python
    pkgs --> Haskell
    pkgs --> Node
    pkgs --> etc...
    UserPkgs --> pkgs
Loading

Repository descriptions

All repositories will be Nix 2.3 compatible, with optional flake.nix entry points.

  • Standalone Lib
    • nixpkgs/lib but reduced to just nix utilities
    • lib.systems is moved to stdenv repo
    • lib.maintainers and lib.teams moved to core
  • Stdenv Repo:
    • Encapsulates bootstraping the stdenv package for platforms.
    • Handles package splicing and cross compilation concerns
    • Contains the logic for pkgs.config and overlay application
    • Maintained by a dedicated team of individuals
  • Core Repo:
    • Targeting "development and deployment" scenarios
    • Provides the stdenv.mkDerivations (e.g. buildPythonPackage) helpers
    • Provides a few thousand of the most common development dependencies
      • Desire here is to provide the 20% of packages which are used 80% of the time.
    • Bootstrap language ecosystem package sets.
    • Contains maintainer information
  • Language package sets:
    • Contain a top-level overlay and overrideScope of the package set with richer set of packages
    • Python Prototype
  • Pkgs:
    • Targeting "User desktop" scenarios, most software will be available here
    • Combines all of the langauge package set overlays
    • Acts as the "backstop" for all packages which have "trickier" dependency requirements
  • User-pkgs:
    • The NUR/"AUR" equivalent.
    • Allows for people getting started with Nix to share expressions in a semi-centralized manner
    • Linting and basic concerns for code quality still upheld, but less of an emphasis from "official" overlays

NixOS Modules

  • Core Modules
    • "Minimal" set of modules to create a usable NixOS system
    • Targeting mostly enterprise, edge compute, and single purpose systems
  • Pkgs Modules
    • "Complete" set of modules, appropriate for most end-users
    • Analogous to the current nixpkgs/nixos module collection

Additional Proposals

Addtional tooling

Crazy ideas

  • "GC root indexed artifact store"
    • Allow for a retention date to be passed to the post-build-hook so that nix builds can communicate how long something should live
      • This would likely need to be passed to jobset evaluation
    • Most likely use another tool to handling the gc root metadata
    • Aims to solve the "ever growing cache" concerns
  • "Nix evaulator which can retain a live heap of evaluated objects to make eval diffs quick and cheap"

About

Roadmap for creating a poly-repo nixpkgs fork

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published