2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.15.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-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-Ufa5A+lsFSyxe7s0DbLhWW298Y1yaSCazMjGBryyMYY=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
vendorSha256 = "sha256-KatF4epCzyQCoAGk1verjAYNrFcmcLiVyDI2542Vm3k=";
|
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
|
|
|
};
|
|
|
|
}
|