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 ms0.migadu.com with LMTPS id SZMoOt97C2FybQEAgWs5BA (envelope-from ) for ; Thu, 05 Aug 2021 07:49:19 +0200 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 6MIuNd97C2F0egAAB5/wlQ (envelope-from ) for ; Thu, 05 Aug 2021 05:49:19 +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 5FC8E1E1B8 for ; Thu, 5 Aug 2021 07:49:19 +0200 (CEST) Received: from localhost ([::1]:46984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBWFq-0002CV-8i for larch@yhetil.org; Thu, 05 Aug 2021 01:49:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBWFb-0001l3-Co for guix-patches@gnu.org; Thu, 05 Aug 2021 01:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBWFb-0001B9-6q for guix-patches@gnu.org; Thu, 05 Aug 2021 01:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBWFb-0006o3-1W for guix-patches@gnu.org; Thu, 05 Aug 2021 01:49:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49419] [PATCH v4 3/4] home-services: Add home-provenance-service-type Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Aug 2021 05:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49419 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49419@debbugs.gnu.org Received: via spool by 49419-submit@debbugs.gnu.org id=B49419.162814250826072 (code B ref 49419); Thu, 05 Aug 2021 05:49:02 +0000 Received: (at 49419) by debbugs.gnu.org; 5 Aug 2021 05:48:28 +0000 Received: from localhost ([127.0.0.1]:45644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBWF2-0006mS-At for submit@debbugs.gnu.org; Thu, 05 Aug 2021 01:48:28 -0400 Received: from mail-lf1-f41.google.com ([209.85.167.41]:33615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBWF1-0006lx-4Q for 49419@debbugs.gnu.org; Thu, 05 Aug 2021 01:48:27 -0400 Received: by mail-lf1-f41.google.com with SMTP id p38so8936078lfa.0 for <49419@debbugs.gnu.org>; Wed, 04 Aug 2021 22:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=snZ4ZNwtRzA2+DvxEtESiaS3qrykzVqCJe6xThrel2w=; b=UMJENF2b6HXZO3WwdyFqM0qf8RsKRJiZ7AYtmWiAyI7dtxyUBsrUwy5DtscpCJLky4 Vu3vioFFr5hll/7dykl1oj/XAc/RfaoLDGzN/kqFWTJlMIalUhX/XwXFGx7jxt6Bfj4+ QZ7kkA9ylE81AcKPdwXPlct8XF1mtLZ+ipN0B6ZJt8bLtGme8DKsIifVNsU3+B2g4OQe au8VgxT9Ci6vDogcwmtXRdz/ekzLpTLoJEJPa8CLwn2UikBl2xnfaDM/n7nRDGCSxWKK O1S7WDL98JFvAM/Yv41xz6+UQy+1DAeoV8ZnTo8lOcfVCu5wgG9jlZcv7JSI29Cy/oey 8nMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=snZ4ZNwtRzA2+DvxEtESiaS3qrykzVqCJe6xThrel2w=; b=Ho9XSRH5fLvHvHPKZxL0B79IzGe8eAtOqSdDn3ktvewOeqarzTun53v2dkUpgE9G6J 2CpqJVbcCdJTgnmgH8wzCJ8hmyU25JUo4x64YVt04VcHH4PT5idLo1L9lUjmhToQHj5b XnLiOmZWPQfFffpm19UkiR9h5H23cCNNKJ2ksJhJayzUzw5qnpuU9N2lk9x5otldA23B xAKLgsUQ+edPmQ2JgI9s1pZPmoNCeQ/GuwkMjvC0Tgz7VKJIuas58Z9UoXvwAo1kTBPO i8tx/5OF8tBLmhvnUhRhb93UGeF9Pae7KRH7jsj5FIlrlxlaON8fGR0p/tYzNsAjHVj4 MQrw== X-Gm-Message-State: AOAM533CDrn/NWYyVnzNY6z2F2zioVU8nlj4I50CAqRp9VBWmuN1A1Tu o9g66If5iZHUAG3xpT1Ando7SshWdbzC8EPB X-Google-Smtp-Source: ABdhPJz0fWli93xb/8+Q6VU4tbl7h9xDR19Ily9RyjoB55cvkk8kESO7y8qDyXBzzccHz/bbxYk8hQ== X-Received: by 2002:ac2:4c0d:: with SMTP id t13mr2289892lfq.118.1628142501090; Wed, 04 Aug 2021 22:48:21 -0700 (PDT) Received: from localhost (109-252-93-92.nat.spd-mgts.ru. [109.252.93.92]) by smtp.gmail.com with ESMTPSA id l21sm320046ljc.94.2021.08.04.22.48.19 for <49419@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 22:48:20 -0700 (PDT) From: Andrew Tropin In-Reply-To: <87tuk4mors.fsf@trop.in> References: <87y2akhiz1.fsf@trop.in> <87tuk4mors.fsf@trop.in> Date: Thu, 05 Aug 2021 08:46:58 +0300 Message-ID: <87k0l0moj1.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628142559; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=DmxdxUlUm11aahNy5ZO3Wfln2xp10DnoSj9pGx6Btdo=; b=h4z0ysZ/2TFluGKz63tUpp2JsB0TV6uYu5oknxFISFmyHVUzEZ98JGcUnWlMdSJMN4ykwU MMkjiNmpEmGSpx1zvYng7cRARqE59ZvMQdkePeFnSTA4v9G5JxF5tmqy8rHLEHX4wZizhU Tm5TKC8h5ajyNJ9RotczcfWTz0YvnQ8LuhT2VCP0DhEmG/3+6dIRFZIJNfjWbLyca4QGLv l6GWkhYB+cCmm5otWugpjvP7xsYFxYFuRnK4vf9PsDRKYKbmiqMH7b5ileq6cvfAk0ScRq 9ag1UOhqcVMhO98aFaHUX+LGAKjtCHO5zj6YCrt8I0F4dR+OpRBs//q/ECCCRw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628142559; a=rsa-sha256; cv=none; b=ucvFmqoKtWTI9GkbnsuYlYxEjOWucjLixE19pwVvMT/alie/UM9tPj2RO4DWGzFE4TUGVk quV/o17Mol2bHOCOAe6VHK1bWbakhdlziZjUJD671NaEzAC7QfjN5OXKFwtu5GB9M3tjjB ZJCmwNp9J9MPmc90cqgZAXly9/hofE+W0q4RkHSXQMY2UsO3HS+ml/pNyRtjDsBz1drKPI I0id28G/9PZ4ih+yFw81W52eEzu9q3SXesiVGRoGADsKJe98wjeW9KvDKF20LYUjuFVo+i gGbu/66o2sZmamdTIPyIjGc4w1QqbhdWqESBBXPmx3Aq4M725QBWzPh+DqMPew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=UMJENF2b; dmarc=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-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=UMJENF2b; dmarc=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-Migadu-Queue-Id: 5FC8E1E1B8 X-Spam-Score: -1.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: m42pKRVKmWVU --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/home-services.scm (home-provenance-service-type, sexp->home-provenanc= e, home-provenance): New variables. =2D-- gnu/home-services.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/home-services.scm b/gnu/home-services.scm index 32b59f55df..d320d3a44d 100644 =2D-- a/gnu/home-services.scm +++ b/gnu/home-services.scm @@ -38,7 +38,10 @@ home-files-service-type home-run-on-first-login-service-type home-activation-service-type =2D home-run-on-change-service-type) + home-run-on-change-service-type + home-provenance-service-type + + fold-home-service-types) =20 #:re-export (service service-type @@ -467,3 +470,25 @@ G-expressions to run if the specified files have chang= ed since the last generation. The extension should be a list of lists where the first element is the pattern for file or directory that expected to be changed, and the second element is the G-expression to be evaluated."))) + + +;;; +;;; Provenance tracking. +;;; + +(define home-provenance-service-type + (service-type + (name 'home-provenance) + (extensions + (list (service-extension + home-service-type + (service-extension-compute + (first (service-type-extensions provenance-service-type)))))) + (default-value #f) ;the HE config file + (description "\ +Store provenance information about the home environment in the home +environment itself: the channels used when building the home +environment, and its configuration file, when available."))) + +(define sexp->home-provenance sexp->system-provenance) +(define home-provenance system-provenance) =2D-=20 2.32.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmELe1IPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wbLcP/iEJTPV0B59ezPSYYCYTTNQaijU6wJTfkXkf 1MB9DnQLK0eVnTrmPzSNW18BNiwrbJKA3BUcnw1u7+Ht23FvArKb7t0m0A/rbQtw PkH8HEJMPFlGKOY/speO6dIH6c64b9f4erCLWh/If63w7ojAudp/y2faj632NhdH ntAqTwzbmd8a6SkaXtEXjE5HRzoWThUmCvI+Zr4LJ3WxGBY6hFzxKiTAljyRWgnH XEkCJUvWHJkh4+4U9Ih+3NagFbrBWzed1XTz97PgSYgrzkzG2OTVA6ElKwWPJAZG 6VThrBnGmyjMP28nN+wd0v7wnLu65hFs5SQhAVgBg72BkjW5EDTPFd0CnV254mh5 2pS59vWBTdShjlv4okNhqF972Ja87qKyZNgG063XW8g1w4ylfYy3g3L/FZHSjvKb 0OrMwl4/Xw8YcHrZF+F42ZAYgoCp3lxeSHp95On2m2IlacVTOJ4f6KIURmpZI9OT 4bdUZsM7Uvpwlit/G759onYZK4tCOX40b4+UhVUEHdcCz0O1o+r/J1BIBZ3DcDrA 1G4c38V9K0Ch5yNDprW0DsinA/51bgXlkjGAuMx/Vqp/2sZCSJN82w2q1vrysD/v baKtyUWW0QoMy7TPHjYYm8RvZkZTiDtDaNGaeesEPQP4LHwD6AwijYfLAs/rhUEr suCiQ8j9 =6vmB -----END PGP SIGNATURE----- --=-=-=--