From 4fa2f56bb86a31f805f8ee5be5732288b6773171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 1 Aug 2023 08:12:42 +0200 Subject: [PATCH] python3Packages.pythran: unvendor the xsimd dependency https://hydra.nixos.org/build/229711355/nixlog/150/tail https://github.com/NixOS/nixpkgs/pull/246200#issuecomment-1658719714 pythran doesn't seem to support building with external xsimd, but this source-symlink seems to work fine and it's header-only C++ library anyway. --- pkgs/development/python-modules/pythran/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/pythran/default.nix b/pkgs/development/python-modules/pythran/default.nix index 7a55b2003ab7..25f21b2fa506 100644 --- a/pkgs/development/python-modules/pythran/default.nix +++ b/pkgs/development/python-modules/pythran/default.nix @@ -10,6 +10,7 @@ , six , numpy , beniget +, xsimd , isPy3k , substituteAll }: @@ -36,6 +37,12 @@ in buildPythonPackage rec { }) ]; + # xsimd: unvendor this header-only C++ lib + postPatch = '' + rm -r third_party/xsimd + ln -s '${lib.getDev xsimd}'/include/xsimd third_party/ + ''; + propagatedBuildInputs = [ ply networkx