1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "dblab";
8 version = "0.21.0";
9
10 src = fetchFromGitHub {
11 owner = "danvergara";
12 repo = "dblab";
13 rev = "v${version}";
14 hash = "sha256-3Bmus2yVTwvy0CpoNE1mzVvocpBnRoI11Sf+x2JXhgM=";
15 };
16
17 vendorHash = "sha256-vf0CeiLBVqMGV2oqxRHzhvL7SoT9zcg8P5c63z3UR3g=";
18
19 ldflags = [ "-s -w -X main.version=${version}" ];
20
21 # some tests require network access
22 doCheck = false;
23
24 meta = with lib; {
25 description = "The database client every command line junkie deserves";
26 homepage = "https://github.com/danvergara/dblab";
27 license = licenses.mit;
28 maintainers = with maintainers; [ dit7ya ];
29 };
30}