Skip to content
Kenichi Kamiya edited this page Jun 10, 2025 · 11 revisions

How to patch

How to override

How to exclude several package from list

List functions

Incremental build or partial cache for build phase

How to get src path in packaging definition

"${src}"
$NIX_BUILD_TOP/$sourceRoot

How to edit nixpkgs

They put flake.nix with minimum packages. And .gitignores clarified.vscode and .envrc.
So I enable direnv for the purpose with putting following files.

echo 'use flake' > .envrc
mkdir -p .vscode
<.devcontainer/devcontainer.json | nu --stdin --commands 'from json | to json' | jq '.customizations.vscode.settings' > .vscode/settings.json

However nixd is only appears in devcontainer for now, so manually remove the entry or inject it in devshell

nix-shell --packages nixd --command zsh

Tips in nixpkgs

Clone this wiki locally