Skip to content

Commit f93ab80

Browse files
committed
chore: Pin sqlc to v1.25.0 in flake.nix
1 parent 7958c52 commit f93ab80

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

flake.nix

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@
2020

2121
# From https://nixos.wiki/wiki/Google_Cloud_SDK
2222
gdk = pkgs.google-cloud-sdk.withExtraComponents ([ pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin ]);
23+
# Locked to 1.25.0 instead of updating! See the derivation in nixpkgs:
24+
# https://github.com/NixOS/nixpkgs/blob/4f3886e6c789e9f563195a9c407be2c8e16e4010/pkgs/development/tools/database/sqlc/default.nix
25+
sqlc = pkgs.buildGoModule {
26+
pname = "sqlc";
27+
version = "1.25.0";
28+
29+
src = pkgs.fetchFromGitHub {
30+
owner = "sqlc-dev";
31+
repo = "sqlc";
32+
rev = "v${version}";
33+
hash = "sha256-VrR/oSGyKtbKHfQaiLQ9oKyWC1Y7lTZO1aUSS5bCkKY=";
34+
};
35+
36+
proxyVendor = true;
37+
vendorHash = "sha256-C5OOTAYoSt4anz1B/NGDHY5NhxfyTZ6EHis04LFnMPM=";
38+
39+
subPackages = [ "cmd/sqlc" ];
40+
};
2341

2442
# The minimal set of packages to build Coder.
2543
devShellPackages = with pkgs; [

0 commit comments

Comments
 (0)