Fix papi cross compilation

This commit is contained in:
2025-12-02 15:03:46 +01:00
parent 111fcc61d8
commit f3f50181e3
2 changed files with 13 additions and 0 deletions

12
pkgs/papi/default.nix Normal file
View File

@@ -0,0 +1,12 @@
{
stdenv,
papi,
}:
if stdenv.hostPlatform == stdenv.buildPlatform then
papi
else
# ffsll must be specified for cross compile
papi.overrideAttrs (old: {
configureFlags = (old.configureFlags or [ ]) ++ [ "--with-ffsll" ];
})