Merge pull request #189661 from azahi/tbls

tbls: init at 1.56.2
This commit is contained in:
Ivv 2022-09-11 18:55:51 +02:00 committed by GitHub
commit 2eafac6d06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, tbls
}:
buildGoModule rec {
pname = "tbls";
version = "1.56.2";
src = fetchFromGitHub {
owner = "k1LoW";
repo = "tbls";
rev = "v${version}";
sha256 = "sha256-fJbdZlgegC54OIAbygKO5GzNh6UAuT4OZp7KK+XJhvI=";
};
vendorSha256 = "sha256-pmnSeQHZEtsshldfq6D/r5pMYA5ivMWkzjOq2/WseYU=";
CGO_CFLAGS = [ "-Wno-format-security" ];
ldflags = [
"-s"
"-w"
"-X github.com/k1LoW/tbls.commit=unspecified"
"-X github.com/k1LoW/tbls.date=unspecified"
"-X github.com/k1LoW/tbls.version=${src.rev}"
"-X github.com/k1LoW/tbls/version.Version=${src.rev}"
];
preCheck = ''
# Remove tests that require additional services.
rm -f \
datasource/datasource_test.go \
drivers/*/*_test.go
'';
passthru.tests.version = testers.testVersion {
package = tbls;
command = "tbls version";
version = src.rev;
};
meta = with lib; {
description = "A tool to generate documentation based on a database";
homepage = "https://github.com/k1LoW/tbls";
changelog = "https://github.com/k1LoW/tbls/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
};
}

View file

@ -33716,6 +33716,8 @@ with pkgs;
tbe = libsForQt5.callPackage ../games/the-butterfly-effect { };
tbls = callPackage ../tools/misc/tbls { };
tecnoballz = callPackage ../games/tecnoballz { };
teetertorture = callPackage ../games/teetertorture { };