gnu: quassel: Fix calling inxi script.
* gnu/packages/irc.scm (quassel)[source]: Only remove bundled inxi script. [arguments]: Adjust 'patch-inxi-reference phase to symlink packaged inxi to where quassel expects it to be.
This commit is contained in:
parent
22b3a95f6e
commit
0e1428ac5d
1 changed files with 3 additions and 6 deletions
|
@ -80,12 +80,10 @@
|
||||||
"0mg8jydc70vlylppzich26q4s40kr78r3ysfyjwisfvlg2byxvs8"))
|
"0mg8jydc70vlylppzich26q4s40kr78r3ysfyjwisfvlg2byxvs8"))
|
||||||
(patches (search-patches "quassel-qt-514-compat.patch"))
|
(patches (search-patches "quassel-qt-514-compat.patch"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
;; We don't want to install the bundled scripts.
|
;; We don't want to install the bundled inxi script.
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
(delete-file-recursively "data/scripts")
|
(delete-file "data/scripts/inxi")
|
||||||
(substitute* "data/CMakeLists.txt"
|
|
||||||
(("NOT WIN32") "WIN32"))
|
|
||||||
#t))))
|
#t))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -103,8 +101,7 @@
|
||||||
(add-after 'unpack 'patch-inxi-reference
|
(add-after 'unpack 'patch-inxi-reference
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((inxi (string-append (assoc-ref inputs "inxi") "/bin/inxi")))
|
(let ((inxi (string-append (assoc-ref inputs "inxi") "/bin/inxi")))
|
||||||
(substitute* "src/common/aliasmanager.cpp"
|
(symlink inxi "data/scripts/inxi")
|
||||||
((" inxi ") (string-append " " inxi " ")))
|
|
||||||
#t))))
|
#t))))
|
||||||
#:tests? #f)) ; no test target
|
#:tests? #f)) ; no test target
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Reference in a new issue