Merge pull request #136961 from Izorkin/init-termdbms

termdbms: init at 2021-09-04
This commit is contained in:
Sandro 2021-09-11 21:08:14 +02:00 committed by GitHub
commit 475bc9b75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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"

View File

@ -27903,6 +27903,8 @@ with pkgs;
tendermint = callPackage ../tools/networking/tendermint { };
termdbms = callPackage ../development/tools/database/termdbms { };
termdown = python3Packages.callPackage ../applications/misc/termdown { };
terminal-notifier = callPackage ../applications/misc/terminal-notifier {};