depot/third_party/nixpkgs/pkgs/development/tools/database/sqlc/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

29 lines
633 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
let
version = "1.26.0";
in
buildGoModule {
pname = "sqlc";
inherit version;
src = fetchFromGitHub {
owner = "sqlc-dev";
repo = "sqlc";
rev = "v${version}";
hash = "sha256-o23FQytw+zpkmTTxxxunHx3NvLF5q0ZSl1NV+D+XKww=";
};
proxyVendor = true;
vendorHash = "sha256-T4DUuZg1yVxSgw/SXgajpvYwzfYZYxzLE3F7U9bpUTw=";
subPackages = [ "cmd/sqlc" ];
meta = {
description = "Generate type-safe code from SQL";
mainProgram = "sqlc";
homepage = "https://sqlc.dev/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.adisbladis ];
};
}