Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 614 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3let 4 version = "1.18.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-5MC7D9+33x/l76j186FCnzo0Hnx0wY6BPdneW7E7MpE="; 15 }; 16 17 proxyVendor = true; 18 vendorHash = "sha256-gDePB+IZSyVIILDAj+O0Q8hgL0N/0Mwp1Xsrlh3B914="; 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}