Fix papi cross compilation

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

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

@@ -0,0 +1,17 @@
{
stdenv,
papi,
}:
if stdenv.hostPlatform == stdenv.buildPlatform then
papi
else
papi.overrideAttrs (old: {
configureFlags = (old.configureFlags or [ ]) ++ [
"--enable-perf_event_uncore=no"
"--with-ffsll"
"--with-tls=__thread"
"--with-virtualtimer=clock_thread_cputime_id"
"--with-walltimer=clock_realtime_hr"
];
})