forked from tangled.org/core
this repo has no description

nix/pkgs/genjwks: use granular source

I'm so sick of this thing rebuilding every time I reload my devshell.

Signed-off-by: Winter <winter@winter.cafe>

Changed files
+5 -3
nix
+5 -3
nix/pkgs/genjwks.nix
···
{
-
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;
}