https://github.com/eswar2001/nixv
https://github.com/eswar2001/nixv
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eswar2001/nixv
- Owner: eswar2001
- Created: 2023-11-03T07:47:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-25T04:42:25.000Z (about 1 year ago)
- Last Synced: 2025-04-25T05:32:29.185Z (about 1 year ago)
- Language: Rust
- Size: 557 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nixv
A cli tool in rust to give insights to nix commands like [build ,develop ,nix-build ,nix-shell]
## Prerequisites
- Nix
- A Project with nix support
## Instalation
### To build and install using nix
```BASH
nix build github:eswar2001/nixv
echo `pwd`/result/bin/
```
then add the above path in bashrc or run the following command
```BASH
nix-env -iA ./result
```
### To build and install using cargo
```BASH
git clone https://github.com/eswar2001/nixv
cd nixv && cargo build --release
```
then add the above path in bashrc or run the following command
## Usage
```BASH
# to get insights for nix build
nixv build [args]
# to get insights for nix develop
nixv develop [args]
# to get insights for nix-shell
nixv-shell [args]
# to get insights for nix-build
nixv-build [args]
```
To toggle logging level use ENV [RUST_LOG]
Possible values [ error , warn , info , debug , trace]
```BASH
export RUST_LOG=info
```
To dump logs to files set ENV [DUMP_LOGS]
```BASH
export DUMP_LOGS=true
```