-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
729 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "Build legacy Nix package on Ubuntu" | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: cachix/install-nix-action@v12 | ||
- name: Building package | ||
run: nix-build . -A defaultPackage.x86_64-linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "npt" | ||
description = "Nix Package Tool" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Santiago Fraire Willemoës <[email protected]>"] | ||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
clap = { version = "4.0.32", features = ["derive"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# NPT | ||
|
||
> Nix Package Tool | ||
A (humble) successor to linux's `apt`, which makes life easier when using [nix](https://nixos.org/) as a package manager. | ||
|
||
This is a tool I'm using in my nix journey. | ||
|
||
## Requirements | ||
|
||
Make sure you have installed [nix the package manager](https://nixos.org/download.html). | ||
|
||
## Goals | ||
|
||
- Make it easy to transition from traditional package managers (`apt`, `brew`, `pacman`, etc) | ||
- Good and ituitive UX | ||
- Learn nix while using, this can display the commands executed. | ||
|
||
## Usage | ||
|
||
```$ npt --help | ||
Nix Package Tool | ||
Usage: npt <COMMAND> | ||
Commands: | ||
install Install packages for the profile, if no repository provided, it defaults to nixpkgs | ||
update Update all or specific packaages | ||
search Find a package in the registry, if no repository provided, it defaults to nixpkgs | ||
remove Remove one or more packages | ||
shell Open a shell with the given packages | ||
help Print this message or the help of the given subcommand(s) | ||
Options: | ||
-h, --help Print help information | ||
-V, --version Print version information | ||
``` | ||
|
||
## TODO | ||
|
||
- [ ] implement `update` command | ||
- [ ] implement `shell` command | ||
- [ ] provide compiled tar's to speed up flakes |
Oops, something went wrong.