2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.13.0";
|
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
pname = "sqlc";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kyleconroy";
|
|
|
|
repo = "sqlc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-HPCt47tctVV8Oz9/7AoVMezIAv6wEsaB7B4rgo9/fNU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
2022-07-18 16:21:45 +00:00
|
|
|
vendorSha256 = "sha256-miyNIF6RNOuvNEA9Hf+hOyRJG+5IcXU4Vo4Fzn+nIb4=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|