mirror of
https://github.com/anotherhadi/jwt-tui.git
synced 2026-06-26 01:02:33 +02:00
init
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
schema = 3
|
||||
|
||||
[mod]
|
||||
[mod.'charm.land/bubbles/v2']
|
||||
version = 'v2.1.0'
|
||||
hash = 'sha256-2OmqpBrl+taOJzAhVM6OReLmoYRxZOXx9JqFNjQjsPA='
|
||||
|
||||
[mod.'charm.land/bubbletea/v2']
|
||||
version = 'v2.0.6'
|
||||
hash = 'sha256-1jxXmcnI4peUE0Xs3HGe57pIhRONx235aAaeqm2r434='
|
||||
|
||||
[mod.'charm.land/glamour/v2']
|
||||
version = 'v2.0.0'
|
||||
hash = 'sha256-CZYlNGw2MihqnSHf1Xxqz55NnqW9fVpLxyvLItryIw4='
|
||||
|
||||
[mod.'charm.land/lipgloss/v2']
|
||||
version = 'v2.0.3'
|
||||
hash = 'sha256-/RFkSUscU3NwymzT+PfizGf3XyQIdVGQlX7vxktCUGk='
|
||||
|
||||
[mod.'github.com/alecthomas/chroma/v2']
|
||||
version = 'v2.14.0'
|
||||
hash = 'sha256-d+zcIobMS5Y0/Ym9Uxubf20uyw0aBCr0f1oEOAGHlEA='
|
||||
|
||||
[mod.'github.com/anotherhadi/ilovetui']
|
||||
version = 'v0.1.6'
|
||||
hash = 'sha256-7E+7UFks5vM3XWCvX2joFmHGcW7qqnoox6ZPFglaLO4='
|
||||
|
||||
[mod.'github.com/atotto/clipboard']
|
||||
version = 'v0.1.4'
|
||||
hash = 'sha256-ZZ7U5X0gWOu8zcjZcWbcpzGOGdycwq0TjTFh/eZHjXk='
|
||||
|
||||
[mod.'github.com/aymerick/douceur']
|
||||
version = 'v0.2.0'
|
||||
hash = 'sha256-NiBX8EfOvLXNiK3pJaZX4N73YgfzdrzRXdiBFe3X3sE='
|
||||
|
||||
[mod.'github.com/charmbracelet/colorprofile']
|
||||
version = 'v0.4.3'
|
||||
hash = 'sha256-y+QDUxGOKhugEMQLRUTZYT2C+wKqYHnMLJ44jbh7+JA='
|
||||
|
||||
[mod.'github.com/charmbracelet/ultraviolet']
|
||||
version = 'v0.0.0-20260416155717-489999b90468'
|
||||
hash = 'sha256-HAex/0iEd42Wk1t+AR0O8J+F2ZAYU2sTw9ea0EfmKEU='
|
||||
|
||||
[mod.'github.com/charmbracelet/x/ansi']
|
||||
version = 'v0.11.7'
|
||||
hash = 'sha256-q8BZJq4K7NE5ETocN9/G/EoV0dUyD703ONSfHiUYzWQ='
|
||||
|
||||
[mod.'github.com/charmbracelet/x/exp/slice']
|
||||
version = 'v0.0.0-20250327172914-2fdc97757edf'
|
||||
hash = 'sha256-C1tksnevc/RdytJRQg5LQ0+VVSWlTwbNGic649m6E1Q='
|
||||
|
||||
[mod.'github.com/charmbracelet/x/term']
|
||||
version = 'v0.2.2'
|
||||
hash = 'sha256-KF7IU1Luxl/sZP6XjomWB2e3lxSUS4/5AahhapGir/4='
|
||||
|
||||
[mod.'github.com/charmbracelet/x/termios']
|
||||
version = 'v0.1.1'
|
||||
hash = 'sha256-sri3LpHCBhGvnJldDzBxwbbZpeSGZVCJFOUL45uBFds='
|
||||
|
||||
[mod.'github.com/charmbracelet/x/windows']
|
||||
version = 'v0.2.2'
|
||||
hash = 'sha256-CvmE8kAC5wlPSeWjl2hc5xizvGS2FeOLHw84froldkk='
|
||||
|
||||
[mod.'github.com/clipperhouse/displaywidth']
|
||||
version = 'v0.11.0'
|
||||
hash = 'sha256-WokyTaofEy95xlshqK5YDzpemhXV5oaQifxS9YyfCXo='
|
||||
|
||||
[mod.'github.com/clipperhouse/uax29/v2']
|
||||
version = 'v2.7.0'
|
||||
hash = 'sha256-GO3az7WiGcwU0OvmocwdfR5ohGRL8NbjscIaMyhAdxE='
|
||||
|
||||
[mod.'github.com/dlclark/regexp2']
|
||||
version = 'v1.11.0'
|
||||
hash = 'sha256-iXBBgykYu9Dcd+7LMJyRYc3Ry47jmuLGZFW13zU6toU='
|
||||
|
||||
[mod.'github.com/fsnotify/fsnotify']
|
||||
version = 'v1.9.0'
|
||||
hash = 'sha256-WtpE1N6dpHwEvIub7Xp/CrWm0fd6PX7MKA4PV44rp2g='
|
||||
|
||||
[mod.'github.com/go-viper/mapstructure/v2']
|
||||
version = 'v2.4.0'
|
||||
hash = 'sha256-lLfcV9z4n94hDhgyXJlde4bFB0hfzlbh+polqcJCwGE='
|
||||
|
||||
[mod.'github.com/gorilla/css']
|
||||
version = 'v1.0.1'
|
||||
hash = 'sha256-6JwNHqlY2NpZ0pSQTyYPSpiNqjXOdFHqrUT10sv3y8A='
|
||||
|
||||
[mod.'github.com/lucasb-eyer/go-colorful']
|
||||
version = 'v1.4.0'
|
||||
hash = 'sha256-i/3GDHKEMLCy0kc3mtyk58UWYOPmKoUVaq6QCAWXKP0='
|
||||
|
||||
[mod.'github.com/mattn/go-runewidth']
|
||||
version = 'v0.0.23'
|
||||
hash = 'sha256-SmChZ2U1aR8pW3LPhdM7KcVF5TO6VcHgRzBtUXbBWJA='
|
||||
|
||||
[mod.'github.com/microcosm-cc/bluemonday']
|
||||
version = 'v1.0.27'
|
||||
hash = 'sha256-EZSya9FLPQ83CL7N2cZy21fdS35hViTkiMK5f3op8Es='
|
||||
|
||||
[mod.'github.com/muesli/cancelreader']
|
||||
version = 'v0.2.2'
|
||||
hash = 'sha256-uEPpzwRJBJsQWBw6M71FDfgJuR7n55d/7IV8MO+rpwQ='
|
||||
|
||||
[mod.'github.com/pelletier/go-toml/v2']
|
||||
version = 'v2.2.4'
|
||||
hash = 'sha256-8qQIPldbsS5RO8v/FW/se3ZsAyvLzexiivzJCbGRg2Q='
|
||||
|
||||
[mod.'github.com/rivo/uniseg']
|
||||
version = 'v0.4.7'
|
||||
hash = 'sha256-rDcdNYH6ZD8KouyyiZCUEy8JrjOQoAkxHBhugrfHjFo='
|
||||
|
||||
[mod.'github.com/sagikazarmark/locafero']
|
||||
version = 'v0.11.0'
|
||||
hash = 'sha256-PUX8dzJtkD8YDZFNqpHnl4qgb0tE1W/DLnL7V+/d1z4='
|
||||
|
||||
[mod.'github.com/sourcegraph/conc']
|
||||
version = 'v0.3.1-0.20240121214520-5f936abd7ae8'
|
||||
hash = 'sha256-AUNFlY6K7s1aoW/vb4pjK84ROdnVZY1i6cOmdeG+wN8='
|
||||
|
||||
[mod.'github.com/spf13/afero']
|
||||
version = 'v1.15.0'
|
||||
hash = 'sha256-LhcezbOqfuBzacytbqck0hNUxi6NbWNhifUc5/9uHQ8='
|
||||
|
||||
[mod.'github.com/spf13/cast']
|
||||
version = 'v1.10.0'
|
||||
hash = 'sha256-dQ6Qqf26IZsa6XsGKP7GDuCj+WmSsBmkBwGTDfue/rk='
|
||||
|
||||
[mod.'github.com/spf13/pflag']
|
||||
version = 'v1.0.10'
|
||||
hash = 'sha256-uDPnWjHpSrzXr17KEYEA1yAbizfcsfo5AyztY2tS6ZU='
|
||||
|
||||
[mod.'github.com/spf13/viper']
|
||||
version = 'v1.21.0'
|
||||
hash = 'sha256-A9A8i7HH/ge4j3hw7G++HNj8BjhhpZKvxHhfY+QAxkI='
|
||||
|
||||
[mod.'github.com/subosito/gotenv']
|
||||
version = 'v1.6.0'
|
||||
hash = 'sha256-LspbjTniiq2xAICSXmgqP7carwlNaLqnCTQfw2pa80A='
|
||||
|
||||
[mod.'github.com/xo/terminfo']
|
||||
version = 'v0.0.0-20220910002029-abceb7e1c41e'
|
||||
hash = 'sha256-GyCDxxMQhXA3Pi/TsWXpA8cX5akEoZV7CFx4RO3rARU='
|
||||
|
||||
[mod.'github.com/yuin/goldmark']
|
||||
version = 'v1.7.8'
|
||||
hash = 'sha256-SNJMPPiXkRDLVOldrHN0ErC3bUB2VoWaLDkd9zmMATw='
|
||||
|
||||
[mod.'github.com/yuin/goldmark-emoji']
|
||||
version = 'v1.0.5'
|
||||
hash = 'sha256-GtMipzIcZ0Be7y8fhZ9VkT9dg6bqj9U+DhvliGcMkaU='
|
||||
|
||||
[mod.'go.yaml.in/yaml/v3']
|
||||
version = 'v3.0.4'
|
||||
hash = 'sha256-NkGFiDPoCxbr3LFsI6OCygjjkY0rdmg5ggvVVwpyDQ4='
|
||||
|
||||
[mod.'golang.org/x/net']
|
||||
version = 'v0.39.0'
|
||||
hash = 'sha256-IP29+yGphWKUT7wHTyzqA2rnRT4AJ7oWcT6NKLzkWcM='
|
||||
|
||||
[mod.'golang.org/x/sync']
|
||||
version = 'v0.20.0'
|
||||
hash = 'sha256-ybcjhCfK6lroUM0yswUvWooW8MOQZBXyiSqoxG6Uy0Y='
|
||||
|
||||
[mod.'golang.org/x/sys']
|
||||
version = 'v0.43.0'
|
||||
hash = 'sha256-aDQXqSTZES2l/132PBxhZN4ywldpPyfm7LByYCHzzwM='
|
||||
|
||||
[mod.'golang.org/x/text']
|
||||
version = 'v0.28.0'
|
||||
hash = 'sha256-8UlJniGK+km4Hmrw6XMxELnExgrih7+z8tU26Cntmto='
|
||||
|
||||
[mod.'gopkg.in/yaml.v3']
|
||||
version = 'v3.0.1'
|
||||
hash = 'sha256-FqL9TKYJ0XkNwJFnq9j0VvJ5ZUU1RvH/52h/f5bkYAU='
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
pkgs,
|
||||
buildGoApplication,
|
||||
}: let
|
||||
pname = "jwt-tui";
|
||||
version = "0.1.0";
|
||||
ldflags = ["-s" "-w" "-X main.version=${version}"];
|
||||
pkg = buildGoApplication {
|
||||
inherit pname version ldflags;
|
||||
src = ../.;
|
||||
modules = ./gomod2nix.toml;
|
||||
meta = with pkgs.lib; {
|
||||
description = "A TUI for inspecting, editing, and signing JSON Web Tokens (JWTs).";
|
||||
homepage = "https://github.com/anotherhadi/jwt-tui";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
};
|
||||
in {
|
||||
"${pname}" = pkg;
|
||||
default = pkg;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
pkgs,
|
||||
gitHooksLib,
|
||||
gomod2nixPkgs,
|
||||
}: let
|
||||
hooks = gitHooksLib.run {
|
||||
src = ../.;
|
||||
hooks = {
|
||||
gofmt.enable = true;
|
||||
govet.enable = true;
|
||||
gomod2nix = {
|
||||
enable = true;
|
||||
name = "gomod2nix";
|
||||
entry = "gomod2nix --outdir ./nix";
|
||||
language = "system";
|
||||
files = "go\\.(mod|sum)$";
|
||||
pass_filenames = false;
|
||||
};
|
||||
|
||||
inject-exec = {
|
||||
enable = true;
|
||||
name = "inject-exec";
|
||||
entry = "python3 .github/scripts/inject-exec.py README.md";
|
||||
language = "system";
|
||||
files = "(README\\.md|cmd/)";
|
||||
pass_filenames = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs;
|
||||
[
|
||||
go
|
||||
gomod2nixPkgs.gomod2nix
|
||||
]
|
||||
++ hooks.enabledPackages;
|
||||
|
||||
shellHook = hooks.shellHook;
|
||||
}
|
||||
Reference in New Issue
Block a user