From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0OeqFemZG2QgLAEASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 01:14:33 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KGi1FOmZG2SpFAEAG6o9tA (envelope-from ) for ; Thu, 23 Mar 2023 01:14:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id D7D5734E91 for ; Thu, 23 Mar 2023 01:14:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pf8ap-0005gw-DG; Wed, 22 Mar 2023 20:14:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf8an-0005gk-4V for help-guix@gnu.org; Wed, 22 Mar 2023 20:14:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf8al-00022z-69 for help-guix@gnu.org; Wed, 22 Mar 2023 20:14:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7F8F52402A8 for ; Thu, 23 Mar 2023 01:14:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1679530443; bh=fUKkOoRFDP6qdlzWLOfxjGiMg8DI5KzodVQ3RA8ZD3o=; h=From:To:Subject:Date:From; b=PSMGywYJ6BmYq67ITNCFTY1I4oVFA/t0XxbCpaYSde6MeU8n6Gx1K0kInxHUa+rqf f7/3Vm3D+ZWLx5PtARO2tlq1Y0zUMuoIoJJNZzQcLiC7epvyah1HJFiy6OS10THJgZ D4urrvxbNVZFlTLtByg4P6ln34hYq6HzMLDgowez8XRYY2YcXDNBpunFT8WasrfHN2 rNNkMCRlluwmaqfQQCPtrrgNGbMZgYs6NlZWNpQsibfqhZ9hUe4RaTZb8AX8UTrSwh 7MsFdS5bmN6c2Ktq0+VfGfneqdZ92kr9WsGJus1cAXhPhi3VaGFm7DYPQbKoSe6NVv iL5CFKoUrtKMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Phm6L3yLmz6tm5 for ; Thu, 23 Mar 2023 01:14:02 +0100 (CET) From: Kyle Andrews To: help-guix\@gnu.org Subject: Need some help packaging parts of a scientific workflow Date: Wed, 22 Mar 2023 21:29:38 +0000 Message-ID: <874jqcs4s7.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=kyle@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679530473; a=rsa-sha256; cv=none; b=CY0nuVJ62Bq4KVfrxHIJhpvn2Oz4PcYdBC8HC65tG+jJJ1YsnAh+wU0u+xEloqOqsx1XvZ kY1nvI6mdF4gu3r9WmfIDZh/xVtWas0j9b/zAatQUqCkxCszysMjsJ6DSZaW6NoWWlz9eb 70FyXPjIr98P/GM+B+SfFEmUbPu2/9ev8/qOmStNX9Il3tDD2kX8c7l5hbeUa7JeH/nIFZ HXeqmyqX6E/a1ghvPJPHHSmXx9u+l2jcvdZxFjNBA5NsZZ4TIkKGVZ9FVwgWrKAUD4Zcm1 SEYLrIHamMTHHbdwYA3NG5VJspyVgSrTaXxPsrDc19XfxgXykLz1lzngvrzjPQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PSMGywYJ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx2.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679530473; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yBjoaOLgUaOPzy2M5uE2GmjJlFfZBdWgif6HR2ySJBA=; b=fPSfjpxSqzG6xSYcO7KAmFGO9pmso66MLEwsJsEXHSvrgk9bCy9LSdR4/IU6UJaw9goWWI 5e/wzEAtZo17d6h76whFqvPvzns7wlWYkgZqxxnRMsT++KQnsFOlPLZm4rrECgWdkhzi9L F+chBRp6JbwWzzSMyUAlc6YXck23j53TucPreifTQMHkI6DIdiGop7hN9JPjSxOESqyZuI 1UE6hpb3yMFSJBwzPEGgvt9uW/HjCkPN036KYOx3ABY4kwUnP4SwwB3/LuNVSn2itGvgiP lNWfRpLfP1EI1Hb3EoFLsA3uvpGrCIWjfs59KEWdUY09zBPZPgsNWFHIxY9fBA== Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PSMGywYJ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx2.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.27 X-Spam-Score: -5.27 X-Migadu-Queue-Id: D7D5734E91 X-TUID: lc8DZyU2V3jU Dear Guix, Part of my scientific workflow involves compiling a small Racket script for a command line program into its executable and placing that on PATH. I had bundled this script inside an R package which made sure it got compiled and everything was correctly configured at library load time. >From hanging around here for a bit, I have learned this practice is probably a bad thing for reproducibility. I should separate my support programs out from my R package rather than leaving them bundled in. >From reading the documentation a lot, I think the actual compilation step can be done using the "invoke" procedure like so: ``` (invoke "raco" "exe" "{package_location}/custom-shell-tool.rkt") ``` What I'm struggling with the most is understanding all the boilerplate code I need to place around that fundamental call. Below is a text-painting of the state of my misunderstanding: ``` (package (name "custom-shell-tool") (version "1") (source (local-file "package_location")) ; how to refer to local files? (build-system copy-build-system) (arguments (list #:phases #~(modify-phases %standard-phases (add-before 'install 'compile (lambda _ (invoke "raco" "exe" (string-append #$package-folder ; how to refer to the build itself? "custom-shell-tool.rkt")))))) #:install-plan #~'(("custom-shell-tool" "bin/"))) (home-page #f) (synopsis "A custom shell tool needed only for the niche workflows I write") (description "This package is different from the ones in Guix.") (license #f)) ``` Would you please help me translate this text painting into a working package? I'm especially interested in figuring out how I can productively learn to experiment productively with this stuff for myself. Thanks for your help, Kyle