<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix/tests/home-import.scm, branch master</title>
<subtitle>Transactional package manager, declarative GNU/Linux distribution, reproducible deployment tool, and more! https://guix.gnu.org</subtitle>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/'/>
<entry>
<title>home: Define ‘%base-home-services’.</title>
<updated>2025-01-16T21:32:11+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2024-12-13T22:37:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=0aa45f18543552f2396414ab130dab40f8969d27'/>
<id>0aa45f18543552f2396414ab130dab40f8969d27</id>
<content type='text'>
* gnu/home.scm (%base-home-services): New variable.
(&lt;home-environment&gt;)[services]: Change default to ‘%base-home-services’.
* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code): Use
‘%base-home-services’ by default.
* tests/home-import.scm (match-home-environment-no-services)
(match-home-environment-transformations)
(match-home-environment-no-services-nor-packages)
(match-home-environment-bash-service)
(match-home-environment-bash-service-with-alias): Adjust accordingly.
* doc/he-config-bare-bones.scm: Use ‘%base-home-services’.
* doc/guix.texi (Declaring the Home Environment): Add index entry for
‘%base-home-services’.

Change-Id: Id95ede62b97a976aad138bfc4b63fc0bdf37c7de
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/home.scm (%base-home-services): New variable.
(&lt;home-environment&gt;)[services]: Change default to ‘%base-home-services’.
* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code): Use
‘%base-home-services’ by default.
* tests/home-import.scm (match-home-environment-no-services)
(match-home-environment-transformations)
(match-home-environment-no-services-nor-packages)
(match-home-environment-bash-service)
(match-home-environment-bash-service-with-alias): Adjust accordingly.
* doc/he-config-bare-bones.scm: Use ‘%base-home-services’.
* doc/guix.texi (Declaring the Home Environment): Add index entry for
‘%base-home-services’.

Change-Id: Id95ede62b97a976aad138bfc4b63fc0bdf37c7de
</pre>
</div>
</content>
</entry>
<entry>
<title>home: import: Use (guix read-print) to render the config file.</title>
<updated>2022-09-20T17:24:31+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2022-09-20T09:58:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=76c58ed59c05fa2ae14281109c9186e47ba810da'/>
<id>76c58ed59c05fa2ae14281109c9186e47ba810da</id>
<content type='text'>
* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code):
Insert calls to 'comment' and 'vertical-space'.
(import-manifest): Use 'pretty-print-with-comments/splice' instead of a
loop on 'pretty-print'.
* tests/home-import.scm (remove-recursively): New procedure.
(eval-test-with-home-environment): Use it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code):
Insert calls to 'comment' and 'vertical-space'.
(import-manifest): Use 'pretty-print-with-comments/splice' instead of a
loop on 'pretty-print'.
* tests/home-import.scm (remove-recursively): New procedure.
(eval-test-with-home-environment): Use it.
</pre>
</div>
</content>
</entry>
<entry>
<title>packages: Add 'specifications-&gt;packages'.</title>
<updated>2022-06-06T20:43:30+00:00</updated>
<author>
<name>Antero Mejr</name>
<email>antero@mailbox.org</email>
</author>
<published>2022-05-27T17:13:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=7041fe0646a9603e7d1d6bde139a284146515917'/>
<id>7041fe0646a9603e7d1d6bde139a284146515917</id>
<content type='text'>
* gnu/packages.scm (specifications-&gt;packages): New procedure.
* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code): Use it.
* tests/home-import.scm (match-home-environment-no-services)
(match-home-environment-no-services-nor-packages)
(match-home-environment-bash-service)
(match-home-environment-bash-service-with-alias): Adjust 'packages'
field accordingly.

Co-authored-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* gnu/packages.scm (specifications-&gt;packages): New procedure.
* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code): Use it.
* tests/home-import.scm (match-home-environment-no-services)
(match-home-environment-no-services-nor-packages)
(match-home-environment-bash-service)
(match-home-environment-bash-service-with-alias): Adjust 'packages'
field accordingly.

Co-authored-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>home: import: Properly parse aliases that contain quotes.</title>
<updated>2022-03-20T18:02:41+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2022-03-20T17:56:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=6da2a5a5655668f42ec5b26f875ddbc498e132b6'/>
<id>6da2a5a5655668f42ec5b26f875ddbc498e132b6</id>
<content type='text'>
* guix/scripts/home/import.scm (generate-bash-configuration+modules):
Define 'alias-rx'.
[bash-alias-&gt;pair]: Use it.
* tests/home-import.scm (match-home-environment-bash-service-with-alias):
New variable.
("manifest-&gt;code: Bash service with aliases"): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/home/import.scm (generate-bash-configuration+modules):
Define 'alias-rx'.
[bash-alias-&gt;pair]: Use it.
* tests/home-import.scm (match-home-environment-bash-service-with-alias):
New variable.
("manifest-&gt;code: Bash service with aliases"): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>home: import: Fix handling of manifest entries with specific output.</title>
<updated>2022-01-05T22:44:18+00:00</updated>
<author>
<name>Arjan Adriaanse</name>
<email>arjan@adriaan.se</email>
</author>
<published>2022-01-02T17:20:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=d7fb57bcd559fc1fea60cbed91990c06462d33fb'/>
<id>d7fb57bcd559fc1fea60cbed91990c06462d33fb</id>
<content type='text'>
specification-&gt;package fails on manifest entries with specific outputs,
resulting in an invalid home configuration.  This changes the import command
to use specification-&gt;package+output instead.

* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code): Make sure
manifest entries with specific output are also handled.
* tests/home-import.scm: Specify output in home environment manifest entry.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
specification-&gt;package fails on manifest entries with specific outputs,
resulting in an invalid home configuration.  This changes the import command
to use specification-&gt;package+output instead.

* guix/scripts/home/import.scm (manifest+configuration-files-&gt;code): Make sure
manifest entries with specific output are also handled.
* tests/home-import.scm: Specify output in home environment manifest entry.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>home: Adjust 'guix home import' test for shell aliases.</title>
<updated>2021-11-16T13:38:02+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2021-11-16T12:31:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=f35976584cce09e3e857f75caa812daedc8cc07e'/>
<id>f35976584cce09e3e857f75caa812daedc8cc07e</id>
<content type='text'>
This is a followup to 4b96998292442ec03024481c911d88f86c7c36b5.

* tests/home-import.scm (match-home-environment-bash-service): Match the
'aliases' field.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a followup to 4b96998292442ec03024481c911d88f86c7c36b5.

* tests/home-import.scm (match-home-environment-bash-service): Match the
'aliases' field.
</pre>
</div>
</content>
</entry>
<entry>
<title>home: import: Avoid duplication of 'manifest-&gt;code'.</title>
<updated>2021-10-30T22:51:06+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2021-10-30T22:02:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=6f4ca78761471602e3af37ee1a33de446114039f'/>
<id>6f4ca78761471602e3af37ee1a33de446114039f</id>
<content type='text'>
* guix/scripts/home/import.scm (manifest-&gt;code): Remove.
(manifest+configuration-files-&gt;code): New procedure.
(import-manifest): Use 'manifest+configuration-files-&gt;code' instead of
'manifest-&gt;code'.
* tests/home-import.scm (eval-test-with-home-environment): Likewise.
(match-home-environment-transformations): New procedure.
("manifest-&gt;code: No services, package transformations"): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/home/import.scm (manifest-&gt;code): Remove.
(manifest+configuration-files-&gt;code): New procedure.
(import-manifest): Use 'manifest+configuration-files-&gt;code' instead of
'manifest-&gt;code'.
* tests/home-import.scm (eval-test-with-home-environment): Likewise.
(match-home-environment-transformations): New procedure.
("manifest-&gt;code: No services, package transformations"): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>home: import: Factorize triplicated 'version-spec' procedure.</title>
<updated>2021-10-30T22:51:06+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2021-10-30T21:30:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=96728c54df365cc48f14a514b63616ff7a6d052b'/>
<id>96728c54df365cc48f14a514b63616ff7a6d052b</id>
<content type='text'>
* guix/scripts/package.scm (manifest-entry-version-prefix): New
procedure, moved from...
(export-manifest)[version-spec]: ... here.  Adjust caller.
* tests/home-import.scm (version-spec): Remove.
(eval-test-with-home-environment): Use 'manifest-entry-version-prefix'
instead.
* guix/scripts/home/import.scm (import-manifest): Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/package.scm (manifest-entry-version-prefix): New
procedure, moved from...
(export-manifest)[version-spec]: ... here.  Adjust caller.
* tests/home-import.scm (version-spec): Remove.
(eval-test-with-home-environment): Use 'manifest-entry-version-prefix'
instead.
* guix/scripts/home/import.scm (import-manifest): Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>guix home: import: Call ‘local-file’ with ‘name’</title>
<updated>2021-10-30T22:51:06+00:00</updated>
<author>
<name>Xinglu Chen</name>
<email>public@yoctocell.xyz</email>
</author>
<published>2021-10-30T10:42:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=ea19381bd9405bdb711c36b534e463fc7c8ca949'/>
<id>ea19381bd9405bdb711c36b534e463fc7c8ca949</id>
<content type='text'>
Set the name of the file to just the basename of the file passed to
‘local-file’.

* guix/scripts/home/import.scm (basename+remove-dots): New procedure.
(generate-bash-configuration+modules): Use it.
* tests/home-import.scm (match-home-environment-bash-service): Adjust
accordingly.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Set the name of the file to just the basename of the file passed to
‘local-file’.

* guix/scripts/home/import.scm (basename+remove-dots): New procedure.
(generate-bash-configuration+modules): Use it.
* tests/home-import.scm (match-home-environment-bash-service): Adjust
accordingly.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for ‘guix home import’.</title>
<updated>2021-10-30T22:51:05+00:00</updated>
<author>
<name>Xinglu Chen</name>
<email>public@yoctocell.xyz</email>
</author>
<published>2021-10-30T10:42:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=40acbaf0789d47464062622bef463921556c2235'/>
<id>40acbaf0789d47464062622bef463921556c2235</id>
<content type='text'>
* tests/home-import.scm: New file.
* Makefile.am (SCM_TESTS): Add it.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/home-import.scm: New file.
* Makefile.am (SCM_TESTS): Add it.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
