From f93ab807f2c0cf22ffd54b1e91ca8928b842beed Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 11 Jun 2024 08:53:25 -0400 Subject: [PATCH] chore: Pin sqlc to v1.25.0 in `flake.nix` --- flake.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/flake.nix b/flake.nix index 2b6f032ade30d..b2b82117b24f0 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,24 @@ # From https://nixos.wiki/wiki/Google_Cloud_SDK gdk = pkgs.google-cloud-sdk.withExtraComponents ([ pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin ]); + # Locked to 1.25.0 instead of updating! See the derivation in nixpkgs: + # https://github.com/NixOS/nixpkgs/blob/4f3886e6c789e9f563195a9c407be2c8e16e4010/pkgs/development/tools/database/sqlc/default.nix + sqlc = pkgs.buildGoModule { + pname = "sqlc"; + version = "1.25.0"; + + src = pkgs.fetchFromGitHub { + owner = "sqlc-dev"; + repo = "sqlc"; + rev = "v${version}"; + hash = "sha256-VrR/oSGyKtbKHfQaiLQ9oKyWC1Y7lTZO1aUSS5bCkKY="; + }; + + proxyVendor = true; + vendorHash = "sha256-C5OOTAYoSt4anz1B/NGDHY5NhxfyTZ6EHis04LFnMPM="; + + subPackages = [ "cmd/sqlc" ]; + }; # The minimal set of packages to build Coder. devShellPackages = with pkgs; [ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy