about summary refs log tree commit diff
path: root/pkgs/by-name/zi/zitadel/console.nix
diff options
context:
space:
mode:
authorRuby Iris Juric <ruby@srxl.me>2023-12-30 13:19:24 +1100
committerRuby Iris Juric <ruby@srxl.me>2024-01-01 18:38:00 +1100
commitdd38622bab55b9eb96ecc26f0be5d38ee1b89fe0 (patch)
tree411d8cd511f63291ee68375009753ccf98389fd0 /pkgs/by-name/zi/zitadel/console.nix
parent067c1958fa35b2b994944da7f4fe3fc7f326e418 (diff)
downloadnixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.tar
nixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.tar.gz
nixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.tar.bz2
nixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.tar.lz
nixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.tar.xz
nixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.tar.zst
nixlib-dd38622bab55b9eb96ecc26f0be5d38ee1b89fe0.zip
zitadel: use local plugins for console protobuf generation
Previously, the console portion of ZITADEL used Buf remote plugins to generate
sources. This resulted in the hash for the protobuf generated code changing
whenever the remote builders changed. This change patches the console
configuration to use local plugins from Nixpkgs instead of remote ones, to
ensure the output isn't influenced by remote changes.
Diffstat (limited to 'pkgs/by-name/zi/zitadel/console.nix')
-rw-r--r--pkgs/by-name/zi/zitadel/console.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/by-name/zi/zitadel/console.nix b/pkgs/by-name/zi/zitadel/console.nix
index b9ec209dda73..bd67c47e5743 100644
--- a/pkgs/by-name/zi/zitadel/console.nix
+++ b/pkgs/by-name/zi/zitadel/console.nix
@@ -6,15 +6,24 @@
 { mkYarnPackage
 , fetchYarnDeps
 , lib
+
+, grpc-gateway
+, protoc-gen-grpc-web
+, protoc-gen-js
 }:
 
 let
   protobufGenerated = generateProtobufCode {
     pname = "zitadel-console";
+    nativeBuildInputs = [
+      grpc-gateway
+      protoc-gen-grpc-web
+      protoc-gen-js
+    ];
     workDir = "console";
     bufArgs = "../proto --include-imports --include-wkt";
     outputPath = "src/app/proto";
-    hash = "sha256-NmlKjKWxmqatyR6OitlQ7bfl6U6PS6KWqTALwX42HS4=";
+    hash = "sha256-Bpoe1UZGLTxUqdLbvOod6/77R4CsYQ4PirMfqvI9Lz8=";
   };
 in
 mkYarnPackage rec {