From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oBu1IKDb5V5SJAAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 08:11:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WO6XHKDb5V4fawAAB5/wlQ (envelope-from ) for ; Sun, 14 Jun 2020 08:11:12 +0000 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 aspmx1.migadu.com (Postfix) with ESMTPS id 61397940418 for ; Sun, 14 Jun 2020 08:11:11 +0000 (UTC) Received: from localhost ([::1]:35594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkNjQ-0007ig-Qb for larch@yhetil.org; Sun, 14 Jun 2020 04:11:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkNjK-0007ia-Nv for guix-patches@gnu.org; Sun, 14 Jun 2020 04:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkNjK-00061G-DG for guix-patches@gnu.org; Sun, 14 Jun 2020 04:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkNjK-0002ex-75 for guix-patches@gnu.org; Sun, 14 Jun 2020 04:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41704] [PATCH V2] services: nix: Set NIX_CONF_DIR environment variable. Resent-From: Peng Mei Yu Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Jun 2020 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41704 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 41704@debbugs.gnu.org Received: via spool by 41704-submit@debbugs.gnu.org id=B41704.159212224510201 (code B ref 41704); Sun, 14 Jun 2020 08:11:02 +0000 Received: (at 41704) by debbugs.gnu.org; 14 Jun 2020 08:10:45 +0000 Received: from localhost ([127.0.0.1]:42780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkNj3-0002eS-J4 for submit@debbugs.gnu.org; Sun, 14 Jun 2020 04:10:45 -0400 Received: from mx1.riseup.net ([198.252.153.129]:33284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkNj1-0002eK-Pp for 41704@debbugs.gnu.org; Sun, 14 Jun 2020 04:10:44 -0400 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49l6bR0nKKzFg38; Sun, 14 Jun 2020 01:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1592122243; bh=AjghbuOxPZdSOzfJW3z/QPeU2ppw1zEo6kga6SHJX8k=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=gejwv6FIRGau1Fbt5pqfpcRu8uz7KgpeiqpqME5ti/4jO8LEr8kj2mAP9UmUQ/ASv JTSP45BvecIkl482UkC/STybIubzknMnuET9tptybZPB01/6mjxPqfZHSYYcEsSrhC v2GEz5kSbBCfiJS3Qn73Rr7dlobCH7EvsCdhxpBA= X-Riseup-User-ID: 6399479423FBFBD6D023F8CEDB1544DB0682AD6CD9424F56FA19910DB70430A4 Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 49l6bP431tz8trn; Sun, 14 Jun 2020 01:10:41 -0700 (PDT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 7ef012c6; Sun, 14 Jun 2020 08:10:35 +0000 (UTC) References: <20200604070103.2548-1-pengmeiyu@riseup.net> <20200604090922.19352-1-pengmeiyu@riseup.net> <878sgwoevv.fsf@gnu.org> From: Peng Mei Yu Message-ID: <87r1ui1337.fsf@pengmeiyu.com> In-reply-to: <878sgwoevv.fsf@gnu.org> Date: Sun, 14 Jun 2020 16:10:35 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=riseup.net header.s=squak header.b=gejwv6FI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: ycqoQ9b+KlV4 Hi, Ludovic Court=C3=A8s writes: >> * gnu/services/nix.scm (nix-shepherd-service): Set NIX_CONF_DIR environm= ent >> variable to "/etc/nix". > > Does the (untested) patch below solve the problem for you? > > Perhaps it=E2=80=99s more appropriate than setting NIX_CONF_DIR. > > Thanks, > Ludo=E2=80=99. > > diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-m= anagement.scm > index b1c96f18e7..b3c21473ed 100644 > --- a/gnu/packages/package-management.scm > +++ b/gnu/packages/package-management.scm > @@ -551,6 +551,7 @@ out) and returning a package that uses that as its 's= ource'." > (base32 > "1hbqsrp1ii2sfq8x2mahjrl2182qck76n8blrl1jfz3xq99m6i15")))) > (build-system gnu-build-system) > + (arguments '(#:configure-flags '("--sysconfdir=3D/etc"))) > (native-inputs `(("pkg-config" ,pkg-config))) > (inputs `(("boost" ,boost) > ("brotli" ,brotli) No. I should have mentioned earlier. With this patch, the install phase will fail. #+begin_example MKDIR /etc/profile.d/ install: cannot change permissions of =E2=80=98/etc/profile.d/=E2=80=99: = No such file or directory make: *** [scripts/local.mk:10: /etc/profile.d/] Error 1 command "make" "install" failed with status 2 builder for `/gnu/store/c2lw5faljg1zh5ng4nb0inslq4b0fh9c-nix-2.3.5.drv' f= ailed with exit code 1 build of /gnu/store/c2lw5faljg1zh5ng4nb0inslq4b0fh9c-nix-2.3.5.drv failed View build log at '/var/log/guix/drvs/c2/lw5faljg1zh5ng4nb0inslq4b0fh9c-n= ix-2.3.5.drv.bz2'. guix build: error: build of `/gnu/store/c2lw5faljg1zh5ng4nb0inslq4b0fh9c-= nix-2.3.5.drv' failed #+end_example There is no obvious way to fix the error, so setting NIX_CONF_DIR is easier. Perhaps someone can fix the nix package with a clean patch. That would be better. -- Peng Mei Yu https://www.pengmeiyu.com/