depot/third_party/nixpkgs/pkgs/development/tools/database/dblab/default.nix

31 lines
687 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "dblab";
version = "0.25.0";
src = fetchFromGitHub {
owner = "danvergara";
repo = "dblab";
rev = "v${version}";
hash = "sha256-We6nOrzMKN14ez9hxEnHDLpuad9ZGcXezDQWZduHERU=";
};
vendorHash = "sha256-3vtk4pJE/zRLCbIN+UFvxF/KdH4J5IiCsQ0Wu585wnM=";
ldflags = [ "-s -w -X main.version=${version}" ];
# some tests require network access
doCheck = false;
meta = with lib; {
description = "Database client every command line junkie deserves";
homepage = "https://github.com/danvergara/dblab";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
};
}