mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: Use 'search-input-file' some more.
This patch replaces occurrences of: (string-append (assoc-ref %build-inputs "…") "/…") by: (search-input-file %build-inputs "/…") * doc/guix.texi (Miscellaneous Services): Use 'search-input-file' in R Shiny example. * gnu/packages/admin.scm (screenfetch): Use 'search-input-file'. (ufetch): Likewise. (hosts): Likewise. * gnu/packages/backup.scm (dirvish): Likewise. * gnu/packages/code.scm (colormake): Likewise. * gnu/packages/compression.scm (makeself-safeextract): Likewise. * gnu/packages/debug.scm (scanmem): Likewise. * gnu/packages/education.scm (snap): Likewise. (omnitux): Likewise. * gnu/packages/emacs-xyz.scm (epipe): Likewise. * gnu/packages/games.scm (openttd-opensfx): Likewise. (openttd-openmsx): Likewise. (openrct2-title-sequences): Likewise. (openrct2-objects): Likewise. (mrrescue): Likewise. (0ad-data): Likewise. (xonotic-data): Likewise. (drascula): Likewise. (make-lure-package): Likewise. (make-queen-package): Likewise. (sky): Likewise. * gnu/packages/gnome.scm (network-manager): Likewise. * gnu/packages/gnuzilla.scm (icedove): Likewise. * gnu/packages/guile-xyz.scm (guile-shapefile): Likewise. * gnu/packages/hurd.scm (netdde): Likewise. * gnu/packages/javascript.scm (js-context-menu): Likewise. (js-commander): Likewise. (js-xmldom-sre): Likewise. * gnu/packages/kde-frameworks.scm (krunner): Likewise. * gnu/packages/kodi.scm (kodi-cli): Likewise. * gnu/packages/libreoffice.scm (hunspell-dict-pl): Likewise. * gnu/packages/linux.scm (e2fsck/static): Likewise. * gnu/packages/markup.scm (markdown): Likewise. * gnu/packages/maths.scm (hdf-java): Likewise. * gnu/packages/multiprecision.scm (libtomcrypt): Likewise. * gnu/packages/networking.scm (batctl): Likewise. * gnu/packages/python-xyz.scm (python-pymediainfo): Likewise. * gnu/packages/shells.scm (fish-foreign-env): Likewise. * gnu/packages/tex.scm (texlive-fonts-iwona): Likewise. * gnu/packages/upnp.scm (miniupnpc): Likewise. * gnu/packages/version-control.scm (git-annex-remote-rclone): Likewise. * gnu/packages/virtualization.scm (qemu): Likewise. * gnu/packages/web.scm (icedtea-web): Likewise. * gnu/packages/wm.scm (stumpish): Likewise.
This commit is contained in:
parent
e5f21c7e38
commit
2dffe4767c
30 changed files with 87 additions and 112 deletions
|
@ -33078,8 +33078,7 @@ The common way to create this file is as follows:
|
|||
(let* ((out (assoc-ref %outputs "out"))
|
||||
(targetdir (string-append out "/share/" ,name))
|
||||
(app (string-append out "/bin/" ,name))
|
||||
(Rbin (string-append (assoc-ref %build-inputs "r-min")
|
||||
"/bin/Rscript")))
|
||||
(Rbin (search-input-file %build-inputs "/bin/Rscript")))
|
||||
;; @dots{}
|
||||
(mkdir-p (string-append out "/bin"))
|
||||
(call-with-output-file app
|
||||
|
|
|
@ -3639,8 +3639,7 @@ (define-public screenfetch
|
|||
(string-append out "/share/doc/" ,name "-" ,version))
|
||||
(substitute* (string-append out "/bin/screenfetch")
|
||||
(("/usr/bin/env bash")
|
||||
(string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash")))
|
||||
(search-input-file %build-inputs "/bin/bash")))
|
||||
(wrap-program
|
||||
(string-append out "/bin/screenfetch")
|
||||
`("PATH" ":" prefix
|
||||
|
@ -3650,8 +3649,9 @@ (define-public screenfetch
|
|||
(assoc-ref %build-inputs "xprop") "/bin"))))
|
||||
(substitute* (string-append out "/bin/screenfetch")
|
||||
(("#!#f")
|
||||
(string-append "#!" (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash")))))))
|
||||
(string-append "#!"
|
||||
(search-input-file %build-inputs
|
||||
"/bin/bash"))))))))
|
||||
(inputs
|
||||
`(("bash" ,bash)
|
||||
("bc" ,bc)
|
||||
|
@ -3693,7 +3693,7 @@ (define-public ufetch
|
|||
(output (assoc-ref %outputs "out"))
|
||||
(bindir (string-append output "/bin"))
|
||||
(docdir (string-append output "/share/doc/ufetch-" ,version))
|
||||
(tput (string-append (assoc-ref %build-inputs "tput") "/bin/tput")))
|
||||
(tput (search-input-file %build-inputs "/bin/tput")))
|
||||
(install-file (string-append source "/LICENSE") docdir)
|
||||
(setenv "PATH" (string-append (assoc-ref %build-inputs "bash") "/bin"))
|
||||
(mkdir-p bindir)
|
||||
|
@ -4491,7 +4491,7 @@ (define-public hosts
|
|||
"\nPATH=" (getenv "PATH"))))
|
||||
;; check phase
|
||||
(setenv "TERM" "linux") ;set to tty for test
|
||||
(invoke (string-append (assoc-ref %build-inputs "bats") "/bin/bats")
|
||||
(invoke (search-input-file %build-inputs "/bin/bats")
|
||||
"test")
|
||||
;; install phase
|
||||
(install-file "hosts" (string-append %output "/bin"))
|
||||
|
|
|
@ -840,8 +840,7 @@ (define-public dirvish
|
|||
;; You probably want a service with file(s) to point to.
|
||||
(confdir "/etc/dirvish")
|
||||
|
||||
(perl (string-append (assoc-ref %build-inputs "perl")
|
||||
"/bin/perl"))
|
||||
(perl (search-input-file inputs "/bin/perl"))
|
||||
(loadconfig.pl (call-with-input-file "loadconfig.pl"
|
||||
read-string)))
|
||||
|
||||
|
|
|
@ -702,7 +702,7 @@ (define-public colormake
|
|||
(substitute* "colormake"
|
||||
(("colormake\\.pl") (string-append bin "/colormake.pl"))
|
||||
(("/bin/bash")
|
||||
(string-append (assoc-ref %build-inputs "bash") "/bin/sh")))
|
||||
(search-input-file %build-inputs "/bin/sh")))
|
||||
(install-file "colormake.1" (string-append doc "/man/man1"))
|
||||
(install-files '("AUTHORS" "BUGS" "ChangeLog" "README") doc)
|
||||
(install-files '("colormake" "colormake-short" "clmake"
|
||||
|
|
|
@ -2428,8 +2428,8 @@ (define-public makeself-safeextract
|
|||
(bin (string-append (assoc-ref %outputs "out") "/bin"))
|
||||
(target (string-append bin "/" name))
|
||||
(python (string-append (assoc-ref %build-inputs "python") "/bin"))
|
||||
(7z (string-append (assoc-ref %build-inputs "p7zip") "/bin/7z"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
|
||||
(7z (search-input-file %build-inputs "/bin/7z"))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(setenv "PATH" (string-append (getenv "PATH") ":" python))
|
||||
(mkdir-p bin)
|
||||
(copy-file source target)
|
||||
|
|
|
@ -561,9 +561,7 @@ (define-public scanmem
|
|||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(substitute* "gui/GameConqueror.py"
|
||||
(("/usr/bin/env python")
|
||||
(string-append (assoc-ref %build-inputs
|
||||
"python-wrapper") "/bin/python")))
|
||||
#t))
|
||||
(search-input-file inputs "/bin/python")))))
|
||||
(add-after 'install 'wrap-gameconqueror
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out"))
|
||||
|
|
|
@ -337,17 +337,16 @@ (define-public snap
|
|||
;; Replace the sole minified file in the package.
|
||||
(with-directory-excursion (string-append share "/src")
|
||||
(delete-file "FileSaver.min.js")
|
||||
(symlink (string-append (assoc-ref %build-inputs "js-filesaver")
|
||||
"/share/javascript/FileSaver.min.js")
|
||||
(symlink (search-input-file %build-inputs
|
||||
"/share/javascript/FileSaver.min.js")
|
||||
"FileSaver.min.js"))
|
||||
;; Create a "snap" executable.
|
||||
(let* ((bin (string-append out "/bin"))
|
||||
(script (string-append bin "/snap"))
|
||||
(snap (string-append share "/snap.html"))
|
||||
(bash (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/sh"))
|
||||
(xdg-open (string-append (assoc-ref %build-inputs "xdg-utils")
|
||||
"/bin/xdg-open")))
|
||||
(bash (search-input-file %build-inputs "/bin/sh"))
|
||||
(xdg-open (search-input-file %build-inputs
|
||||
"/bin/xdg-open")))
|
||||
(mkdir-p bin)
|
||||
(call-with-output-file script
|
||||
(lambda (port)
|
||||
|
@ -589,10 +588,9 @@ (define-public omnitux
|
|||
;; Install the launcher.
|
||||
(let* ((bin (string-append out "/bin"))
|
||||
(script (string-append bin "/omnitux"))
|
||||
(bash (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash"))
|
||||
(python (string-append (assoc-ref %build-inputs "python")
|
||||
"/bin/python2")))
|
||||
(bash (search-input-file %build-inputs "/bin/bash"))
|
||||
(python (search-input-file %build-inputs
|
||||
"/bin/python2")))
|
||||
(mkdir-p bin)
|
||||
(with-output-to-file script
|
||||
(lambda ()
|
||||
|
|
|
@ -16394,7 +16394,7 @@ (define-public epipe
|
|||
;; Patch shebangs.
|
||||
(substitute* "epipe"
|
||||
(("/usr/bin/env bash")
|
||||
(string-append (assoc-ref %build-inputs "bash") "/bin/bash")))
|
||||
(search-input-file %build-inputs "/bin/bash")))
|
||||
(patch-shebang "epipe.pl"
|
||||
(list (string-append (assoc-ref %build-inputs "perl")
|
||||
"/bin")))
|
||||
|
|
|
@ -4390,8 +4390,8 @@ (define openttd-opensfx
|
|||
(arguments
|
||||
`(#:make-flags
|
||||
(list (string-append "DIR_NAME=opensfx")
|
||||
(string-append "TAR=" (assoc-ref %build-inputs "tar")
|
||||
"/bin/tar"))
|
||||
(string-append "TAR="
|
||||
(search-input-file %build-inputs "/bin/tar")))
|
||||
;; The check phase only verifies md5sums, see openttd-opengfx.
|
||||
#:tests? #f
|
||||
#:phases
|
||||
|
@ -4440,8 +4440,8 @@ (define openttd-openmsx
|
|||
(arguments
|
||||
`(#:make-flags
|
||||
(list (string-append "DIR_NAME=openmsx")
|
||||
(string-append "TAR=" (assoc-ref %build-inputs "tar")
|
||||
"/bin/tar"))
|
||||
(string-append "TAR="
|
||||
(search-input-file %build-inputs "/bin/tar")))
|
||||
;; The check phase only verifies md5sums, see openttd-opengfx.
|
||||
#:tests? #f
|
||||
#:phases
|
||||
|
@ -4513,7 +4513,7 @@ (define openrct2-title-sequences
|
|||
(openrct2-title-sequences (string-append out
|
||||
"/share/openrct2/title-sequences"))
|
||||
(source (assoc-ref %build-inputs "source"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(copy-file source (string-append ,name "-" ,version ".zip"))
|
||||
(invoke unzip (string-append ,name "-" ,version ".zip"))
|
||||
(delete-file (string-append ,name "-" ,version ".zip"))
|
||||
|
@ -4553,7 +4553,7 @@ (define openrct2-objects
|
|||
(openrct2-objects (string-append out
|
||||
"/share/openrct2/objects"))
|
||||
(source (assoc-ref %build-inputs "source"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(copy-file source (string-append ,name "-" ,version ".zip"))
|
||||
(invoke unzip (string-append ,name "-" ,version ".zip"))
|
||||
(delete-file (string-append ,name "-" ,version ".zip"))
|
||||
|
@ -5714,14 +5714,10 @@ (define-public mrrescue
|
|||
(script (string-append out "/bin/" ,name))
|
||||
(data (string-append out "/share/" ,name))
|
||||
(source (assoc-ref %build-inputs "source"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip"))
|
||||
(patch (string-append (assoc-ref %build-inputs "patch")
|
||||
"/bin/patch"))
|
||||
(bash (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash"))
|
||||
(love (string-append (assoc-ref %build-inputs "love")
|
||||
"/bin/love")))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip"))
|
||||
(patch (search-input-file %build-inputs "/bin/patch"))
|
||||
(bash (search-input-file %build-inputs "/bin/bash"))
|
||||
(love (search-input-file %build-inputs "/bin/love")))
|
||||
|
||||
(mkdir-p (dirname script))
|
||||
(with-output-to-file script
|
||||
|
@ -6683,7 +6679,7 @@ (define-public 0ad-data
|
|||
(use-modules (guix build utils))
|
||||
(let ((out (assoc-ref %outputs "out"))
|
||||
(source (assoc-ref %build-inputs "source"))
|
||||
(tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
|
||||
(tar (search-input-file %build-inputs "/bin/tar"))
|
||||
(xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
|
||||
(setenv "PATH" xz-path)
|
||||
(mkdir out)
|
||||
|
@ -7758,7 +7754,7 @@ (define xonotic-data
|
|||
(let* ((out (assoc-ref %outputs "out"))
|
||||
(xonotic (string-append out "/share/xonotic"))
|
||||
(source (assoc-ref %build-inputs "source"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(copy-file source (string-append ,name "-" ,version ".zip"))
|
||||
(invoke unzip (string-append ,name "-" ,version ".zip"))
|
||||
(mkdir-p out)
|
||||
|
@ -9547,8 +9543,7 @@ (define-public drascula
|
|||
(share (string-append out "/share/drascula"))
|
||||
(scummvm (assoc-ref %build-inputs "scummvm")))
|
||||
;; Install data.
|
||||
(let ((unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip"))
|
||||
(let ((unzip (search-input-file %build-inputs "/bin/unzip"))
|
||||
(doc (string-append out "/share/doc/" ,name "-" ,version)))
|
||||
(for-each
|
||||
(lambda (input)
|
||||
|
@ -9574,8 +9569,7 @@ (define-public drascula
|
|||
;; Create standalone executable.
|
||||
(let* ((bin (string-append out "/bin"))
|
||||
(executable (string-append bin "/drascula"))
|
||||
(bash (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash")))
|
||||
(bash (search-input-file %build-inputs "/bin/bash")))
|
||||
(mkdir-p bin)
|
||||
(with-output-to-file executable
|
||||
(lambda ()
|
||||
|
@ -9665,8 +9659,7 @@ (define (make-lure-package name language hash)
|
|||
(bin (string-append out "/bin"))
|
||||
(executable (string-append bin "/" ,name))
|
||||
(scummvm (assoc-ref %build-inputs "scummvm")))
|
||||
(let ((unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip")))
|
||||
(let ((unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(invoke unzip "-j" (assoc-ref %build-inputs "source")))
|
||||
(let ((doc (string-append share "/doc/" ,name "-" ,version)))
|
||||
(for-each (lambda (f) (install-file f doc))
|
||||
|
@ -9772,8 +9765,7 @@ (define (make-queen-package name file-prefix release language hash)
|
|||
(bin (string-append out "/bin"))
|
||||
(executable (string-append bin "/" ,name))
|
||||
(scummvm (assoc-ref %build-inputs "scummvm")))
|
||||
(let ((unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip")))
|
||||
(let ((unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(invoke unzip "-j" (assoc-ref %build-inputs "source")))
|
||||
(let ((doc (string-append share "/doc/" ,name "-" ,version)))
|
||||
(install-file "readme.txt" doc))
|
||||
|
@ -9871,8 +9863,7 @@ (define-public sky
|
|||
(bin (string-append out "/bin"))
|
||||
(executable (string-append bin "/" ,name))
|
||||
(scummvm (assoc-ref %build-inputs "scummvm")))
|
||||
(let ((unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip")))
|
||||
(let ((unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(invoke unzip "-j" (assoc-ref %build-inputs "source")))
|
||||
(let ((doc (string-append share "/doc/bass-" ,version)))
|
||||
(install-file "readme.txt" doc))
|
||||
|
|
|
@ -7713,8 +7713,7 @@ (define-public network-manager
|
|||
(arguments
|
||||
`(#:configure-flags
|
||||
(let ((out (assoc-ref %outputs "out"))
|
||||
(dhclient (string-append (assoc-ref %build-inputs "isc-dhcp")
|
||||
"/sbin/dhclient")))
|
||||
(dhclient (search-input-file %build-inputs "/sbin/dhclient")))
|
||||
(list
|
||||
;; Otherwise, the RUNPATH will lack the final 'NetworkManager' path
|
||||
;; component.
|
||||
|
|
|
@ -1457,9 +1457,7 @@ (define-public icedove
|
|||
(mozconfig (string-append (getcwd) "/.mozconfig")))
|
||||
(setenv "SHELL" bash)
|
||||
(setenv "AUTOCONF"
|
||||
(string-append (assoc-ref %build-inputs
|
||||
"autoconf")
|
||||
"/bin/autoconf"))
|
||||
(search-input-file %build-inputs "/bin/autoconf"))
|
||||
(setenv "CONFIG_SHELL" bash)
|
||||
(setenv "QA_CONFIGURE_OPTIONS" ".*")
|
||||
(setenv "MOZBUILD_STATE_PATH"
|
||||
|
|
|
@ -4623,12 +4623,12 @@ (define-public guile-shapefile
|
|||
(delete-file-recursively "docs")
|
||||
#t))
|
||||
(add-after 'install 'install-info-documentation
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((share (string-append (assoc-ref outputs "out") "/share"))
|
||||
(doc (string-append share "/doc/" ,name "-" ,version))
|
||||
(info (string-append share "/info/"))
|
||||
(makeinfo (string-append (assoc-ref %build-inputs "texinfo")
|
||||
"/bin/makeinfo")))
|
||||
(makeinfo (search-input-file inputs
|
||||
"/bin/makeinfo")))
|
||||
(invoke makeinfo "guile-shapefile.texi" "-o" info)
|
||||
#t))))))
|
||||
(inputs
|
||||
|
|
|
@ -581,8 +581,8 @@ (define-public netdde
|
|||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:make-flags
|
||||
(list (string-append "SHELL=" (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash")
|
||||
(list (string-append "SHELL="
|
||||
(search-input-file %build-inputs "/bin/bash"))
|
||||
"PKGDIR=libdde_linux26"
|
||||
,@(if (%current-target-system)
|
||||
(list "CC=i586-pc-gnu-gcc"
|
||||
|
|
|
@ -80,8 +80,7 @@ (define-public js-context-menu
|
|||
(use-modules (guix build utils))
|
||||
(chdir (assoc-ref %build-inputs "source"))
|
||||
(let ((target (string-append %output "/share/javascript/context-menu")))
|
||||
(apply invoke (string-append (assoc-ref %build-inputs "esbuild")
|
||||
"/bin/esbuild")
|
||||
(apply invoke (search-input-file %build-inputs "/bin/esbuild")
|
||||
"--bundle"
|
||||
"--tsconfig=tsconfig.json"
|
||||
(string-append "--outdir=" target)
|
||||
|
@ -209,8 +208,7 @@ (define-public js-commander
|
|||
(begin
|
||||
(use-modules (guix build utils))
|
||||
(chdir (assoc-ref %build-inputs "source"))
|
||||
(let ((esbuild (string-append (assoc-ref %build-inputs "esbuild")
|
||||
"/bin/esbuild"))
|
||||
(let ((esbuild (search-input-file %build-inputs "/bin/esbuild"))
|
||||
(target (string-append %output "/share/javascript/commander")))
|
||||
(invoke esbuild
|
||||
"--bundle"
|
||||
|
@ -251,8 +249,7 @@ (define-public js-xmldom-sre
|
|||
(begin
|
||||
(use-modules (guix build utils))
|
||||
(chdir (assoc-ref %build-inputs "source"))
|
||||
(let ((esbuild (string-append (assoc-ref %build-inputs "esbuild")
|
||||
"/bin/esbuild"))
|
||||
(let ((esbuild (search-input-file %build-inputs "/bin/esbuild"))
|
||||
(target (string-append %output "/share/javascript/xmldom-sre")))
|
||||
(invoke esbuild
|
||||
"--bundle"
|
||||
|
|
|
@ -3070,8 +3070,8 @@ (define-public krunner
|
|||
(substitute* "autotests/runnercontexttest.cpp"
|
||||
(("/home\"") "/tmp\"") ;; single path-part
|
||||
(("//usr/bin\"") (string-append (getcwd) "\"")) ;; multiple path-parts
|
||||
(("/bin/ls" path)
|
||||
(string-append (assoc-ref %build-inputs "coreutils") path)))))
|
||||
(("/bin/ls")
|
||||
(search-input-file %build-inputs "/bin/ls")))))
|
||||
(add-before 'check 'check-setup
|
||||
(lambda _
|
||||
(setenv "HOME" (getcwd))
|
||||
|
|
|
@ -508,8 +508,8 @@ (define-public kodi-cli
|
|||
(use-modules (guix build utils))
|
||||
(copy-recursively (assoc-ref %build-inputs "source") ".")
|
||||
(substitute* "kodi-cli"
|
||||
(("/bin/bash") (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash"))
|
||||
(("/bin/bash")
|
||||
(search-input-file %build-inputs "/bin/bash"))
|
||||
(("output=\\$\\((curl)" all curl)
|
||||
(string-append "output=$("
|
||||
(assoc-ref %build-inputs "curl")
|
||||
|
|
|
@ -972,8 +972,8 @@ (define-public hunspell-dict-pl
|
|||
(myspell (string-append out "/share/myspell"))
|
||||
(doc (string-append out "/share/doc/"
|
||||
,name))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip")))
|
||||
(unzip (search-input-file %build-inputs
|
||||
"/bin/unzip")))
|
||||
(invoke unzip "-j" "-o" (assoc-ref %build-inputs "source"))
|
||||
(invoke unzip "-j" "-o" "pl_PL.zip")
|
||||
(for-each (cut install-file <> hunspell)
|
||||
|
|
|
@ -2287,8 +2287,7 @@ (define-public e2fsck/static
|
|||
(ice-9 ftw)
|
||||
(srfi srfi-26))
|
||||
|
||||
(let ((e2fsck (string-append (assoc-ref %build-inputs "e2fsprogs")
|
||||
"/sbin/e2fsck"))
|
||||
(let ((e2fsck (search-input-file %build-inputs "/sbin/e2fsck"))
|
||||
(bin (string-append (assoc-ref %outputs "out") "/sbin")))
|
||||
(mkdir-p bin)
|
||||
(with-directory-excursion bin
|
||||
|
|
|
@ -90,8 +90,7 @@ (define-public markdown
|
|||
(let ((source (assoc-ref %build-inputs "source"))
|
||||
(out (assoc-ref %outputs "out"))
|
||||
(perlbd (string-append (assoc-ref %build-inputs "perl") "/bin"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip")))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(mkdir-p out)
|
||||
(with-directory-excursion out
|
||||
(invoke unzip source)
|
||||
|
|
|
@ -1381,9 +1381,9 @@ (define-public hdf-java
|
|||
#:make-flags
|
||||
(list (string-append "HDFLIB=" (assoc-ref %build-inputs "hdf4") "/lib")
|
||||
(string-append "HDF5LIB=" (assoc-ref %build-inputs "hdf5") "/lib")
|
||||
(string-append "ZLIB=" (assoc-ref %build-inputs "zlib") "/lib/libz.so")
|
||||
(string-append "ZLIB=" (search-input-file %build-inputs "/lib/libz.so"))
|
||||
(string-append "JPEGLIB="
|
||||
(assoc-ref %build-inputs "libjpeg") "/lib/libjpeg.so")
|
||||
(search-input-file %build-inputs "/lib/libjpeg.so"))
|
||||
"LLEXT=so")
|
||||
|
||||
#:phases
|
||||
|
|
|
@ -379,8 +379,9 @@ (define-public libtomcrypt
|
|||
#:make-flags
|
||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||
"CFLAGS += -DLTM_DESC -DUSE_LTM"
|
||||
(string-append "EXTRALIBS=" (assoc-ref %build-inputs "libtommath")
|
||||
"/lib/libtommath.so")
|
||||
(string-append "EXTRALIBS="
|
||||
(search-input-file %build-inputs
|
||||
"/lib/libtommath.so"))
|
||||
(string-append "CC=" ,(cc-for-target)))))
|
||||
(native-inputs
|
||||
`(("libtool" ,libtool)))
|
||||
|
|
|
@ -3701,8 +3701,9 @@ (define-public batctl
|
|||
#:phases (modify-phases %standard-phases (delete 'configure))
|
||||
#:make-flags
|
||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||
(string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
|
||||
"/bin/pkg-config")
|
||||
(string-append "PKG_CONFIG="
|
||||
(search-input-file %build-inputs
|
||||
"/bin/pkg-config"))
|
||||
,(string-append "CC=" (cc-for-target)))))
|
||||
(home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
|
||||
(synopsis "Management tool for the mesh networking BATMAN protocol")
|
||||
|
|
|
@ -936,9 +936,8 @@ (define-public python-pymediainfo
|
|||
(lambda _
|
||||
(substitute* "pymediainfo/__init__.py"
|
||||
(("libmediainfo.so.0")
|
||||
(string-append (assoc-ref %build-inputs "libmediainfo")
|
||||
"/lib/libmediainfo.so.0")))
|
||||
#t))
|
||||
(search-input-file %build-inputs
|
||||
"/lib/libmediainfo.so.0")))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
|
|
|
@ -297,12 +297,13 @@ (define-public fish-foreign-env
|
|||
,(string-append func-path "/fenv.apply.fish")
|
||||
,(string-append func-path "/fenv.main.fish"))
|
||||
(("bash")
|
||||
(string-append (assoc-ref %build-inputs "bash") "/bin/bash"))
|
||||
(search-input-file %build-inputs "/bin/bash"))
|
||||
(("sed")
|
||||
(string-append (assoc-ref %build-inputs "sed") "/bin/sed"))
|
||||
(search-input-file %build-inputs "/bin/sed"))
|
||||
((" tr ")
|
||||
(string-append " " (assoc-ref %build-inputs "coreutils")
|
||||
"/bin/tr ")))))))
|
||||
(string-append " "
|
||||
(search-input-file %build-inputs "/bin/tr")
|
||||
" ")))))))
|
||||
(inputs
|
||||
`(("bash" ,bash)
|
||||
("coreutils" ,coreutils)
|
||||
|
|
|
@ -6132,8 +6132,7 @@ (define-public texlive-fonts-iwona
|
|||
(use-modules (guix build utils))
|
||||
(let ((target (string-append (assoc-ref %outputs "out")
|
||||
"/share/texmf-dist/"))
|
||||
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
||||
"/bin/unzip")))
|
||||
(unzip (search-input-file %build-inputs "/bin/unzip")))
|
||||
(invoke unzip (assoc-ref %build-inputs "source"))
|
||||
(mkdir-p target)
|
||||
(copy-recursively "iwona" target)
|
||||
|
|
|
@ -63,7 +63,7 @@ (define-public miniupnpc
|
|||
;; the configure phase.
|
||||
`(#:make-flags
|
||||
(list
|
||||
(string-append "SH=" (assoc-ref %build-inputs "bash") "/bin/sh")
|
||||
(string-append "SH=" (search-input-file %build-inputs "/bin/sh"))
|
||||
(string-append "INSTALLPREFIX=" (assoc-ref %outputs "out"))
|
||||
,(string-append "CC=" (cc-for-target))
|
||||
|
||||
|
|
|
@ -2553,10 +2553,8 @@ (define-public git-annex-remote-rclone
|
|||
#:builder
|
||||
(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((bash (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash"))
|
||||
(rclone (string-append (assoc-ref %build-inputs "rclone")
|
||||
"/bin/rclone")))
|
||||
(let ((bash (search-input-file %build-inputs "/bin/bash"))
|
||||
(rclone (search-input-file %build-inputs "/bin/rclone")))
|
||||
(copy-file (string-append (assoc-ref %build-inputs "source")
|
||||
"/git-annex-remote-rclone")
|
||||
"git-annex-remote-rclone")
|
||||
|
|
|
@ -173,7 +173,7 @@ (define-public qemu
|
|||
`(#:tests? ,(or (%current-target-system)
|
||||
(not (string=? "i686-linux" (%current-system))))
|
||||
#:configure-flags
|
||||
(let ((gcc (string-append (assoc-ref %build-inputs "gcc") "/bin/gcc"))
|
||||
(let ((gcc (search-input-file %build-inputs "/bin/gcc"))
|
||||
(out (assoc-ref %outputs "out")))
|
||||
(list (string-append "--cc=" gcc)
|
||||
;; Some architectures insist on using HOST_CC.
|
||||
|
@ -1535,10 +1535,12 @@ (define-public criu
|
|||
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||
(string-append "LIBDIR=" (assoc-ref %outputs "out")
|
||||
"/lib")
|
||||
(string-append "ASCIIDOC=" (assoc-ref %build-inputs "asciidoc")
|
||||
"/bin/asciidoc")
|
||||
(string-append "XMLTO=" (assoc-ref %build-inputs "xmlto")
|
||||
"/bin/xmlto"))
|
||||
(string-append "ASCIIDOC="
|
||||
(search-input-file %build-inputs
|
||||
"/bin/asciidoc"))
|
||||
(string-append "XMLTO="
|
||||
(search-input-file %build-input
|
||||
"/bin/xmlto")))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
|
|
|
@ -1011,8 +1011,8 @@ (define-public icedtea-web
|
|||
(arguments
|
||||
`(#:configure-flags
|
||||
(list "--disable-plugin" ;NPAPI plugins are obsolete nowadays.
|
||||
(string-append "BIN_BASH=" (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash")
|
||||
(string-append "BIN_BASH="
|
||||
(search-input-file %build-inputs "/bin/bash"))
|
||||
(string-append "--with-jdk-home=" (assoc-ref %build-inputs "jdk")))))
|
||||
(outputs '("out" "doc"))
|
||||
(native-inputs
|
||||
|
|
|
@ -1932,12 +1932,9 @@ (define-public stumpish
|
|||
(copy-recursively (assoc-ref %build-inputs "source") ".")
|
||||
(chdir "util/stumpish")
|
||||
(substitute* "stumpish"
|
||||
(("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
|
||||
"/bin/rlwrap"))
|
||||
(("xprop") (string-append (assoc-ref %build-inputs "xprop")
|
||||
"/bin/xprop"))
|
||||
(("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
|
||||
"/bin/bash")))
|
||||
(("rlwrap") (search-input-file %build-inputs "/bin/rlwrap"))
|
||||
(("xprop") (search-input-file %build-inputs "/bin/xprop"))
|
||||
(("/bin/sh") (search-input-file %build-inputs "/bin/bash")))
|
||||
(install-file "stumpish" (string-append %output "/bin")))))
|
||||
(home-page "https://github.com/stumpwm/stumpwm-contrib")
|
||||
(synopsis "StumpWM interactive shell")
|
||||
|
|
Loading…
Reference in a new issue