mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
Merge pull request #136961 from Izorkin/init-termdbms
termdbms: init at 2021-09-04
This commit is contained in:
commit
475bc9b75c
26
pkgs/development/tools/database/termdbms/default.nix
Normal file
26
pkgs/development/tools/database/termdbms/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
12
pkgs/development/tools/database/termdbms/viewer.patch
Normal file
12
pkgs/development/tools/database/termdbms/viewer.patch
Normal 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"
|
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user