haskellPackages.hermes-json: fix vendored simdjson with clang-19#355529
haskellPackages.hermes-json: fix vendored simdjson with clang-19#355529emilazy merged 1 commit intoNixOS:llvm-19from paparodeo:hermes-json-fix-vendored-simjson
Conversation
|
could un-vendor by taking ToT from https://github.com/velveteer/hermes. one hacky way to do it is pulling patches. diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index c89549e52162..e2aff42ce78a 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -2585,7 +2585,29 @@ self: super: {
# vendored simdjson breaks with clang-19
# https://github.com/simdjson/simdjson/commit/5d35e7ca1f1727ca57d31d4ae5f3954fe96337e3
- patches = drv.patches or [] ++ [ ./patches/hermes-json-clang-19.diff ];
+ #patches = drv.patches or [] ++ [ ./patches/hermes-json-clang-19.diff ];
+ patches = drv.patches or [] ++ [
+ (fetchpatch {
+ url = "https://github.com/velveteer/hermes/commit/6fd9904d93a5c001aadb27c114345a6958904d71.patch";
+ hash = "sha256-Pv09XP0/VjUiAFp237Adj06PIZU21mQRh7guTlKksvA=";
+ excludes = [
+ ".github/*"
+ "hermes-bench/*"
+ ];
+ })
+ (fetchpatch {
+ url = "https://github.com/velveteer/hermes/commit/ca8dddbf52f9d7788460a056fefeb241bcd09190.patch";
+ hash = "sha256-tDDGS0QZ3YWe7+SP09wnxx6lIWL986ce5Zhqr7F2sBk=";
+ excludes = [
+ "README.md"
+ ".github/*"
+ "hermes-bench/*"
+ ];
+ })
+ ];
+ postPatch = drv.postPatch or "" + ''
+ ln -fs ${pkgs.simdjson.src} simdjson
+ '';
}) super.hermes-json;
# Disabling doctests. |
|
I’d prefer that hack, if you don’t mind. |
|
I take it there's no way to give this package a pre built |
tho note that simdjson is not built as a shared library, contains a 4MB header, 2MB cpp file and the .a file is 88K |
|
OK, works for me then. @maralorn Is there a way to just use a GitHub source directly for a Haskell package rather than reconstructing it with patches? |
|
Sure there is, just override the |
|
Fair enough. I am fine with @paparodeo’s proposed diff, then. |
updated code taken from simdjson/simdjson@5d35e7c
tried to un-vendor but the tests failed so created a patch
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.
@emilazy