Justfile: add pkg-update job

This commit is contained in:
Gabriel Arazas 2025-02-12 11:25:21 +08:00
parent 9e4dc588a2
commit 8c4ab892d9
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -5,6 +5,10 @@ update:
git checkout -- flake.lock git checkout -- flake.lock
nix flake update --commit-lock-file nix flake update --commit-lock-file
# Update a package with nix-update.
pkg-update PKG:
nix-update -f pkgs {{PKG}}
# Build a package from `pkgs/` folder. # Build a package from `pkgs/` folder.
pkg-build PKG: pkg-build PKG:
nix-build pkgs -A {{PKG}} nix-build pkgs -A {{PKG}}