mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: fio: Use G-expressions.
* gnu/packages/benchmark.scm (fio)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
140d4f2101
commit
3d84a72966
1 changed files with 31 additions and 30 deletions
|
@ -73,27 +73,28 @@
|
||||||
"1qjivkisn7dxk8irrb0rglmmdpbnai6n7vindf18ln0j24cc1x56"))))
|
"1qjivkisn7dxk8irrb0rglmmdpbnai6n7vindf18ln0j24cc1x56"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules (,@%gnu-build-system-modules
|
(list #:modules
|
||||||
|
`(,@%gnu-build-system-modules
|
||||||
(ice-9 textual-ports))
|
(ice-9 textual-ports))
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:configure-flags '("--disable-native") ;don't generate code for the build CPU
|
#:configure-flags
|
||||||
|
#~(list "--disable-native") ;don't generate code for the build CPU
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key (configure-flags ''()) outputs #:allow-other-keys)
|
(lambda* (#:key (configure-flags ''()) #:allow-other-keys)
|
||||||
;; The configure script doesn't understand some of the
|
;; The configure script doesn't understand some of the
|
||||||
;; GNU options, so we can't use the stock phase.
|
;; GNU options, so we can't use the stock phase.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
|
||||||
(apply invoke "./configure"
|
(apply invoke "./configure"
|
||||||
(string-append "--prefix=" out)
|
(string-append "--prefix=" #$output)
|
||||||
configure-flags))))
|
configure-flags)))
|
||||||
;; The main `fio` executable is fairly small and self contained.
|
;; The main `fio` executable is fairly small and self contained.
|
||||||
;; Moving the auxiliary scripts to a separate output saves ~100 MiB
|
;; Moving the auxiliary scripts to a separate output saves ~100 MiB
|
||||||
;; on the closure.
|
;; on the closure.
|
||||||
(add-after 'install 'move-outputs
|
(add-after 'install 'move-outputs
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let ((oldbin (string-append (assoc-ref outputs "out") "/bin"))
|
(let ((oldbin (string-append #$output "/bin"))
|
||||||
(newbin (string-append (assoc-ref outputs "utils") "/bin"))
|
(newbin (string-append #$output:utils "/bin"))
|
||||||
(script? (lambda* (file #:rest _)
|
(script? (lambda* (file #:rest _)
|
||||||
(call-with-input-file file
|
(call-with-input-file file
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue