Skip to content

Commit

Permalink
fix(pkgs/autodiff): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wrvsrx committed Aug 1, 2024
1 parent 68f0c5b commit 87b81d8
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions pkgs/to-normal-packages/autodiff/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,25 @@ stdenv.mkDerivation rec {
patches = [ ./pc.patch ];
version = lib.removePrefix "v" source.version;

nativeBuildInputs = [
cmake
eigen
catch2_3
] ++ (if python3 != null then [ python3.pkgs.pybind11 ] else [ ]);
nativeBuildInputs =
[
cmake
eigen
catch2_3
]
++ (
if python3 != null then
[
(python3.withPackages (
ps: with ps; [
setuptools
pybind11
]
))
]
else
[ ]
);

# Building the tests currently fails on AArch64 due to internal compiler
# errors (with GCC 9.2):
Expand All @@ -33,6 +47,5 @@ stdenv.mkDerivation rec {
changelog = "https://github.com/autodiff/autodiff/releases/tag/v${version}";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ ];
};
}

0 comments on commit 87b81d8

Please sign in to comment.