From 5ca99c745096bc806559543a49834e4710ba3a59 Mon Sep 17 00:00:00 2001 From: Winter Date: Mon, 11 Aug 2025 18:11:14 -0400 Subject: [PATCH] nix/pkgs/genjwks: use granular source I'm so sick of this thing rebuilding every time I reload my devshell. Signed-off-by: Winter --- nix/pkgs/genjwks.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nix/pkgs/genjwks.nix b/nix/pkgs/genjwks.nix index 4b84a18f..0a7eacd9 100644 --- a/nix/pkgs/genjwks.nix +++ b/nix/pkgs/genjwks.nix @@ -1,13 +1,15 @@ { - src, buildGoApplication, modules, }: buildGoApplication { pname = "genjwks"; version = "0.1.0"; - inherit src modules; - subPackages = ["cmd/genjwks"]; + src = ../../cmd/genjwks; + postPatch = '' + ln -s ${../../go.mod} ./go.mod + ''; + inherit modules; doCheck = false; CGO_ENABLED = 0; } -- 2.51.2