depot/third_party/nixpkgs/pkgs/development/tools/database/sqlc/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

28 lines
607 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
let
version = "1.23.0";
in
buildGoModule {
pname = "sqlc";
inherit version;
src = fetchFromGitHub {
owner = "sqlc-dev";
repo = "sqlc";
rev = "v${version}";
hash = "sha256-MM4O/njW4R1darZMtoevuLMt14/BrCAaFvSX06CTso8=";
};
proxyVendor = true;
vendorHash = "sha256-tJ+Bih+vwkYfEvIsJ6R2Z0eDS9m1eTOS68uyad0F6f0=";
subPackages = [ "cmd/sqlc" ];
meta = {
description = "Generate type-safe code from SQL";
homepage = "https://sqlc.dev/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.adisbladis ];
};
}