From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:50077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gs9or-0000Wg-22 for guix-patches@gnu.org; Fri, 08 Feb 2019 12:20:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gs9oq-0008Oz-A4 for guix-patches@gnu.org; Fri, 08 Feb 2019 12:20:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40819) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gs9oq-0008On-65 for guix-patches@gnu.org; Fri, 08 Feb 2019 12:20:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gs9op-0003Hm-Ue for guix-patches@gnu.org; Fri, 08 Feb 2019 12:20:03 -0500 Subject: [bug#34217] [PATCH 11/11] gnu: Add ruby-cucumber and ruby-aruba. Resent-Message-ID: References: <87zhrmgy0x.fsf@cbaines.net> <20190127114956.26570-1-mail@cbaines.net> <20190127114956.26570-11-mail@cbaines.net> <20190203231817.0a722915@alma-ubu> <87r2cowj0c.fsf@elephly.net> From: Christopher Baines In-reply-to: <87r2cowj0c.fsf@elephly.net> Date: Fri, 08 Feb 2019 17:19:45 +0000 Message-ID: <87ftsy5ham.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Ricardo Wurmus Cc: 34217@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus writes: > Bj=C3=B6rn H=C3=B6fling writes: > >>> + (propagated-inputs >>> + (map (lambda (input) >>> + (if (string=3D? (car input) "ruby-cucumber") >>> + `("ruby-cucumber" ,ruby-cucumber-without-tests) >>> + input)) >>> + (package-propagated-inputs ruby-aruba))) >> >> This is really nit-picking, I haven't tried it out myself and I haven't >> used it much myself, but I think this could be written more elegant with >> match-lambda [syntax errors might be included]: >> >> (map (match-lambda >> (("ruby-cucumber" . pkg) >> `("ruby-cucumber" ,ruby-cucumber-without-tests)) >> (input input) >> ...) > > Or like this > > `(("ruby-cucumber" ,ruby-cucumber-without-tests) > ,@(alist-delete "ruby-cucumber" > (package-propagated-inputs ruby-aruba))) Yep, that looks good to me, thanks :) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlxdujFfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XcLSw/+PnL3vG38MeVx6Ibb7weOBxaRtV5rScDJ8FR1Coz4I/vmPJSVUNg2ZHDu ZwyVSV8y+c7OqCcYeeD+NL9Z3a1nFC+Ex9uA2iGEn6CAB1kshI4uPrefBjiqzOP4 ehMD1pYIci5W9ayd6hgTbKFsZUXDO6kGStY9cYezQdjy3YIvRi5IQRLIO0Fn/GIX CLKfQJE4afJkMEmjYiCbXKZS7h3ZRpoErmhmtVjfgLXXFoHjMd6MLsdb0dvseUys Zxy1gasZM5AynEksEhU0mU30KWWByewmQaOlF/olaMtGV3mZuZP2w1P7eBF9Geqc qU245OJzmdhw7DJeOUZp7tXw2RyjP7dcvmNCo/S4vHwlg6+NiIKcosVXbkLXU9su bUBmMO8TFJh4GTtJtObKohpNhzdQRfJUIBjQdWAnnDNCmHcAjKm1Yg0x/89+KX0t lP6P9IwyKK1iG2b8Jh0iadC9jiZc+YFfpxDb/VHyahSVzkxIbtLZDx4JWJ7kdadG p0IFVo45cg7bGB+MRpwVd0AGgtO+LhVsyoTHFZkZjdRa/DP1zwlVVLSAJ8t49Q51 orIQjGJEyYJX/p315qaPDqHheNeiwlGLw7CJBl1/uuKOyJqcqf+chVHTuBzddtRk DaI/V7Q2PspxpZfzZiNAgXxFYHkXl+pYFo4reJF+X/7CT9QUTK8= =bH4X -----END PGP SIGNATURE----- --=-=-=--