Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: feat: Dependencies via Guix #906

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

munen
Copy link
Collaborator

@munen munen commented Dec 1, 2022

yarn test and yarn start work with guix shell -m guix.scm -- bash.

However, these commands will be using yarn from my global setup. When starting guix shell --container --network -m guix.scm -- bash, it will not work, yet, because the used NodeJS version does ship with yarn, but enabling it the NodeJS way requires global write access through corepack enable which is an interesting architecture choice made by the NodeJS team.

@munen munen changed the title feat: Dependencies via Guix Draft: feat: Dependencies via Guix Dec 1, 2022
@ieugen
Copy link

ieugen commented Jan 14, 2023

I'm looking at this and might explore to make it work.
I'm evaluating guix and nix and it is a good opportunity to learn more.

Seems to fail for me with:

Generating package cache for '/gnu/store/2ax9b60d1y1w997lh2gc0vqcv8qf8zx6-profile'...
(values (value "/gnu/store/mfz09h62iqn6lc26l3p9lmksx85gbbys-guix-package-cache/lib/guix/package.cache"))
building path(s) `/gnu/store/dgx28c201r333c4a4f3vc7jh75ya3yvv-profile'
/home/ieugen/proiecte/clojure/organice/guix.scm:15:1: error: packages->manifest: unbound variable
hint: Did you forget `(use-modules (guix profiles))'?

@munen
Copy link
Collaborator Author

munen commented Jan 15, 2023

Then something with your local setup is amiss. The file doesn't do anything fancy, yet, and works fine:

λ ~/src/200ok/organice/ feat/dependencies-via-guix* guix shell -m guix.scm -- bash
hint: Consider passing the `--check' option once to make sure your shell does not clobber
environment variables.

Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... \
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivation will be built:
  /gnu/store/mvd7qsx14sp01yyl69wmwf33z72qnvli-profile.drv
0.7 MB will be downloaded:
  /gnu/store/05pqnww35hglkny4wvhmjv4qb1lqam5q-guix-package-cache
The following profile hooks will be built:
   /gnu/store/22fnbfkfhfgqgmdh6vmlwm93slc6r67y-info-dir.drv
   /gnu/store/6nyzkij7andg3f97halnd6dpvwhsq5vl-emacs-subdirs.drv
   /gnu/store/pcyixwbwypxjq7kgk5w8pb9wv5av4j8n-fonts-dir.drv
   /gnu/store/w2s2w3cx6x43c62wl9a1r2n5w1gkd7cb-ca-certificate-bundle.drv
fetching path `/gnu/store/05pqnww35hglkny4wvhmjv4qb1lqam5q-guix-package-cache'...
Downloading https://ci.guix.gnu.org/nar/lzip/05pqnww35hglkny4wvhmjv4qb1lqam5q-guix-package-cache...
 guix-package-cache  655KiB           1.2MiB/s 00:01 [##################] 100.0%

building path(s) `/gnu/store/30znajsip0k1vzi40z9p5rrhjqprzq0g-ca-certificate-bundle'
building path(s) `/gnu/store/5yd45qnqvb0axh4ipbrmpz5r0xgn2j3c-emacs-subdirs'
building path(s) `/gnu/store/v7d4vri1vwjxxqzrp0adb2y1n9qn8h9k-fonts-dir'
building path(s) `/gnu/store/z84f44fh02nr16kznpil389fs4fsq3s9-info-dir'
building path(s) `/gnu/store/n7qm0srjbmraaaswjdibck0f455lymjs-profile'
The following derivation will be built:
  /gnu/store/wbyc9vjxjdbr7mknfrya76jd3q1q3501-profile.drv

applying 2 grafts for node-14.19.3 ...
building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
building directory of Info manuals...
building profile with 6 packages...

I'm running a semi-recent version of Guix:

guix --version
guix (GNU Guix) 9a1ad4a2a0d5491ad150a207c0293da6bd4fd2ab

@munen munen added good first issue Good for newcomers help wanted Extra attention is needed labels Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants