3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/database/sqlc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
616 B
Nix
Raw Normal View History

2022-05-13 08:43:32 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
let
2022-11-10 11:54:40 +00:00
version = "1.16.0";
2022-05-13 08:43:32 +01:00
in
buildGoModule {
pname = "sqlc";
inherit version;
src = fetchFromGitHub {
owner = "kyleconroy";
repo = "sqlc";
rev = "v${version}";
2022-11-10 11:54:40 +00:00
sha256 = "sha256-YxGMfGhcPT3Pcyxu1hAkadkJnEBMX26fE/rGfGSTsyc=";
2022-05-13 08:43:32 +01:00
};
proxyVendor = true;
2022-11-10 11:54:40 +00:00
vendorSha256 = "sha256-cMYTQ8rATCXOquSxc4iZ2MvxIaMO3RG8PZkpOwwntyc=";
2022-05-13 08:43:32 +01:00
subPackages = [ "cmd/sqlc" ];
2022-08-09 08:45:53 +01:00
meta = {
description = "Generate type-safe code from SQL";
2022-05-13 08:43:32 +01:00
homepage = "https://sqlc.dev/";
2022-08-09 08:45:53 +01:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.adisbladis ];
2022-05-13 08:43:32 +01:00
};
}