summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configs/hermes.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/configs/hermes.nix b/configs/hermes.nix
index 0f3a79c..ea1fd9b 100644
--- a/configs/hermes.nix
+++ b/configs/hermes.nix
@@ -31,12 +31,19 @@ let
_type = "flake";
outPath = pkgs.path;
inherit (pkgs) lib;
+ # For nixos-26.05, which hermes-agent doesn't target.
legacyPackages.${pkgs.stdenv.hostPlatform.system} = pkgs.extend (_: prev: {
- # For nixos-26.05: its fetchPnpmDeps overrides nodejs-slim in a pnpm
- # >= 11, but hermes-agent's pnpm 12 is a plain attrset with that.
+ # Its fetchPnpmDeps overrides nodejs-slim in a pnpm >= 11, but
+ # hermes-agent's pnpm 12 is a plain attrset with that.
fetchPnpmDeps = args: prev.fetchPnpmDeps (args // {
pnpm = args.pnpm // { override = attrs: args.pnpm // attrs; };
});
+ # hermes-agent patches a bug of patchelf 0.19 that its 0.15 doesn't
+ # have, and the patch doesn't apply to it.
+ patchelf =
+ if lib.versionOlder prev.patchelf.version "0.19"
+ then prev.patchelf // { overrideAttrs = _: prev.patchelf; }
+ else prev.patchelf;
});
};
pyproject-nix = callFlake (input "pyproject-nix") { inherit nixpkgs; };