Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, buildGoModule }: 2 3buildGoModule rec { 4 pname = "termdbms"; 5 version = "unstable-2021-09-04"; 6 7 src = fetchFromGitHub { 8 owner = "mathaou"; 9 repo = "termdbms"; 10 rev = "d46e72c796e8aee0def71b8e3499b0ebe5ca3385"; 11 sha256 = "1c3xgidhmvlcdw7v5gcqzv27cb58f1ix8sfd4r14rfz7c8kbv37v"; 12 }; 13 14 vendorSha256 = "0h9aw68niizd9gs0i890g6ij13af04qgpfy1g5pskyr4ryx0gn26"; 15 16 patches = [ ./viewer.patch ]; 17 18 ldflags = [ "-s" "-w" "-X=main.Version=${version}" ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/mathaou/termdbms/"; 22 description = "A TUI for viewing and editing database files"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ izorkin ]; 25 mainProgram = "sqlite3-viewer"; 26 }; 27}