2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.19.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "sqlc";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kyleconroy";
|
|
|
|
repo = "sqlc";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-xZogHQ44amdhFewovFd1TWrul0wlofUqo46Ay13Mnig=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
2023-08-04 22:07:22 +00:00
|
|
|
vendorHash = "sha256-owH+Gd6K+RzBRhWEs99qQLXV3UWysEkLinEFvzSzXIU=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/sqlc" ];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
meta = {
|
2022-07-18 16:21:45 +00:00
|
|
|
description = "Generate type-safe code from SQL";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://sqlc.dev/";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.adisbladis ];
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
}
|