From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 05 11:41:18 2021 Received: (at 49419) by debbugs.gnu.org; 5 Jul 2021 15:41:18 +0000 Received: from localhost ([127.0.0.1]:46511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Qij-0006ku-WA for submit@debbugs.gnu.org; Mon, 05 Jul 2021 11:41:18 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:37430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0Qii-0006kh-PO for 49419@debbugs.gnu.org; Mon, 05 Jul 2021 11:41:17 -0400 Received: by mail-lj1-f171.google.com with SMTP id k8so25141055lja.4 for <49419@debbugs.gnu.org>; Mon, 05 Jul 2021 08:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=bdHvBm0ThHKYKK9a/VSWh3+Kmiw7MCeF7dEvTLC4654=; b=fxbFZOm13fbaTFuGbxMle/FePkrbLm4YDSrGO7dsXaqlJw+UHdfNSI+D0lVxZmRqZH SPiSgXjboPsZeK/b+po65BpGNsb1J6PTtOQF5qEoZfljsWUGUmpTj2A40XyGb9P/reXJ GwV58MZlIjUZmX/hlvb1cC7l2y02ScstZZyPg5Fny+fMz6kX0gr1URCFv26youbcpc6/ UAsbT/3b5Gsws0I5SRmyqqaWWikOiWWV4zHBb3b6+mht4+WKMJBAQTdZxesS88AfKlBS 3DFclBRLMmEfCuCHtT9BnTUxvBFVSWUKVEnhApZJGYk8OUyqEi4jiqlfw23iws7QRC4p iOtA== 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:date:message-id:mime-version; bh=bdHvBm0ThHKYKK9a/VSWh3+Kmiw7MCeF7dEvTLC4654=; b=GrFJ9z+pt6mnYVGHSocH/RlStoakVt3yTNSLsvlPHm0SCihZRhxvLYd9/WnOQjCS+P wVORAEX3ui7wNwbhkbKdNJ37uaZ71SY74s2s7umWeZuYOfUlVI+fTIdaU2+8stJEOwbX IO9zIR4pW1Lr4WH56S1O7bADS5+Lwo9/mEvNSbyGjy2fw3d9Oz2u37jjJ5W7uYTeGj64 NKkJDzFbRkq4qF6FrAx52vvrLi2PO/3gGb7JIlbOn4ddeDqo4w0sWQrf876UvXSFqlPn LzB8Z135gwjd3M9Vqbo/VSsr4bcGvlHTZZlOHvhjaxmx2BTbXNDGTeQ0KhsVpwdAGdRw IKnQ== X-Gm-Message-State: AOAM530Ur2idepbLeTAmJYTSvs3cLhu3TqdlQdAMnxxvcQJnmbmZpMTG OoL0SdTj2vWgCKfzEpu4x0ufrBoVkyS8Ew== X-Google-Smtp-Source: ABdhPJzI6pN7sspy+bXsrrketO/YK9Fbd8nEIWty4gWfH24c6Gn0j++XPkxXmEafV8cPYqdOkVpYGA== X-Received: by 2002:a2e:3e07:: with SMTP id l7mr11475368lja.131.1625499670354; Mon, 05 Jul 2021 08:41:10 -0700 (PDT) Received: from ixy ([109.252.117.164]) by smtp.gmail.com with ESMTPSA id u2sm1119646lff.37.2021.07.05.08.41.08 for <49419@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 08:41:09 -0700 (PDT) From: Andrew Tropin To: 49419@debbugs.gnu.org Subject: [PATCH 3/4] home-services: Add home-provenance-service-type Date: Mon, 05 Jul 2021 18:41:07 +0300 Message-ID: <87sg0ship8.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49419 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= 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 002a003d65..20a9537650 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 @@ -419,3 +422,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/6IgjSCVjB3rAFAmDjKBMPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wFgQP/25DCZPMwKYLNPaIz+QqKQODiND/L+UK+UMS arAdMlZIEQoDaUXU+5e7ekzxhIwOXcF1MIXAjeGX/VogNDRFmk8btSUndXlcBr4f bjpPn1DOof8QwZIZJ1/TKcC+pz7uNA4s0q6/MjZLn4XxJHz4eaqMip+CnKUBTIIQ FTO0Z9KMFUhwDNIprBCM1t/JpGlDLdCRAIxeV6LCoYCOWskEVLAa76JrrJ7kI9p3 U4uezVeLlVCET6RKgy8IkZM6w9e+Gk8VFz4nAwJ2FpdLxYir8J5wC0pCkImhrOR5 g2ksdmLLS7u88jKdIfHVCrGqRQ7kA4MLVhHzCXRnu9ZlZ/wm8gz4NYWVPeT173VK lFYcXTi83B4MCxuzj3JXijNcWDQK1Q814k6PwhqHoxLziRDCyvPgwwwRSpPTtZRQ ChC8FB8C4bc/vA4KEJA9wwJjydUMpkZ3q3dvzZBqKFpzbIJKygrTUToUk7dAjo96 fYBzqVwqfECvVNERnelc3Vrak4Ad55cZLWiQ/62U7pp2ZprlUJg4hjeycihmvK3Q ciQZ8G5gWGx8fhR8k/BUcZSAgp34wy4sRaXPU19irPgpuAWZPGub5DM2t5CIVJh3 hsF5RKJM5COmAB2XDnsppkSpdC6H/67jCT1aNUyqUBQ0wBMexMG26R+2nOdiSLGB KeqwmUsw =EObI -----END PGP SIGNATURE----- --=-=-=--