Method 2: Add the Diamond Guix channel to the Guix configuration.
You can also add the Diamond Guix channel to your local Guix configuration. This makes Diamond packages available alongside the standard GNU Guix packages without using guix time-machine.
Create the file ~/.config/guix/channels.scm and add the following content:
;; Add DIAMOND packages to those provided by GNU Guix.(cons (channel(name'guix-channel)(url"https://gricad-gitlab.univ-grenoble-alpes.fr/diamond/guix/guix-channel.git"))%default-channels)
Then update your package list:
guix pull
This command updates both the standard GNU Guix packages and the Diamond packages.
Caution
Once guix pull is complete, it is important to run the following commands to ensure that you are using the latest guix command:
This starts a clean environment containing all packages listed in the manifest.
Using guix time-machine
Some applications require specific versions of dependencies. If you have updated your packages with guix pull, you may have newer versions that are incompatible with the software you want to use. The guix time-machine command allows you to use an older Guix package collection by restoring previous channels states. Diamond provides the channels-stable.scm file in
apptainer-singularity-projects repository, which pins compatible versions of all required dependencies. This allows Diamond packages to be used reliably.
For example, to create an environment containing quantum-espresso and OpenMPI:
This creates a reproducible environment with the correct package and dependence versions.
YouTube Cookies Consent. To watch this video, you need to accept YouTube cookies (hosted via youtube-nocookie.com: enhanced privacy mode).
Cookies consent policy This site uses cookies to measure audience (Google Analytics) and to display our embedded video tutorials (YouTube). Videos are displayed via youtube-nocookie.com (enhanced privacy mode), but YouTube may still set certain cookies when the videos are played. Note: if you refuse, tutorial videos will be blocked. However, you will be able to change your choice later when attempting to watch a video. Please refer to Google's Privacy Policy for more information.