1{ lib, buildGoModule, fetchFromGitHub }:
2
3let
4 version = "1.23.0";
5in
6buildGoModule {
7 pname = "sqlc";
8 inherit version;
9
10 src = fetchFromGitHub {
11 owner = "sqlc-dev";
12 repo = "sqlc";
13 rev = "v${version}";
14 hash = "sha256-MM4O/njW4R1darZMtoevuLMt14/BrCAaFvSX06CTso8=";
15 };
16
17 proxyVendor = true;
18 vendorHash = "sha256-tJ+Bih+vwkYfEvIsJ6R2Z0eDS9m1eTOS68uyad0F6f0=";
19
20 subPackages = [ "cmd/sqlc" ];
21
22 meta = {
23 description = "Generate type-safe code from SQL";
24 homepage = "https://sqlc.dev/";
25 license = lib.licenses.mit;
26 maintainers = [ lib.maintainers.adisbladis ];
27 };
28}