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
614 B
Nix
Raw Normal View History

2022-05-13 07:43:32 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
let
2023-08-15 05:20:25 +00:00
version = "1.20.0";
2022-05-13 07:43:32 +00:00
in
buildGoModule {
pname = "sqlc";
inherit version;
src = fetchFromGitHub {
owner = "kyleconroy";
repo = "sqlc";
rev = "v${version}";
2023-08-15 05:20:25 +00:00
sha256 = "sha256-ITW5jIlNoiW7sl6s5jCVRELglauZzSPmAj3PXVpdIGA=";
2022-05-13 07:43:32 +00:00
};
proxyVendor = true;
2023-08-15 05:20:25 +00:00
vendorHash = "sha256-5ZJPHdjg3QCB/hJ+C7oXSfzBfg0fZ+kFyMXqC7KpJmY=";
2022-05-13 07:43:32 +00:00
subPackages = [ "cmd/sqlc" ];
2022-08-09 07:45:53 +00:00
meta = {
description = "Generate type-safe code from SQL";
2022-05-13 07:43:32 +00:00
homepage = "https://sqlc.dev/";
2022-08-09 07:45:53 +00:00
license = lib.licenses.mit;
maintainers = [ lib.maintainers.adisbladis ];
2022-05-13 07:43:32 +00:00
};
}