Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.45 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.45 KB

npkg

npkg aims to provide some handy commands for managing packages from nixpkgs. Under the hood, it use nix profile commands. The packages are managed with the default profile of nix.

Installation

# install task with
#   brew install task
# or
#   nix profile install go-task
#
# make sure "echo $fpath" includes ~/.local/share/zsh/completions
# if not, add following line to .zshrc:
#   fpath+=("$HOME/.local/share/zsh/completions")

git clone https://github.com/zhengpd/npkg.git npkg
cd npkg && task build

Usage

$ npkg --help

NAME:
   npkg - A new cli application

USAGE:
   npkg [global options] command [command options] [arguments...]

COMMANDS:
   install, i  install package from nixpkgs to nix default profile
   list, l     list installed packages in nix default profile
   upgrade, u  upgrade installed package in nix default profile
   remove, r   remove installed package from nix default profile
   clean-up    clean up duplicate packages from nix default profile
   help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

Credits

  • cli: a useful package for building cli commands in Go
  • nixpkgs: a large software packages repository
  • nix: a powerful package manager
  • task: a task runner / build tool that aims to be simpler and easier to use