mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: umockdev: Reference 'env' and 'sh' by absolute path.
* gnu/packages/check.scm (umockdev)[inputs]: Add 'bash-minimal' and 'coreutils-minimal'. (umockdev)[arguments]<#:phases>{absolute-filenames}: New phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
33f2e862c7
commit
569d7ba38c
1 changed files with 12 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
|||
;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
|
||||
;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
|
||||
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -2890,7 +2891,14 @@ (define-public umockdev
|
|||
(add-after 'unpack 'fix-test
|
||||
(lambda _
|
||||
(substitute* "tests/test-umockdev.c"
|
||||
(("/run") "/tmp")))))))
|
||||
(("/run") "/tmp"))))
|
||||
(add-after 'install 'absolute-filenames
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; 'patch-shebangs' will take care of the shebang.
|
||||
(substitute* (string-append #$output "/bin/umockdev-wrapper")
|
||||
(("env") (search-input-file inputs "bin/env"))
|
||||
(("libumockdev")
|
||||
(string-append #$output "/lib/libumockdev"))))))))
|
||||
(native-inputs
|
||||
(list vala
|
||||
gobject-introspection
|
||||
|
@ -2900,7 +2908,9 @@ (define-public umockdev
|
|||
python
|
||||
which))
|
||||
(inputs
|
||||
(list glib eudev libgudev))
|
||||
(list bash-minimal ;for umockdev-wrapper
|
||||
coreutils-minimal ;for bin/env
|
||||
glib eudev libgudev))
|
||||
(home-page "https://github.com/martinpitt/umockdev/")
|
||||
(synopsis "Mock hardware devices for creating unit tests")
|
||||
(description "umockdev mocks hardware devices for creating integration
|
||||
|
|
Loading…
Reference in a new issue