Contributing to Nixpkgs
ICYMI: This page is part of my digital garden (Click to expand)
This page, and others in the garden, may be unfinished or have typos. The information may also be out of date.
These pages are meant as part of a public living notebook to be edited over time.
For more, visit the page explaining the concept of a digital garden.
- You want to clone
NixOS/nixpkgs
locally and use tools likenix-build
instead of the flake commands- They’re faster and easier to customize when changing things
- Some builds require using
--cores
to control how parallel they are thanks to the parallel build processes using so much memory.
CUDA Link to heading
You can enable CUDA support by configuring nixpkgs. This command does it for when you’re testing a build in the nixpkgs git repo.
nix-build --arg config '{ allowUnfree = true; cudaSupport = true; cudaCapabilities = [ "8.6" "12.0" ]; cudaForwardCompat = false; }' \
-A python312Packages.xformers --cores 2 .