nix
Source: src/jix/nix/index.js
Nix package management namespace.
pkg({name, options})
Source: src/jix/nix/index.js#L47
Build a Nix package using nix-build. Requires Nix to be installed.
Parameters:
name(string, required) - Package attribute name (e.g., “git”)options(Object, optional) - Nix build options (merged with context options)nixpkgs(string | Effect | null, optional) - Path to nixpkgs (default: uses current channel)extraArgs(Object, optional) - Additional nix-build arguments
Returns: Effect representing the nix package derivation output path
pkgs
Source: src/jix/nix/index.js#L83
Proxy object for accessing package binaries.
Usage: jix.nix.pkgs.<packageName>.<binaryName>
Returns a string effect pointing to the binary path.
with(options, fn)
Source: src/jix/nix/index.js#L23
Context manager for setting Nix build options.
Parameters:
options(Object, required) - Nix build optionsnixpkgs(string | Effect | null, optional) - Path to nixpkgsextraArgs(Object, optional) - Additional nix-build arguments
fn(Function, optional) - Function to execute with these options
Returns: Result of fn() if provided
Example:
jix.nix.with({
nixpkgs: jix.git.checkout({
repo: "https://github.com/NixOS/nixpkgs",
commit: "11cb3517b3af6af300dd6c055aeda73c9bf52c48"
})
})