Nix dependency locking and updating, inspired by Lon and tack.
- Management via CLI or hand-editable
pomni.jsonfile - Resolves tarball URLs and Git revisions via GitHub API
- Supports pinning Git branches or GitHub releases
Description:
Lock & update Nix dependencies
Usage:
pomni [command] [options]
Options:
-?, -h, --help Show help and usage information
--version Show version information
Commands:
init Create Pomni files
add <name> <GitHub> <repository> Add a new pin
update Update pins to their latest commit or release
modify <name> Modify an existing pin
remove <name> Remove a pin
bot <GitHub> Raise a pull request for pin updates
nix-build https://github.com/drakon64/Pomni/archive/refs/heads/main.zip
./result/bin/pomninix run github:drakon64/pomnipomni add nixpkgs github NixOS/nixpkgs --branch nixpkgs-unstable
pomni add lix github lix-project/lix # Uses the default branch of the repository
pomni add crane github ipetkov/crane --type release # Uses the latest GitHub release within the repository
pomni update # Required to sync `pomni.json` with `pomni.lock.json`pomni update- run: pomni bot github
env:
BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }}let
pomni = import ./pomni;
in
let
pkgs = import pomni.nixpkgs { };
lix = import pomni.lix;
crane = import pomni.crane;
inEUPL v. 1.2 only.