| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | |
| 21 | |
| 22 | |
| 23 |
|
| 24 | guix shell --version
|
| 25 |
|
| 26 | tmpdir="t-guix-manifest-$$"
|
| 27 | trap 'rm -r "$tmpdir"' EXIT
|
| 28 | mkdir "$tmpdir"
|
| 29 |
|
| 30 | manifest="$tmpdir/manifest.scm"
|
| 31 |
|
| 32 | |
| 33 | guix shell --export-manifest guile-bootstrap > "$manifest"
|
| 34 | test "$(guix build -m "$manifest")" = "$(guix build guile-bootstrap)"
|
| 35 |
|
| 36 | guix shell -m "$manifest" --bootstrap -- \
|
| 37 | "$SHELL" -c 'guix package --export-manifest -p "$GUIX_ENVIRONMENT"' > \
|
| 38 | "$manifest.second"
|
| 39 | for m in "$manifest" "$manifest.second"
|
| 40 | do
|
| 41 | grep -v '^;' < "$m" > "$m.new" |
| 42 | mv "$m.new" "$m"
|
| 43 | done
|
| 44 |
|
| 45 | cat "$manifest"
|
| 46 | cat "$manifest.second"
|
| 47 |
|
| 48 | cmp "$manifest" "$manifest.second"
|
| 49 |
|
| 50 | |
| 51 | guix shell --bootstrap guile-bootstrap -r "$tmpdir/profile" -- \
|
| 52 | guile --version
|
| 53 | test -x "$tmpdir/profile/bin/guile"
|
| 54 | guix shell -p "$tmpdir/profile" --export-manifest > "$manifest.second"
|
| 55 | guix shell --export-manifest guile-bootstrap > "$manifest"
|
| 56 | cat "$manifest.second"
|
| 57 | cmp "$manifest" "$manifest.second"
|
| 58 |
|
| 59 | rm "$tmpdir/profile"
|
| 60 |
|
| 61 | |
| 62 | guix shell --export-manifest -m "$manifest" gash gash-utils \
|
| 63 | > "$manifest.second"
|
| 64 | guix build -m "$manifest.second" -d | \
|
| 65 | grep "$(guix build guile-bootstrap -d)"
|
| 66 | guix build -m "$manifest.second" -d | \
|
| 67 | grep "$(guix build gash -d)"
|
| 68 |
|
| 69 | |
| 70 | guix shell --export-manifest guile guix \
|
| 71 | --with-input=guile-json@3=guile-json > "$manifest"
|
| 72 | grep 'options->transformation' "$manifest"
|
| 73 | grep '(with-input . "guile-json@3=guile-json")' "$manifest"
|
| 74 |
|
| 75 | |
| 76 | guix shell --export-manifest -D guile git > "$manifest"
|
| 77 | grep 'package->development-manifest' "$manifest"
|
| 78 | grep '"guile"' "$manifest"
|
| 79 | guix build -m "$manifest" -d | \
|
| 80 | grep "$(guix build -e '(@@ (gnu packages commencement) gcc-final)' -d)"
|
| 81 | guix build -m "$manifest" -d | \
|
| 82 | grep "$(guix build git -d)"
|
| 83 |
|
| 84 | guix shell --export-manifest -D guile -D python-itsdangerous > "$manifest"
|
| 85 | guix build -m "$manifest" -d | grep "$(guix build libffi -d)"
|
| 86 | guix build -m "$manifest" -d | \
|
| 87 | grep "$(guix build -e '(@ (gnu packages python) python-sans-pip-wrapper)' -d)"
|
| 88 |
|
| 89 | |
| 90 | |
| 91 | for options in \
|
| 92 | "coreutils grep sed" \
|
| 93 | "gsl openblas gcc-toolchain --tune" \
|
| 94 | "guile -m $manifest.previous" \
|
| 95 | "git:send-email gdb guile:debug" \
|
| 96 | "git -D coreutils"
|
| 97 | do
|
| 98 | guix shell --export-manifest $options > "$manifest"
|
| 99 | cat "$manifest"
|
| 100 | guix shell -m "$manifest" -n
|
| 101 | mv "$manifest" "$manifest.previous"
|
| 102 | done
|