From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UASRNjbu5WOlNAEAbAwnHQ (envelope-from ) for ; Fri, 10 Feb 2023 08:11:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sGtFNTbu5WOFWwAA9RJhRA (envelope-from ) for ; Fri, 10 Feb 2023 08:11:50 +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 aspmx1.migadu.com (Postfix) with ESMTPS id 44C2E1A173 for ; Fri, 10 Feb 2023 08:11:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQNZ7-0005Qu-2z; Fri, 10 Feb 2023 02:11:25 -0500 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 1pQNZ6-0005Qg-3r for guix-devel@gnu.org; Fri, 10 Feb 2023 02:11:24 -0500 Received: from lepiller.eu ([89.234.186.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQNZ3-0006jV-EV for guix-devel@gnu.org; Fri, 10 Feb 2023 02:11:23 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 7d8ac9d4; Fri, 10 Feb 2023 07:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=uBaGJAKDL0Vy t6c75aEZwBbMExsh0DwLu9uivvQXWCM=; b=NVT/64uTy5shTpmY2ZidSZqlr9u/ GXewJsbgjKcrPMJsldGD36bNXIFtT7QXeiCVs2X8VvzfGOY9/EQ9DMVtGqinC6Hy Ym8I2QTs+CA7nIueAGN0o1QxjEl10Jadf4W7okANz2e4jwg68JE4gmqFvhSz1g61 eAiL62WK0nX/Ik2evF0a3fKFEu9Jg/kCDeDvh5ndPQg5DA1zMVRL6u1NOkq2nbXT QgzZ7l8tkJ60dYtwFtKta/UZQg4lUk03R0bS73E8oRUJ5OptMp9qnx49G6IRbsQu nXoW2AjFs++FBaXWWSZyaH4bO242GUj7VhXsuex0w9RDLI7gePFBxT0PrA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 8531598e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 10 Feb 2023 07:11:12 +0000 (UTC) Date: Fri, 10 Feb 2023 08:11:11 +0100 From: Julien Lepiller To: guix-devel@gnu.org, Kyle Andrews Subject: Re: Help adding a graph backend User-Agent: K-9 Mail for Android In-Reply-To: <87ilga41jh.fsf@posteo.net> References: <87ilga41jh.fsf@posteo.net> Message-ID: <3D5D5CCB-C250-4FB2-A229-711B5C4C0CBF@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676013110; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tc5Q9cAeBQ5lXXRn5I9DEbzTb09hsXPMYmnftPWMdtQ=; b=iHru6HiVnkTQbkLqqWvGXn9lG7dxSHZksW75YxusXeummwm78k/OKJEJ4ORV89kQtjLr3E xZHJR+AlHr7eAR9LXm2yhkDpaUWZVmHPko/3EUZ0mcsXadOGe2VCX8ufqnXQe+n3uZ+U7h V9/yrq8fV+q2x2yLT/ydiXaprA1GYHXXWyXIlzFa5qO3I59MLl3kHrqNM2mVyJYXdM2U1U mgOXd9VokqxU86SnFGBDOd64A2T6eWHeka908QFAn2Yr1HrnCYHaa8GwNMQsnmliNdo+KG TSi0P1yMTktUFgMf+TqLYepbJJZw+9asczOlNGrxurWdqAXZ8mpWs6msp+3gNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b="NVT/64uT"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676013110; a=rsa-sha256; cv=none; b=kyXeOruiy7QlLth3AWfSq4YC3Rd75Y4Ew9xHSJZ4JYM6h2/89S4K3FY34sOeJx0eOr8Gg8 XgqfwlcfofQn5oJsGcQqk8KRN/QyLVLWFbrYjyhe/fmFhyXS/5dcvJMCNjZ1AhlYh8Mmaw WWd9AyKJW/b0O+qQnrCk9HW7l8TdYEzwFp4x3VTLOqx6e6vgaoLLJyT5EUCV+u4IJYtKKw tf6KHNz3eIzY/gRNd2H2dPtS5AVmrYNRFqHo91IFdkF9Gm6wjcBMmtPlqakL7xxJ8PSFkV stSTtHn9KuekJfKWi0P1rbpMITz8G8uz20PSpmhkCyk5dyVfu+tBB+wSDscEQA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.26 X-Spam-Score: -6.26 X-Migadu-Queue-Id: 44C2E1A173 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b="NVT/64uT"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu X-TUID: poGP1xjSTKjG As the message says, use =2E/configure --localstatedir=3D/var :) Le 10 f=C3=A9vrier 2023 04:10:02 GMT+01:00, Kyle Andrews a =C3=A9crit=C2=A0: > >Dear Guix, > >I am not very comfortable editing Guix source code=2E However, I would >very much like to add a new backend for `guix graph`=2E Right now guix >graph descriptions can only be exported into special purpose tools like >graphviz, D3, and cypher=2E I would like to add a fourth option which >would support loading the dependency data into general purpose network an= alysis software tools: an edgelist backend=2E > >=3D> https://en=2Ewikipedia=2Eorg/wiki/Edge_list > >I think this code will do the job, but I don't know how to test it=2E So,= I don't know for sure=2E > >``` guix/graph=2Escm >(define (el-prologue name port) > (display "from, to" port)) > >(define (el-epilogue port) > (display "\n" port)) > >(define (el-node id label port) > (display "" port)) > >(define (el-edge id1 id2 port) > (format port "~a, ~a\n")) > >(define %edgelist-backend > (graph-backend "edgelist" > "Generate graph in CSV edge list format" > el-prologue el-epilogue > el-node el-edge)) > >(define %graph-backends > (list %graphviz-backend > %d3js-backend > %cypher-backend > %edgelist-backend)) ; <- the new proposed backend >``` > >Maybe it would be using some incantation involving =2E/pre-inst-env? I ga= ve it a try following the manual: > >``` >cd ~/{{path/to/guix}} >guix shell -D guix >=2E/bootstrap >=2E/configure >``` > >This gave an error: > >``` >configure: error: chosen localstatedir '/usr/local/var' does not match th= at of the existing installation '/var' >Installing may corrupt /gnu/store! >Use '=2E/configure --localstatedir=3D/var'=2E >``` > >Since I am not that excited about corrupting my /gnu/store given that I d= on't know what I am doing, I didn't proceed further=2E=20 > >I figured because I wanted to extend Guix with a new feature and that I >could piece together a story in my head about how the code should look, m= y query should be sent to this list rather than to help-guix=2E > >Thanks in advance for any helpful suggestions towards getting this backen= d added to Guix! > >Cheers, >Kyle >