Skip to content

Commit 651eae6

Browse files
committed
refactor(nix): colocate overlay patch stacks
1 parent acca402 commit 651eae6

8 files changed

Lines changed: 11 additions & 3 deletions

File tree

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,14 @@
527527
enable = true;
528528
stages = [ "pre-commit" ];
529529
};
530+
forbid-root-patches = {
531+
enable = true;
532+
name = "forbid root patches directory";
533+
entry = "${pkgs.coreutils}/bin/false";
534+
language = "system";
535+
files = "^patches/";
536+
stages = [ "pre-commit" ];
537+
};
530538
forbid-new-submodules = {
531539
enable = true;
532540
stages = [ "pre-push" ];

modules/shell/git/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ let
1414
hunkPackageBase = inputs.hunk.packages.${pkgs.stdenv.hostPlatform.system}.default;
1515
hunkPackagePatched = hunkPackageBase.overrideAttrs (old: {
1616
patches = (old.patches or [ ]) ++ [
17-
../../../patches/hunk/0001-add-source-switch-menu.patch
18-
../../../patches/hunk/0002-add-which-key.patch
17+
../../../overlays/hunk/patches/0001-add-source-switch-menu.patch
18+
../../../overlays/hunk/patches/0002-add-which-key.patch
1919
];
2020
});
2121
hunkPackage =

overlays/hermes-agent/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ final: prev:
33
let
44
patchedHermesAgent = prev.llm-agents."hermes-agent".overrideAttrs (old: {
55
patches = (old.patches or [ ]) ++ [
6-
../../patches/hermes-agent/0002-normalize-auto-title-inputs.patch
6+
./patches/0002-normalize-auto-title-inputs.patch
77
];
88
});
99

patches/hermes-agent/0001-forward-fallback-explicit-endpoint-config.patch renamed to overlays/hermes-agent/patches/0001-forward-fallback-explicit-endpoint-config.patch

File renamed without changes.

patches/hermes-agent/0002-normalize-auto-title-inputs.patch renamed to overlays/hermes-agent/patches/0002-normalize-auto-title-inputs.patch

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)