This page is an overview of various functionality included in Nixpkgs, that is not directly related to building packages from source code.
pkgs.fetch*
)Fetchers such as pkgs.fetchurl
allow to download content such as package sources, by specifying an expected hash of the content.
Resources:
pkgs.runCommand*
, pkgs.write*
)Functions such as pkgs.runCommand
or pkgs.writeShellScript
are use-case specific wrappers around pkgs.stdenv
with simple arguments.
Not to be confused with pkgs.writers
.
Resources:
pkgs.writers
)Data format or application focussed writers that transform Nix expressions into the respective format.
Not to be confused with pkgs.write*
.
Resource:
pkgs.formats
)Produce various config file formats from nix expressions.
Resources:
pkgs.mkShell
)Convenience wrapper around mkDerivation
for usage with nix-shell
/ nix develop
.
Resources:
pkgs.makeSetupHook
)Helper to produce hooks for the stdenv
build phases.
(For more info on hooks in general, see Language/Framework Specific Builders in Nixpkgs#Hooks).
Resources:
pkgs.testers
)Derivation builders for testing various properties of other derivations.
Resources:
fakeNss
Including this derivation in, e.g. docker images or other environments without them, provides a simplistic set of user/group entries, to allow binaries expecting them to exist to work.
Resources:
buildFHSEnv
)Wraps binaries that expect a FHS-compatible filesystem layout to run unpatched on NixOs.
Resources:
pkgs.appimageTools
)A set of functions to run or extract AppImages.
Resources:
pkgs.dockerTools
)A set of functions to create, modify, import or export docker images.
Resources:
pkgs.ociTools
)A set of function to create OCI containers.
Resources:
pkgs.portableService
)A function to create systemd’s Portable Services.
Resources:
make-disk-image.nix
)This function creates disk images in various formats (e.g. raw, QCOW2 (QEMU), VDI (VirtualBox), etc.).
Resources:
pkgs.vmTools
)Various tools to run derivations inside a Qemu/KVM backed virtual machine.
Resources:
pkgs.checkpointBuildTools
)Resources:
pkgs.mkBinaryCache
)Create Nix flat-file binary caches.
Resources: