From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Packaging "single file" Date: Mon, 4 Nov 2019 16:04:24 +0100 Message-ID: <20191104150424.7umrtlev4aymzraa@rafflesia> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38952) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRdu9-0005tZ-5e for guix-devel@gnu.org; Mon, 04 Nov 2019 10:04:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRdu7-0008Pl-Ub for guix-devel@gnu.org; Mon, 04 Nov 2019 10:04:29 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46651) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iRdu7-0008PZ-OX for guix-devel@gnu.org; Mon, 04 Nov 2019 10:04:27 -0500 Received: from localhost (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id E41972000E for ; Mon, 4 Nov 2019 15:04:24 +0000 (UTC) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix Hi Guix! I intended to ask this question later, but now that ungoogled-chromium has been superseded by icecat, I find myself stuck! Is it possible to package a single file? The "file" being a bash script or a binary. Is there a package definition I can look into for an example? I would do this for: - A simple script, for instance `rofi-pass` (https://github.com/carnager/rofi-pass). It is "just" a bash script but has some dependencies that need to be installed. I could also clone the git repo and move the file I guess… - A pre-build binary, for instance for `fd` (https://github.com/sharkdp/fd) or `geckodriver` (https://firefox-source-docs.mozilla.org/testing/geckodriver). * I haven't had time (yet) to package `fd` properly, but a binary is available for download, so it's tempting to use it. But for a reason I don't understand, it doesn't work on Guix System! :-( * I use `geckodriver` with Selenium [1] to run user interface tests. I used to work with the Firefox driver, but it's not packaged in Guix, so I was relying on chromium/chrome-driver for my tests. But I can no longer count on this! I haven't tried yet, but compiling this from source seems to require "a bit" of work. Up to now, I've always downloaded the binary [2]. But, I guess for the same reason as for `fd`, the binary does not work on Guix System. [1]: https://docs.seleniumhq.org [2]: https://github.com/mozilla/geckodriver/releases It might be a complete misunderstanging on my part, but isn't one of the phases of the packaging in charge of "fixing" the binaries to work on Guix system? Hope my question makes sense and someone can point me in the right direction! -- Tanguy