mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
32 lines
699 B
Nix
32 lines
699 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
let
|
|
version = "1.13.0";
|
|
in
|
|
buildGoModule {
|
|
pname = "sqlc";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kyleconroy";
|
|
repo = "sqlc";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HPCt47tctVV8Oz9/7AoVMezIAv6wEsaB7B4rgo9/fNU=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorSha256 = "sha256-zZ0IrtfQvczoB7th9ZCUlYOtyZr3Y3yF0pKzRCqmCjo=";
|
|
|
|
subPackages = [ "cmd/sqlc" ];
|
|
|
|
meta = let
|
|
inherit (lib) licenses platforms maintainers;
|
|
in {
|
|
description = " Generate type-safe code from SQL";
|
|
homepage = "https://sqlc.dev/";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.adisbladis ];
|
|
};
|
|
}
|