git.iko.soy/typeable/nixpkgs
on master help sign in
geekbench: init at 4.1.1
commita809cf409a772f15ba4f71ec86ac35dc91a13ddb authorMichal Rus <m@michalrus.com> dateTue 8 Aug 2017, 01:28 (9 years ago) parenta7c8f5e
2 files changed+37
pkgs/tools/misc/geekbench/default.nix+35 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/geekbench/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, fetchurl, makeWrapper }:
2+
3+stdenv.mkDerivation rec {
4+ name = "geekbench-${version}";
5+ version = "4.1.1";
6+
7+ src = fetchurl {
8+ url = "http://cdn.primatelabs.com/Geekbench-${version}-Linux.tar.gz";
9+ sha256 = "1n9jyzf0a0w37hb30ip76hz73bvim76jd2fgd6131hh0shp1s4v6";
10+ };
11+
12+ dontConfigure = true;
13+ dontBuild = true;
14+
15+ nativeBuildInputs = [ makeWrapper ];
16+
17+ installPhase = ''
18+ mkdir -p $out/bin
19+ cp -r dist/Geekbench-${version}-Linux/. $out/bin
20+ rm $out/bin/geekbench_x86_32
21+
22+ for f in geekbench4 geekbench_x86_64 ; do
23+ patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) $out/bin/$f
24+ wrapProgram $out/bin/$f --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc.lib ]}"
25+ done
26+ '';
27+
28+ meta = with stdenv.lib; {
29+ description = "Cross-platform benchmark";
30+ homepage = http://geekbench.com/;
31+ license = licenses.unfree;
32+ maintainers = [ maintainers.michalrus ];
33+ platforms = [ "x86_64-linux" ];
34+ };
35+}
pkgs/top-level/all-packages.nix+2
@@ -1031,6 +1031,8 @@ with pkgs;
10311031
10321032 go-dependency-manager = callPackage ../development/tools/gdm { };
10331033
1034+ geekbench = callPackage ../tools/misc/geekbench { };
1035+
10341036 gencfsm = callPackage ../tools/security/gencfsm { };
10351037
10361038 genromfs = callPackage ../tools/filesystems/genromfs { };