depot/third_party/nixpkgs/pkgs/development/tools/database/sqlc/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

28 lines
614 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
let
version = "1.18.0";
in
buildGoModule {
pname = "sqlc";
inherit version;
src = fetchFromGitHub {
owner = "kyleconroy";
repo = "sqlc";
rev = "v${version}";
sha256 = "sha256-5MC7D9+33x/l76j186FCnzo0Hnx0wY6BPdneW7E7MpE=";
};
proxyVendor = true;
vendorHash = "sha256-gDePB+IZSyVIILDAj+O0Q8hgL0N/0Mwp1Xsrlh3B914=";
subPackages = [ "cmd/sqlc" ];
meta = {
description = "Generate type-safe code from SQL";
homepage = "https://sqlc.dev/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.adisbladis ];
};
}