From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57804) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC99I-00074T-7v for guix-patches@gnu.org; Sun, 22 Sep 2019 17:12:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iC99H-0005tt-4q for guix-patches@gnu.org; Sun, 22 Sep 2019 17:12:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iC99H-0005tj-19 for guix-patches@gnu.org; Sun, 22 Sep 2019 17:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iC99F-0006Vz-OJ for guix-patches@gnu.org; Sun, 22 Sep 2019 17:12:02 -0400 Subject: [bug#37412] [PATCH 1/2] gnu: Add guix-data-service. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87v9tt1l0h.fsf@cbaines.net> <20190922120337.3533-1-mail@cbaines.net> Date: Sun, 22 Sep 2019 23:11:16 +0200 In-Reply-To: <20190922120337.3533-1-mail@cbaines.net> (Christopher Baines's message of "Sun, 22 Sep 2019 13:03:36 +0100") Message-ID: <87impk5957.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Christopher Baines Cc: 37412@debbugs.gnu.org Christopher Baines skribis: > * gnu/packages/web.scm (guix-data-service): New variable. [...] > + (native-inputs > + `(("autoconf" ,autoconf) > + ("automake" ,automake) > + ("emacs-with-modules" ,(directory-union > + "emacs-union" > + (list emacs-no-x > + emacs-htmlize))) Should it be =E2=80=98emacs-minimal=E2=80=99? > + (native-search-paths > + ;; XXX guile-git requires this to be set, maybe there's a better = way > + (list (search-path-specification > + (variable "GIT_SSL_CAINFO") > + (file-type 'regular) > + (separator #f) > + (files '("etc/ssl/certs/ca-certificates.crt"))))) Like I wrote, I=E2=80=99d rather remove the search path and add the environ= ment variable=E2=80=A6 > + (start #~(make-forkexec-constructor > + (list #$(file-append package > + "/bin/guix-data-service") > + "--pid-file=3D/var/run/guix-data-service/pid" > + #$(string-append "--port=3D" (number->string port)) > + #$(string-append "--host=3D" host) > + ;; Perform any database migrations when the > + ;; service is started > + "--update-database") > + > + #:user #$user > + #:group #$group > + #:pid-file "/var/run/guix-data-service/pid" > + ;; Allow time for migrations to run > + #:pid-file-timeout 60 > + #:environment-variables > + `(,(string-append > + "GUIX_LOCPATH=3D" #$glibc-utf8-locales "/lib/locale") > + "LC_ALL=3Den_US.utf8") > + #:log-file "/var/log/guix-data-service/web.log")) =E2=80=A6 here. =E2=86=91 But anyway, these are details so I think you can go ahead and push as you see fit. Thanks! Ludo=E2=80=99.