at 23.05-pre 616 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3let 4 version = "1.16.0"; 5in 6buildGoModule { 7 pname = "sqlc"; 8 inherit version; 9 10 src = fetchFromGitHub { 11 owner = "kyleconroy"; 12 repo = "sqlc"; 13 rev = "v${version}"; 14 sha256 = "sha256-YxGMfGhcPT3Pcyxu1hAkadkJnEBMX26fE/rGfGSTsyc="; 15 }; 16 17 proxyVendor = true; 18 vendorSha256 = "sha256-cMYTQ8rATCXOquSxc4iZ2MvxIaMO3RG8PZkpOwwntyc="; 19 20 subPackages = [ "cmd/sqlc" ]; 21 22 meta = { 23 description = "Generate type-safe code from SQL"; 24 homepage = "https://sqlc.dev/"; 25 license = lib.licenses.mit; 26 maintainers = [ lib.maintainers.adisbladis ]; 27 }; 28}