Packaging 101
WIP work in progress, please refer to the following reference documents to learn Nix packaging.
References
- NixOS Series 3: Software Packaging 101
- How to Learn Nix, Part 28: The standard environment
- stdenv - Nixpkgs Manual
- languages-frameworks - Nixpkgs Manual
- Wrapping packages - NixOS Cookbook
- Useful tools:
- Source Code:
- pkgs/build-support/trivial-builders/default.nix - runCommand
- pkgs/build-support/setup-hooks/make-wrapper.sh
- FHS related
- pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix:
pkgs.buildFHSEnvBubblewrap
- pkgs/build-support/build-fhsenv-chroot/default.nix:
pkgs.buildFHSEnvChroot
- pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix: