diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-09-11 21:08:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 21:08:14 +0200 |
commit | 475bc9b75c8dea2858013810586d07c4f9a58276 (patch) | |
tree | 3b94ce49f12e58dd237e7fc3fa468f8c781990ad /pkgs/development | |
parent | c175458f3cd9527e0dcb327b70fb424ca2923742 (diff) | |
parent | 4f665d9f4fd1b99084d72d0f8e7c4b696253c5b5 (diff) |
Merge pull request #136961 from Izorkin/init-termdbms
termdbms: init at 2021-09-04
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/database/termdbms/default.nix | 26 | ||||
-rw-r--r-- | pkgs/development/tools/database/termdbms/viewer.patch | 12 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/tools/database/termdbms/default.nix b/pkgs/development/tools/database/termdbms/default.nix new file mode 100644 index 0000000000000..b045669ef9022 --- /dev/null +++ b/pkgs/development/tools/database/termdbms/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "termdbms"; + version = "unstable-2021-09-04"; + + src = fetchFromGitHub { + owner = "mathaou"; + repo = "termdbms"; + rev = "d46e72c796e8aee0def71b8e3499b0ebe5ca3385"; + sha256 = "1c3xgidhmvlcdw7v5gcqzv27cb58f1ix8sfd4r14rfz7c8kbv37v"; + }; + + vendorSha256 = "0h9aw68niizd9gs0i890g6ij13af04qgpfy1g5pskyr4ryx0gn26"; + + patches = [ ./viewer.patch ]; + + ldflags = [ "-s" "-w" "-X=main.Version=${version}" ]; + + meta = with lib; { + homepage = "https://github.com/mathaou/termdbms/"; + description = "A TUI for viewing and editing database files"; + license = licenses.mit; + maintainers = with maintainers; [ izorkin ]; + }; +} diff --git a/pkgs/development/tools/database/termdbms/viewer.patch b/pkgs/development/tools/database/termdbms/viewer.patch new file mode 100644 index 0000000000000..1b95c71de46b6 --- /dev/null +++ b/pkgs/development/tools/database/termdbms/viewer.patch @@ -0,0 +1,12 @@ +diff --git a/viewer/viewer.go b/viewer/viewer.go +index fcf850e..b0a0f8d 100644 +--- a/viewer/viewer.go ++++ b/viewer/viewer.go +@@ -5,7 +5,6 @@ import ( + "github.com/charmbracelet/bubbles/viewport" + tea "github.com/charmbracelet/bubbletea" + "github.com/charmbracelet/lipgloss" +- "github.com/mattn/go-runewidth" + "math" + "runtime" + "strings" |