mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: toybox: Don't install files to usr.
* gnu/packages/busybox.scm (toybox)[arguments]: Add custom phase to remove any files installed in $PREFIX/usr.
This commit is contained in:
parent
c9f0331152
commit
ee0b4733e1
1 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
||||
;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -133,7 +132,12 @@ (define-public toybox
|
|||
(let ((out (assoc-ref outputs "out")))
|
||||
(invoke "make"
|
||||
(string-append "PREFIX=" out)
|
||||
"install")))))
|
||||
"install"))))
|
||||
(add-after 'install 'remove-usr-directory
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(delete-file-recursively (string-append out "/usr"))
|
||||
#t))))
|
||||
#:test-target "tests"))
|
||||
(native-inputs `(("bc" ,bc)))
|
||||
(synopsis "Many common UNIX utilities in a single executable")
|
||||
|
|
Loading…
Reference in a new issue