12 inherit (stdenv.hostPlatform.uname) processor;
16 url = "https://cdn.geekbench.com/Geekbench-${version}-Linux.tar.gz";
17 hash = "sha256-MgN+VcPcjzYP4Wt/uxiNMTh+p1mA5I2M8CgzDjI5xAQ=";
20 url = "https://cdn.geekbench.com/Geekbench-${version}-LinuxARMPreview.tar.gz";
21 hash = "sha256-nrPKnsMqvw6+HGQAKxkQi/6lPEEca1VrDCaJUUuMvW8=";
29 src = fetchurl (sources.${stdenv.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"));
34 nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
36 buildInputs = [ (lib.getLib stdenv.cc.cc) ];
42 cp -r geekbench.plar geekbench5 geekbench_${processor} $out/bin
44 for f in geekbench5 geekbench_${processor} ; do
45 wrapProgram $out/bin/$f \
46 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
47 addDriverRunpath.driverLink
57 description = "Cross-platform benchmark";
58 homepage = "https://geekbench.com/";
59 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
60 license = licenses.unfree;
61 maintainers = [ maintainers.michalrus ];
62 platforms = builtins.attrNames sources;
63 mainProgram = "geekbench5";