2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.17.2";
|
2022-05-18 14:49:53 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "sqlc";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kyleconroy";
|
|
|
|
repo = "sqlc";
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-30dIFo07C+noWdnq2sL1pEQZzTR4FfaV0FvyW4BxCU8=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
vendorHash = "sha256-y5OYq1X4Y0DxFYW2CiedcIjhOyeHgMhJ3dMa+2PUCUY=";
|
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
|
|
|
};
|
|
|
|
}
|