From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Package variation Date: Tue, 23 Oct 2018 19:33:09 -0700 Message-ID: <878t2oul96.fsf@gmail.com> References: <87pnw1p34m.fsf@posteo.net> <20181023073302.GG1102@macbook41> <87r2ggwne2.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF8zA-0008KG-Or for guix-devel@gnu.org; Tue, 23 Oct 2018 22:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF8z8-0001l0-1o for guix-devel@gnu.org; Tue, 23 Oct 2018 22:33:28 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:41194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gF8z6-0001jX-An for guix-devel@gnu.org; Tue, 23 Oct 2018 22:33:24 -0400 Received: by mail-pf1-x430.google.com with SMTP id a19-v6so1639886pfo.8 for ; Tue, 23 Oct 2018 19:33:23 -0700 (PDT) In-Reply-To: <87r2ggwne2.fsf@posteo.net> (Brett Gilio's message of "Tue, 23 Oct 2018 13:04:05 -0500") 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: Brett Gilio Cc: Guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Brett, Brett Gilio writes: > (define-public gnome-custom > (package (inherit gnome) > (name "gnome-custom") > (inputs (alist-delete "nautilus" (package-inputs gnome))))) The spirit of this is correct, but the implementation isn't quite right. The gnome package has no inputs: scheme@(guile-user)> ,use (gnu packages gnome) scheme@(guile-user)> ,use (guix packages) scheme@(guile-user)> (package-inputs gnome) $1 =3D () Instead, it has many propagated inputs. So, you should probably write: (define-public gnome-custom (package (inherit gnome) (name "gnome-custom") (propagated-inputs (alist-delete "nautilus" (package-propagated-inputs gnome))))) This will work as you expect. It's not incorrect to use alist-delete here, but FYI you can also use matching to do this as follows: (define-public gnome-custom (package (inherit gnome) (name "gnome-custom") (propagated-inputs (remove (match-lambda ;; Ignore the second value. ((name _) (string=3D? name "nautilus"))) (package-propagated-inputs gnome))))) Whether or not you like that better probably depends on whether or not you view the value returned by (package-propagated-inputs gnome) as an alist or a list of 2-element lists. > (services (cons* (service gnome-desktop-service-type > config =3D> > (gnome-desktop-configuration > (inherit config) > (gnome-package gnome-custom))) > %desktop-services)) It looks like you're using "config =3D>" from the modify-services syntax without actually using modify-services. Try this instead: (services (cons* (service gnome-desktop-service-type (gnome-desktop-configuration (inherit config) (gnome-package gnome-custom))) %desktop-services)) This should create and add a gnome-desktop-service-type service instance with the configuration you've specified. Hope that helps! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlvP2eUACgkQ3UCaFdgi Rp1upg//Uhjz9mW6bfpFkTMxglGQ/81yV5S7dlrP/i29XSe5ge9Q+CKq7shBEfSu DFvXrw1Dc2t9Di5KHyzeFC+tHGTOug3wbjUScA1S8wfZphQfgSeVuOuTT8Y/In0j QBqSmh0XtXo5vUeQaIwzaKMIHkRuo5oEss+bX0je4F60nStZb8JKa4XSH7bAufy6 ghXT0c/AyvztWiMaQyfjqz0gE3LpefUVyEsS+aQy/66m+QL8ooKa+A5O/j4yj2cM 8hkpmzxUXGmo/dQ28Sbm4LJK4DnwZGhyaXIGi7FNJgRb8yyuQgjTSSJvlL6dGPt2 UUwElgEq5hWYdpIVcvxmP/zqKSmTto/ITuCbLAm3d5vUlGKM30O9IOiw1xM7t5np SWNSBta0ncJZvy0wbVWBkB7osAHnt5YSU0SuKPovdXNsCNGz31lg+1R3U03S3q8n RAQ40bV2I4dyo3d839MyubUKOBIvG47lrB+FDCCLBNYXGqSRMRTqljiCp+WE7kj9 yvsaNa+VlJnmmix2YT9X7Ya8/Wm01hkx/4lD2ZaJ/QRMgo85QrhMEpCFxHuubnIk 1zaMQ8kYJPzqAp2lgAoTmCOuYs5hmmXdSujKrBPrYXMjIZlAM+51thSdrmQWL7e+ ZnsaztUm4ulOoa+9oy3Qcy5Qvn+ESGXMV9k3IdEpeS/q+ga2aNU= =7BAb -----END PGP SIGNATURE----- --=-=-=--