summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-09-14 10:45:54 +0200
committerJonathan Brielmaier <jonathan.brielmaier@web.de>2022-11-10 17:59:50 +0100
commit86c47336efa95ae01328fabf013c2b01950a7e8a (patch)
treedc23e6aa57d532f5c4a2c00be18dc104d10e0c51
parentdfc2b256ebe208605c7da1b35ab0bfd8304ae675 (diff)
nongnu: Add geekbench5.
* nongnu/packages/benchmark.scm: New file. * nongnu/packages/benchmark.scm (geekbench5): New variable. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
-rw-r--r--nongnu/packages/benchmark.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/nongnu/packages/benchmark.scm b/nongnu/packages/benchmark.scm
new file mode 100644
index 0000000..d6a36f9
--- /dev/null
+++ b/nongnu/packages/benchmark.scm
@@ -0,0 +1,55 @@
1;;; Copyright © 2021-2022 Petr Hodina <phodina@protonmail.com>
2;;;
3;;; This program is free software: you can redistribute it and/or modify
4;;; it under the terms of the GNU General Public License as published by
5;;; the Free Software Foundation, either version 3 of the License, or
6;;; (at your option) any later version.
7;;;
8;;; This program is distributed in the hope that it will be useful,
9;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11;;; GNU General Public License for more details.
12;;;
13;;; You should have received a copy of the GNU General Public License
14;;; along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16(define-module (nongnu packages benchmark)
17 #:use-module (guix packages)
18 #:use-module (gnu packages base)
19 #:use-module (gnu packages gcc)
20 #:use-module (guix gexp)
21 #:use-module (guix download)
22 #:use-module (nonguix build-system binary)
23 #:use-module ((nonguix licenses) #:prefix license:))
24
25(define-public geekbench5
26 (package
27 (name "geekbench5")
28 (version "5.4.5")
29 (source (origin
30 (method url-fetch)
31 (uri (string-append "https://cdn.geekbench.com/Geekbench-"
32 version "-Linux.tar.gz"))
33 (sha256
34 (base32
35 "0qppx5ivclfwldb4fcmzg3v9a9nzi7d4f44vx634mfzw2symn3r4"))))
36 (build-system binary-build-system)
37 (arguments
38 (list #:strip-binaries? #f ;TODO: For some reason it fails validate-runpath
39 #:install-plan #~'(("geekbench5" "bin/")
40 ("geekbench.plar" "bin/")
41 ("geekbench_x86_64" "bin/"))
42 #:patchelf-plan #~(list (list "geekbench5"
43 '("glibc" "gcc:lib"))
44 (list "geekbench_x86_64"
45 '("glibc" "gcc:lib")))))
46 (supported-systems '("x86_64-linux"))
47 (inputs `(("gcc:lib" ,gcc "lib")
48 ("glibc" ,glibc)))
49 (synopsis "Benchmark that measures processor and memory performance")
50 (description
51 "This package provides benchmark that measures processor and memory
52performance and uploads the results into online database.")
53 (home-page "https://www.geekbench.com/")
54 (license (license:nonfree
55 "https://www.primatelabs.com/legal/terms-of-use.html"))))