From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5nI8-0005Zt-H9 for guix-patches@gnu.org; Tue, 10 Apr 2018 03:02:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5nI2-0004Vs-LR for guix-patches@gnu.org; Tue, 10 Apr 2018 03:02:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5nI2-0004Vi-He for guix-patches@gnu.org; Tue, 10 Apr 2018 03:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f5nI2-000638-8e for guix-patches@gnu.org; Tue, 10 Apr 2018 03:02:02 -0400 Subject: [bug#31114] [PATCH] gnu: Add fortune-mod. Resent-Message-ID: References: <20180409173217.7629-1-ambrevar@gmail.com> <878t9w9t57.fsf@gmail.com> <20180409205516.GA28883@jasmine.lan> From: Pierre Neidhardt In-reply-to: <20180409205516.GA28883@jasmine.lan> Date: Tue, 10 Apr 2018 12:30:51 +0530 Message-ID: <87fu43fsv0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; 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: Leo Famulari Cc: 31114@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Famulari writes: > For an example of how to do that, look at the native-inputs field of the > Git package definition. The Git manpages are downloaded separately for > that package. Thanks for the hint, it works like a charm! (add-after 'unpack 'fix-build-env (lambda* (#:key inputs #:allow-other-keys) (let* ((cmake-rules (assoc-ref inputs "cmake-rules"))) (copy-file cmake-rules "fortune-mod/cmake/Shlomif_Common.cma= ke") (chdir "fortune-mod")))) One nit: I want to install the file without specifying its destination name (re-use the source name). ~install-file~ can do that but here ~cmake-rules~ contains the checksum prefix. I remember seeing a procedure to trim the checksum prefix from file names somewhere... More generally: is there an API reference or is it just the source code? Development documentation seems a bit scarce... =2D-=20 Pierre Neidhardt You will gain money by a speculation or lottery. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrMYSMACgkQm9z0l6S7 zH9vSQgAiVbyd9ZeMVJThVjVLU4+q3Ma1nLNV18OQF62lc4wNgjMOo9Li+8nzqz8 Jp014+hNdElSpnbjg79l11yt5+ol6e2QccANpLYYjV91RKc/6f62vUEB8GozfOH5 98i+zd6Wi5LdP1ruLlkesaTDadGtnGZ2A2bQI+EU70IrxzWqbHeiNB86eZVJiHcg mE/HD9wpK+MY00LFzwye1MKtbVMNHLWVFgnbaLohAmVbnmiw1zeZtzFI1lMaA9Xj IrAwB62CqtFuilnlBbVPuPsZEYPQD78aW/t7J3EW938Vr4BkgSI5XMfQ9UrCDe2m G53V7ok2FPzJSbhJ3QiMB87rIOJv+g== =vA52 -----END PGP SIGNATURE----- --=-=-=--