nix
Nix commands and package management guide. Use when: - Running nix build, nix run - Adding custom packages - Using nurl for hash acquisition
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Nix Skill
1. nix build
-
YOU MUST: Always use
--no-linkoption withnix buildnix build .#rumdl --no-link -
IMPORTANT: Without
--no-link, a./resultsymlink is created
2. nix run
-
IMPORTANT: Packages registered in packages can be run with
nix runnix run .#pike -- scan -d ./terraform
3. Adding Custom Packages
- YOU MUST: See CONTRIBUTING.md section 1.4.2 for adding new custom packages
- IMPORTANT: Hash acquisition flow
- Get
hashusing nurl:nurl https://github.com/<owner>/<repo> <tag> - Get
vendorHash/cargoHashvia build error (got:line)
- Get
- IMPORTANT: Add
doCheck = false;if tests fail
4. nurl
-
IMPORTANT: nurl generates Nix fetcher calls from repository URLs
nurl https://github.com/rvben/rumdl v0.0.206 -
IMPORTANT: Output can be used directly in fetchFromGitHub
fetchFromGitHub { owner = "rvben"; repo = "rumdl"; rev = "v0.0.206"; hash = "sha256-XXX..."; } -
IMPORTANT: For cargoHash/vendorHash, use build error method (nurl does not support these)
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!