Expand description
Library for the nixman package manager
Provides core types and functions for synchronizing Arch Linux packages with a YAML configuration file, parsing package lists, and handling versioning.
§Modules
versioning: Pacman version string parsing and utilities
§Example
use nixman::{ensure_yml, write_package_list_to_yaml, parse_explicit_packages};
let yml_path = ensure_yml().unwrap();
let pkgs = parse_explicit_packages("htop 1.0.0-1", true);
write_package_list_to_yaml(&pkgs, &yml_path).unwrap();Modules§
- pacman
- Simple wrapper for pacman command invocations
- versioning
- Pacman Versioning Utilities
Structs§
Functions§
- apply_
packages_ from_ yaml - Apply the YAML configuration to synchronize installed packages.
- ensure_
yml - Ensures the XDG-compliant YML file exists. (~/.config/nixman/packages.yaml)
- parse_
explicit_ packages - Parse the output of
pacman -Qeinto aPackageList, optionally versioned. - sync_
packages_ from_ yaml - Synchronize installed packages with the list in the YAML file.
- write_
package_ list_ to_ yaml - Write a package list to a YAML file at the given path.