From 8e9defd68f20ca5f18ed5bee280dc88b9a0829c4 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 Change-Id: kkpxvsunyvpnxkkrokpzyurtxovkwnpl 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 4b84a18..0a7eacd 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.43.0