diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index e65e33a8cc116..fec2d81f3bf0d 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -388,6 +388,8 @@ self: super: ({ http-reverse-proxy = dontCheck super.http-reverse-proxy; servant-auth-server = dontCheck super.servant-auth-server; + sysinfo = dontCheck super.sysinfo; + } // lib.optionalAttrs pkgs.stdenv.hostPlatform.isAarch64 { # aarch64-darwin # Workarounds for justStaticExecutables on aarch64-darwin. Since dead code diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index eb0b2f97ee7aa..bfb9b187234bf 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1536,4 +1536,13 @@ self: super: builtins.intersectAttrs super { # certificate used only 1024 Bit RSA key and SHA-1, which is not allowed in OpenSSL 3.1+ # security level 2 openssl-streams = appendPatch ./patches/openssl-streams-cert.patch super.openssl-streams; + + libtorch-ffi = appendConfigureFlags ([ + "--extra-include-dirs=${lib.getDev pkgs.libtorch-bin}/include/torch/csrc/api/include" + ] ++ (lib.optionals pkgs.config.cudaSupport [ "-f" "cuda" ]) + ) (super.libtorch-ffi.override ({ + c10 = pkgs.libtorch-bin; + torch = pkgs.libtorch-bin; + torch_cpu = pkgs.libtorch-bin; + })); }