geekbench_6: 6.1.0 -> 6.2.0

Also adds support to aarch64-linux.
This commit is contained in:
Thiago Kenji Okada 2023-09-28 10:27:14 +01:00
parent 2a989fea10
commit 8f74b55000

View File

@ -8,14 +8,26 @@
, vulkan-loader
}:
stdenv.mkDerivation rec {
pname = "geekbench";
version = "6.1.0";
src = fetchurl {
url = "https://cdn.geekbench.com/Geekbench-${version}-Linux.tar.gz";
hash = "sha256-GBJHnT6tfLdZuaawwhEvqOFYcmM42DZxRxm7cJNi0aA=";
let
inherit (stdenv.hostPlatform.uname) processor;
version = "6.2.0";
sources = {
"x86_64-linux" = {
url = "https://cdn.geekbench.com/Geekbench-${version}-Linux.tar.gz";
hash = "sha256-QoxSw825qqx1vzhzW9TZg03BPNvgOCokBWARGUhjCGY=";
};
"aarch64-linux" = {
url = "https://cdn.geekbench.com/Geekbench-${version}-LinuxARMPreview.tar.gz";
hash = "sha256-m2uz5Rk34rm9Bx3j5FjFigOIKaj2c4I+uXKzU4cK4D4=";
};
};
geekbench_avx2 = lib.optionalString stdenv.isx86_64 "geekbench_avx2";
in
stdenv.mkDerivation {
inherit version;
pname = "geekbench";
src = fetchurl (sources.${stdenv.system});
dontConfigure = true;
dontBuild = true;
@ -28,9 +40,9 @@ stdenv.mkDerivation rec {
runHook preInstall
mkdir -p $out/bin
cp -r geekbench.plar geekbench-workload.plar geekbench6 geekbench_x86_64 geekbench_avx2 $out/bin
cp -r geekbench.plar geekbench-workload.plar geekbench6 geekbench_${processor} ${geekbench_avx2} $out/bin
for f in geekbench6 geekbench_x86_64 geekbench_avx2 ; do
for f in geekbench6 geekbench_${processor} ${geekbench_avx2} ; do
wrapProgram $out/bin/$f \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
addOpenGLRunpath.driverLink
@ -48,7 +60,7 @@ stdenv.mkDerivation rec {
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
maintainers = [ maintainers.michalrus ];
platforms = [ "x86_64-linux" ];
platforms = builtins.attrNames sources;
mainProgram = "geekbench6";
};
}