3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: filters: Fix bogus use of DESTDIR.

* gnu/packages/toys.scm (filters)[arguments]: Set and respect the
standard prefix variable.
This commit is contained in:
Tobias Geerinckx-Rice 2020-10-16 16:52:18 +02:00
parent dae2ac513d
commit 5446720292
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -101,17 +101,17 @@ typing @command{sl} instead of @command{ls}.")
(arguments (arguments
`(#:make-flags `(#:make-flags
(list (string-append "CC=" ,(cc-for-target)) (list (string-append "CC=" ,(cc-for-target))
(string-append "DESTDIR=" %output)) (string-append "prefix=" (assoc-ref %outputs "out")))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(add-after 'unpack 'fix-install-directories (add-after 'unpack 'respect-prefix
(lambda _ (lambda _
(substitute* "Makefile" (substitute* "Makefile"
(("/usr/games") (("/usr/games")
"/bin/") "$(prefix)/bin/")
(("/usr/share/") (("/usr")
"/share/")) "$(prefix)"))
#t))) #t)))
#:tests? #f)) ; no test suite #:tests? #f)) ; no test suite
(native-inputs (native-inputs