31 lines
691 B
Nix
31 lines
691 B
Nix
|
{ lib
|
||
|
, buildGoModule
|
||
|
, fetchFromGitHub
|
||
|
}:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "dblab";
|
||
|
version = "0.20.0";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "danvergara";
|
||
|
repo = "dblab";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-Wg7BujAf7pTek+WPiVONRof5rYfKixXkU+OS/04m3zY=";
|
||
|
};
|
||
|
|
||
|
vendorHash = "sha256-vf0CeiLBVqMGV2oqxRHzhvL7SoT9zcg8P5c63z3UR3g=";
|
||
|
|
||
|
ldflags = [ "-s -w -X main.version=${version}" ];
|
||
|
|
||
|
# some tests require network access
|
||
|
doCheck = false;
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "The database client every command line junkie deserves";
|
||
|
homepage = "https://github.com/danvergara/dblab";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ dit7ya ];
|
||
|
};
|
||
|
}
|