From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John D. Boy" Subject: Re: guix environment shebang interpreter Date: Thu, 06 Feb 2020 23:22:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39929) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izqUR-0000lW-0v for help-guix@gnu.org; Thu, 06 Feb 2020 18:23:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izqUP-0006hV-To for help-guix@gnu.org; Thu, 06 Feb 2020 18:23:18 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33891) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izqUP-0006Ps-Gp for help-guix@gnu.org; Thu, 06 Feb 2020 18:23:17 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B57A721AFB for ; Thu, 6 Feb 2020 18:23:15 -0500 (EST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org > > Is there a Guix equivalent of the nix-shell shebang? > You could imagine something like: > > #! /usr/bin/env guix environment --ad-hoc PKG1 PKG2 ... -- > INTERPRETER > > But alas, on linux you cannot put more than one argument in the shebang > line. I have successfully gotten this to work by passing -S to env: #!/usr/bin/env -S guix environment --ad-hoc python python-pandas python-numpy -- python3 See a short test script here: https://gist.github.com/jboynyc/1faa5dc4e278d5b6284795f780d22764