12 inherit (stdenv.hostPlatform.uname) processor;
16 url = "https://cdn.geekbench.com/Geekbench-${version}-Linux.tar.gz";
17 hash = "sha256-AXJ5mXGc1RWnIkB13KtIdt7vKETEXowunzQZciQDnzs=";
20 url = "https://cdn.geekbench.com/Geekbench-${version}-LinuxARMPreview.tar.gz";
21 hash = "sha256-fbf01qa9wx3k9j8AEqv38fAM3F9tZOcnpH/wa/9rawQ=";
24 geekbench_avx2 = lib.optionalString stdenv.hostPlatform.isx86_64 "geekbench_avx2";
30 src = fetchurl (sources.${stdenv.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"));
35 nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
37 buildInputs = [ (lib.getLib stdenv.cc.cc) ];
43 cp -r geekbench.plar geekbench-workload.plar geekbench6 geekbench_${processor} ${geekbench_avx2} $out/bin
45 for f in geekbench6 geekbench_${processor} ${geekbench_avx2} ; do
46 wrapProgram $out/bin/$f \
47 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
48 addDriverRunpath.driverLink
58 description = "Cross-platform benchmark";
59 homepage = "https://geekbench.com/";
60 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
61 license = licenses.unfree;
62 maintainers = with maintainers; [ michalrus asininemonkey ];
63 platforms = builtins.attrNames sources;
64 mainProgram = "geekbench6";