mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: talloc/static: Use INVOKE.
* gnu/packages/samba.scm (talloc/static)[arguments]: Use INVOKE in the build phase.
This commit is contained in:
parent
ed5900890e
commit
d83c52c6bb
1 changed files with 3 additions and 9 deletions
|
@ -287,15 +287,9 @@ (define-public talloc/static
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(letrec-syntax ((shell (syntax-rules ()
|
(invoke "gcc" "-c" "-Ibin/default" "-I" "lib/replace"
|
||||||
((_ (command ...) rest ...)
|
"-I." "-Wall" "-g" "talloc.c")
|
||||||
(and (zero? (system* command ...))
|
(invoke "ar" "rc" "libtalloc.a" "talloc.o")))
|
||||||
(shell rest ...)))
|
|
||||||
((_)
|
|
||||||
#t))))
|
|
||||||
(shell ("gcc" "-c" "-Ibin/default" "-I" "lib/replace"
|
|
||||||
"-I." "-Wall" "-g" "talloc.c")
|
|
||||||
("ar" "rc" "libtalloc.a" "talloc.o")))))
|
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Reference in a new issue