Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 760 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5}: 6 7buildGoModule rec { 8 pname = "termdbms"; 9 version = "unstable-2021-09-04"; 10 11 src = fetchFromGitHub { 12 owner = "mathaou"; 13 repo = "termdbms"; 14 rev = "d46e72c796e8aee0def71b8e3499b0ebe5ca3385"; 15 hash = "sha256-+4y9JmLnu0xCJs1p1GNwqCx2xP6YvbIPb4zuClt8fbA="; 16 }; 17 18 vendorHash = "sha256-RtgHus8k+6lvecG7+zABTo0go3kgoQj0S+3HaJHhKkE="; 19 20 patches = [ ./viewer.patch ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 "-X=main.Version=${version}" 26 ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/mathaou/termdbms/"; 30 description = "TUI for viewing and editing database files"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ izorkin ]; 33 mainProgram = "sqlite3-viewer"; 34 }; 35}