From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2Cg5JYAE/WPJjAAAbAwnHQ (envelope-from ) for ; Mon, 27 Feb 2023 20:29:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QDYzJIAE/WO0nAAAG6o9tA (envelope-from ) for ; Mon, 27 Feb 2023 20:29:04 +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 4D2CD9255 for ; Mon, 27 Feb 2023 20:29:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWjAt-0004rS-U7; Mon, 27 Feb 2023 14:28:39 -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 1pWjAs-0004rE-Fu for help-guix@gnu.org; Mon, 27 Feb 2023 14:28:38 -0500 Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWjAq-0002jJ-By for help-guix@gnu.org; Mon, 27 Feb 2023 14:28:38 -0500 Received: by mail-vs1-xe29.google.com with SMTP id o2so12905266vss.8 for ; Mon, 27 Feb 2023 11:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=bZ5qs8KHa66xVJU89KEHQytiBsnxMndPoulz02E3IPE=; b=qEN9l+B7uKeoJobPbg2tSKEwBIsfRtL49UlkD09MUWWq9sG6hVSthJDRQ4+0alFLOC OLUyAKK0db3lKg5wB/4kvksL+GXR6WsSI2C3gpFw4w8kNc8NmhgKsLg7es9kmqSOd207 /zNLj56bBd3gVsBS6kDt52wqVVHlj9mFZOMj8jp+s7LUCOUKOUqkPrfEtN6pKyQY+RlJ bz8GtkYN2gm7tJ0oopOdyTrVoJcm3gYAZBkNmPEmrplM2IiNyh9WIQs6T8sBs5gm93NT 4+G0W6wkCbivqs9/qth/xKuHbAyzGGwIiP4/pYik9jxQ+sVRACd1YE1TIyFbqRw/8ClS jdhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bZ5qs8KHa66xVJU89KEHQytiBsnxMndPoulz02E3IPE=; b=603O7A19v/L+PWF+8+t11ysNCQkyKaKUU1Zny5F61Za+9YeXfsvqB9f8RpBdbx8xja wmE46RhPxMcHTCN0QnQmD/6enxuyAoqB006xbY66LrBx/6b3B1J1qD/7j4hlnHUx7EvZ 1e7py/Dp/szZ/jBoF4i3Sh0MeRfSA6gXrTIIynJLAutDVh7ZRyztD0TUBkfp9pvPhAkV 0u4wbiWI3x1ZqFUiXLYgLBg/+6+vrvlV6byqArkIogjXFG/xZnZ6/clTjMLaQQN75imh tTzHlxuhDYMD48GsECN++aM0HbwIdtTevbBsM/Qmargdr7Fa9zijL7bGHk6AqZcG9Cnl bhYg== X-Gm-Message-State: AO0yUKVg/763TnYdQqYmfo0V/8PhDP+QTnMgPOqwloZ+8mOAcksdS8bA 3N4AM7/2/cjIFcjdXoD0QKB2eNbQdD9S8prvh+oUlAy4+cc= X-Google-Smtp-Source: AK7set+R0+usd3wu17JR7IsmYYyYhIjmmcp9CFAWwhi0+5BzA+cgwWXx9em8X00AHwgPA5I45PckCU5CnmYnnv66A4k= X-Received: by 2002:a67:d30a:0:b0:415:74b4:6067 with SMTP id a10-20020a67d30a000000b0041574b46067mr430873vsj.6.1677526114947; Mon, 27 Feb 2023 11:28:34 -0800 (PST) MIME-Version: 1.0 From: Rodrigo Morales Date: Mon, 27 Feb 2023 14:26:36 -0500 Message-ID: Subject: Minimal working examples of packages for experimentation? To: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::e29; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-vs1-xe29.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677526144; a=rsa-sha256; cv=none; b=jT2DTmG/02JcGm8jFNUmFu4URK+opM1lfmRZH3p/3+bq5Wb9g2yELWwSvSS5MKPPdEU5nS JbVmlIAEKP+17FPJkyfqIMYDZOnbO9lcut4cdlAhbD+c7QMROybxUdWwpbvI4pzvzeKOUQ EBappKRshoM2NmKb5qkdV7xIlW8s7Ik67/U6m6KoWpG3IHZWymBcylGCFNt57zV+Q8Rp6h UHA8/4+TaMZDj5GDh9TvPW5qYLileqmWtse7VrqTQp/dGsjxOfTVYQ0JOsmRB7SLIwog34 TfSemluR0kB/BUjtNk3UcUqMywyAb13t5cl+WlURwQ56C0YW9/VRE9+aSZSLdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=qEN9l+B7; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677526144; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NueMh1hS3/x7Ib6HQToDmdngrRT10XHSkWMwS02TjJY=; b=kJzuOq06i5uUFnt3fKdoXJ/8M6pyFXySV66hc/mWkvvmUyS7ze8U+mRnsfvgyx46ZL4274 riygth1JAyoFgLU3WTLT4mxXv/m94HnfndaN8YsaaanU7vE4SfjJutZACSzRrZKnsr4kz9 Ycn84guOEdi5+tee0mOaiAxLe8e3F83KF/z34BhqrbO0seMbTpyEPDUENNjXGAmNDanXJi 0jetLrdr/eMIE4UEbJz08WVwwA+oHU1KgXuPVRRQCUau04nYnx+fd/Ay4iOVDHdl8Sz3h3 1dPFKqXopk9pezIMMmV1Eh9DGHm7Jpbp4HiytM6ZU4Sna5wK4QI/BUOv5I2Zpg== X-Migadu-Spam-Score: 0.61 X-Spam-Score: 0.61 X-Migadu-Queue-Id: 4D2CD9255 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=qEN9l+B7; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn1.migadu.com X-TUID: UCiHh74BeZdq Table of Contents _________________ 1. The context 2. What I've tried 3. What I'm looking for 1 The context ============= I'm trying to write the simplest package definition that does nothing in order to be able to generate multiple generations on the fly and experiment with the `guix package' flags that act on generations. I asked the same question in and someone recommended me using the `my-hello' package shown as an example in (guix-cookbook) GUIX_PACKAGE_PATH. I replied to him that I didn't want to use that definition because it downloads a file and performs some compilation steps and I was looking for something simpler. The same user replied "you could copy the sources to a local directory, and edit the file description so it's url-fetch method and the uri is the absolute path to where the pkg is.". I haven't found examples on this, so I thought it would be difficult to do it. I found several examples on using `url-fetch', so I decided to write a package that downloads a single small file from the Internet (e.g. ) and install it under a directory. This is what I tried to write but with no avail. The next section shows what I tried. 2 What I've tried ================= The following is the package that I wrote. ,---- | (define-module (my-simple) | #:use-module (guix licenses) | #:use-module (guix packages) | #:use-module (guix gexp) | #:use-module (guix build-system trivial) | #:use-module (guix download)) | | (define-public my-simple-1 | (package | (name "my-simple-1") | (version "2.10") | (source (origin | (method url-fetch) | (uri " https://www.gnu.org/graphics/heckert_gnu.transp.small.png") | (sha256 (base32 "1686w7x3qk85i5693nrj7lbdh64232fdsqd5rgxgijv1y39rldbr")))) | (build-system trivial-build-system) | (synopsis "My synopsis") | (description "My description") | (home-page "https://example.org/") | (license gpl3+))) `---- If I try to install the package I get the following error. Fortunately, it shows that there's a build log. ,---- | export GUIX_PACKAGE_PATH=~/my-packages | guix package -i my-simple-1 | echo Exit code: $? `---- ,---- | The following package will be installed: | my-simple-1 2.10 | | substitute: substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 0.0% substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0% | substitute: substitute: [Kupdating substitutes from 'https://bordeaux.guix.gnu.org'... 0.0% substitute: [Kupdating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0% | The following derivations will be built: | /gnu/store/lsqc0zjvqmnc8vbkk36g9jy5bcnmk455-profile.drv | /gnu/store/a1cxm06cdacqry9x0c14pnb4s491b6z9-my-simple-1-2.10.drv | | building /gnu/store/a1cxm06cdacqry9x0c14pnb4s491b6z9-my-simple-1-2.10.drv... | builder for `/gnu/store/a1cxm06cdacqry9x0c14pnb4s491b6z9-my-simple-1-2.10.drv' failed to produce output path `/gnu/store/a8p80lxgcar332ln81ss6pl9xr0wajsh-my-simple-1-2.10' | build of /gnu/store/a1cxm06cdacqry9x0c14pnb4s491b6z9-my-simple-1-2.10.drv failed | View build log at '/var/log/guix/drvs/a1/cxm06cdacqry9x0c14pnb4s491b6z9-my-simple-1-2.10.drv.gz'. | cannot build derivation `/gnu/store/lsqc0zjvqmnc8vbkk36g9jy5bcnmk455-profile.drv': 1 dependencies couldn't be built | guix package: error: build of `/gnu/store/lsqc0zjvqmnc8vbkk36g9jy5bcnmk455-profile.drv' failed | Exit code: 1 `---- When I try to read the log file, it is empty. ,---- | echo 'foo' | zcat /var/log/guix/drvs/a1/cxm06cdacqry9x0c14pnb4s491b6z9-my-simple-1-2.10.drv.gz | echo 'bar' `---- ,---- | foo | bar `---- 3 What I'm looking for ====================== 1. Why the package that I wrote failing? How could I fix it? 2. Do you know simpler package definitions (aka minimal working examples) that I could use for experimenting? (This is an example of [The XY problem], question 1 is X, question 2 is Y) [The XY problem]