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

31 lines
691 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "dblab";
version = "0.23.0";
src = fetchFromGitHub {
owner = "danvergara";
repo = "dblab";
rev = "v${version}";
hash = "sha256-PXIV9MLdBRTvXwvtKraX3530H/EDz+4HA7SeKyeEJB4=";
};
vendorHash = "sha256-WzyH3Ja/Znk/9aavIoBQRpJVnGb5o/ded0g92MTa4M4=";
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 ];
};
}