depot/third_party/nixpkgs/pkgs/development/tools/go-jet/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

53 lines
1.1 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-jet";
version = "2.9.0";
src = fetchFromGitHub {
owner = pname;
repo = "jet";
rev = "v${version}";
sha256 = "sha256-1kJaBLZIunexjxjOy55Nw0WMEhrSu+ptMbWVOJ1e5iA=";
};
vendorSha256 = "sha256-mhH9P3waINZhP+jNg3zKlssIL1ZO5xOBHp19Bzq/pSQ=";
subPackages = [ "cmd/jet" ];
tags = [
"mysql"
"golang"
"postgres"
"sql"
"database"
"code-generator"
"sqlite"
"postgresql"
"mariadb"
"sql-query"
"codegenerator"
"typesafe"
"sql-builder"
"datamapper"
"code-completion"
"sql-queries"
"cockroachdb"
"sql-query-builder"
"sqlbuilder"
"typesafety"
];
postPatch = ''
# removing the tests which depend on external data
rm -rf tests/{sqlite,postgres,mysql}
'';
meta = with lib; {
homepage = "https://github.com/go-jet/jet";
description = "Type safe SQL builder with code generation and automatic query result data mapping";
maintainers = with maintainers; [ mrityunjaygr8 ];
license = licenses.asl20;
mainProgram = "jet";
};
}