Crates.io | hiveware |
lib.rs | hiveware |
version | 0.1.1 |
source | src |
created_at | 2024-08-16 09:14:35.288457 |
updated_at | 2024-08-16 09:36:17.498794 |
description | A fast and minimal wrapper for the nix package manager |
homepage | https://hiveware.netlify.app |
repository | https://github.com/HivewareOS/hiveware |
max_upload_size | |
id | 1340147 |
size | 286,637 |
Hiveware is a command-line tool designed for managing Nix packages easily. It provides commands to install, uninstall, and interact with packages in a Nix shell. This document outlines the installation process and usage details for Hiveware.
To install Hiveware, you need to have Rust and Cargo installed on your system, as Hiveware is built using Rust. Follow these steps to get Hiveware up and running:
Install Rust: If you haven't already installed Rust, you can do so using rustup
. Open your terminal and run:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the on-screen instructions to complete the installation. You might need to restart your terminal or run source $HOME/.cargo/env
to start using Rust immediately.
Verify Installation: Ensure Rust and Cargo are installed correctly by running:
rustc --version
cargo --version
Install hiveware
via crates.io:
cargo install hiveware
hiveware install alacritty
Clone the Repository: Clone the Hiveware repository from GitHub:
git clone https://github.com/HivewareOS/hiveware.git
Navigate to the Project Directory: Move into the cloned repository directory:
cd hiveware
Build the Project: Compile the Hiveware tool using Cargo:
cargo build --release
The compiled binary will be located in the target/release
directory.
Install the Binary: Optionally, you can copy the binary to a directory in your system's PATH for easy execution. For example:
cp target/release/hiveware /usr/local/bin/
Ensure /usr/local/bin
is in your PATH. You might need sudo
permissions to copy the binary.
export PATH="$HOME/.cargo/bin:$PATH"
After updating the file, reload your shell configuration with:
source ~/.bashrc
or
source ~/.zshrc
Once Hiveware is installed, you can use it to manage Nix packages. Here’s a quick guide to the available commands:
install
Installs a package using nix-env
.
Usage:
hiveware install <package>
<package>
: The name of the package to install.Example:
hiveware install rust-analyzer
uninstall
Uninstalls a package using nix-env
.
Usage:
hiveware uninstall <package>
<package>
: The name of the package to uninstall.Example:
hiveware uninstall wezterm
virtual
Enters a Nix shell with a specified package installed.
Usage:
hiveware virtual <package>
<package>
: The name of the package to install in the Nix shell.Example:
hiveware virtual alacritty
version
Displays the current version of Hiveware.
Usage:
hiveware version
Example:
hiveware version
If an invalid command or option is provided, Hiveware will display an error message and exit with status code 1
.
For support or inquiries, please contact HivewareOS at hivewareos@protonmail.com.
For more detailed information on usage and options, use:
hiveware --help
This documentation aims to provide a comprehensive overview of installing and using Hiveware. If you encounter any issues or have questions, don't hesitate to reach out for support.