2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.14.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "sqlc";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kyleconroy";
|
|
|
|
repo = "sqlc";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-+JkNuN5Hv1g1+UpJEBZpf7QV/3A85IVzMa5cfeRSQRo=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorSha256 = "sha256-QG/pIsK8krBaO5IDgln10jpCnlw3XC8sIYyzuwYjTs0=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/sqlc" ];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate type-safe code from SQL";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://sqlc.dev/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.adisbladis ];
|
|
|
|
};
|
|
|
|
}
|