571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-jet";
|
|
version = "2.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "jet";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-lS/oo0jD/kYKVDJly96Y/iRupPXueoOOYJsEYu1+Jdk=";
|
|
};
|
|
|
|
vendorHash = "sha256-f2oeGERwnqMPPwV+ZUJ+Mss9ZmlQRg/xllofDR9aa4M=";
|
|
|
|
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";
|
|
};
|
|
}
|