From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWjKX-00022t-7M for guix-patches@gnu.org; Tue, 11 Dec 2018 09:48:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWjKM-0002tp-VD for guix-patches@gnu.org; Tue, 11 Dec 2018 09:48:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:38657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWjKM-0002tf-QD for guix-patches@gnu.org; Tue, 11 Dec 2018 09:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gWjKM-0004np-MI for guix-patches@gnu.org; Tue, 11 Dec 2018 09:48:02 -0500 Subject: [bug#33705] [PATCH] gnu: Add toybox. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWjJy-0001fx-3V for guix-patches@gnu.org; Tue, 11 Dec 2018 09:47:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWjJv-0002YR-4p for guix-patches@gnu.org; Tue, 11 Dec 2018 09:47:37 -0500 Received: from flashner.co.il ([178.62.234.194]:33896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWjJt-0002XK-7s for guix-patches@gnu.org; Tue, 11 Dec 2018 09:47:35 -0500 Date: Tue, 11 Dec 2018 16:47:30 +0200 From: Efraim Flashner Message-ID: <20181211144730.GE1323@macbook41> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JbKQpFqZXJ2T76Sg" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33705@debbugs.gnu.org --JbKQpFqZXJ2T76Sg Content-Type: multipart/mixed; boundary="JSkcQAAxhB1h8DcT" Content-Disposition: inline --JSkcQAAxhB1h8DcT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Toybox seemed most like busybox and I couldn't think of a better module to put it in. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --JSkcQAAxhB1h8DcT Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-toybox.patch" Content-Transfer-Encoding: quoted-printable =46rom 9efda54b61b56e68eff6eac93b7cbc89dbac61a5 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Tue, 11 Dec 2018 14:39:40 +0200 Subject: [PATCH 1/2] gnu: Add toybox. * gnu/packages/busybox.com (toybox): New variable. --- gnu/packages/busybox.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/busybox.scm b/gnu/packages/busybox.scm index 5f1613bb4..82ee5e048 100644 --- a/gnu/packages/busybox.scm +++ b/gnu/packages/busybox.scm @@ -2,6 +2,7 @@ ;;; Copyright =C2=A9 2014 John Darrington ;;; Copyright =C2=A9 2016, 2017, 2018 Efraim Flashner ;;; Copyright =C2=A9 2018 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2018 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,6 +26,7 @@ #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages admin) + #:use-module (gnu packages algebra) #:use-module (gnu packages compression) #:use-module (gnu packages perl)) =20 @@ -102,3 +104,41 @@ any small or embedded system.") (home-page "https://www.busybox.net") ;; Some files are gplv2+ (license gpl2))) + +(define-public toybox + (package + (name "toybox") + (version "0.7.8") + (source (origin + (method url-fetch) + (uri (string-append + "https://landley.net/toybox/downloads/toybox-" + version ".tar.gz")) + (sha256 + (base32 + "1mlqv5hsvy8ii6m698hq6rc316klwv44jlr034knwg6bk1lf2qj9")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'configure 'set-environmental-variables + (lambda _ + (setenv "CC" (which "gcc")) + (setenv "HOSTCC" (which "gcc")) + #t)) + (replace 'configure + (lambda _ (invoke "make" "defconfig"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" + (string-append "PREFIX=3D" out) + "install"))))) + #:test-target "tests")) + (native-inputs `(("bc" ,bc))) + (synopsis "Many common UNIX utilities in a single executable") + (description "ToyBox combines tiny versions of many common UNIX utilit= ies +into a single small executable. It provides a fairly complete environment= for +any small or embedded system.") + (home-page "http://landley.net/toybox/") + (license bsd-2))) --=20 2.19.2 --JSkcQAAxhB1h8DcT-- --JbKQpFqZXJ2T76Sg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlwPzgEACgkQQarn3Mo9 g1HSYA/9HpqDUOonAhlffQmTDiNrdLOKPgTN6wGu3bBk35bdIPhsXWJ7OW+RYp5v J7LLJHEX6zQov5cfvVCI+HuYDfgrWgHtGprL7M9qGspnZnh4mLeMZk/2pEjcozlT 95OX3ckdSukkeDZX+SzqqFrslt0y7OOt7GDvSAc0Zq/XgS50L892XStmDvKshDNT 6Gf9cEihL+bRhltEONz4/hVcYziJ+nYIb5zK/hizLvT4iPANnjZel1BzmPq9K0bG 1VvBqxO2K8nOqiISPCc8PrKP2o/B/LCDybHp6ZaCcfgybb9dz1PNZfzeaPWTgRit 84wrhVUkL7Xjq5JwpMlnEczuW7WgnVhZuWTdr2+S33bgWynSZNWwoc7VyujcK0cx EJ7/TjUJfoAaXqhQ0IknsvziMuUA6tueqTgKe3cU9pTxzhICQX/7MiTeTyj9HWOp ehf3RqoAMr0fhLYu8f2pKBYeWTcV5D5mTtqO7+HZVrFnWd2RJqPi35Wd91EPTh3L F2AgHCLirOv5r5f/hDTH4LNWIqqZA5zbaOuZluNfJBZ8liNylVEADNwpFNjEHnw/ H+CAQfAVBl719J0PtDGb+FjT2+I+NEuIA5Ul8+Z+krCpmWWrhcfDgX7lMJA5yDgb PcpYqoKbhgxkPsnNJO+eNxoyq1QA9D5oh1E3q90/L+wFgocrqI4= =Thgx -----END PGP SIGNATURE----- --JbKQpFqZXJ2T76Sg--