Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nap snap is now officially published #18

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ brew install nap
# Arch
yay -S nap

# Snap
sudo snap install nap-snippets

# Nix
nix-env -iA nixpkgs.nap
```
Expand Down
33 changes: 33 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: nap-snippets
adopt-info: nap-snippets
summary: Nap is a code snippet manager for your terminal.
description: |
Nap is a code snippet manager for your terminal. Create and access new snippets quickly with
the command-line interface or browse, manage, and organize them with the text-user interface.
Keep your code snippets safe, sound, and well-rested in your terminal.

To learn more, visit: https://github.com/maaslalani/nap

base: core20
grade: stable
confinement: strict
compression: lzo
license: MIT

apps:
nap-snippets:
command: bin/nap
plugs:
- home

parts:
nap-snippets:
source: https://github.com/maaslalani/nap
source-type: git
plugin: go
build-snaps:
- go

override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"