Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
woile committed Jan 8, 2023
1 parent 25bdc79 commit e411e65
Show file tree
Hide file tree
Showing 10 changed files with 729 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
13 changes: 13 additions & 0 deletions .github/workflows/build_nix.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
323 changes: 323 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.toml
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"] }
43 changes: 43 additions & 0 deletions README.md
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
Loading

0 comments on commit e411e65

Please sign in to comment.