all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Any clue why $GUILE_LOAD_PATH not propagated with Haunt?
@ 2016-02-10  2:11 Christopher Allan Webber
  2016-02-10  3:13 ` Christopher Allan Webber
  0 siblings, 1 reply; 8+ messages in thread
From: Christopher Allan Webber @ 2016-02-10  2:11 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 2657 bytes --]

Hello all,

Since 8sync became a GNU project (yay!) I figured I should actually put
a website together, and well... what better time to bust out Haunt?

I wanted to make use of the Skribe reader, so I figured I'd make use of
guix environment.  Unfortunately, the file I put together doesn't work.
The puzzling part?  Even though $PATH is propagated, $GUILE_LOAD_PATH is
not!

  bash-4.3$ guix environment -l guix.scm --pure
  bash-4.3$ haunt build
  Backtrace:
  3598: 2 [#<procedure 25b1d00 at ice-9/boot-9.scm:3597:25 (mif-args)> ((haunt ui))]
  2867: 1 [resolve-interface (haunt ui) #:select ...]
  In unknown file:
     ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (haunt ui)) #f]
  
  ERROR: In procedure scm-error:
  ERROR: no code for module (haunt ui)
  
  bash-4.3$ echo $PATH
  /gnu/store/0m1wh7i21w6x6agjard3x1bd53y6h1b4-tar-1.28/bin:/gnu/store/8qcqrz4r483vbcbwx5xzy11kdkxqv0c8-gzip-1.6/bin:/gnu/store/mpgci6nb800ckc8cyi3vhm9i8h17zm2l-bzip2-1.0.6/bin:/gnu/store/kz4vzwnm7vdnxbfb3ygc91iv68rjsfmm-xz-5.2.2/bin:/gnu/store/iw4xjh2fx7lbil7m7yghz7yyrf6ks8pq-file-5.25/bin:/gnu/store/gg7yl3al4ms4p9z67k1r7k0jn918l864-diffutils-3.3/bin:/gnu/store/1g9bd3ccfpslgirikaw7wcdrspavz2xz-patch-2.7.5/bin:/gnu/store/4jmy669vqj2zkz03z6jrk26if2y2m6ad-sed-4.2.2/bin:/gnu/store/z6780v4ix4h1id452gnhl9p15rl3rx9y-findutils-4.6.0/bin:/gnu/store/c2ci62qwp62rcpbh9qgmmlyvgszvf8yn-gawk-4.1.3/bin:/gnu/store/iy9a4pk184ipkd470rvssx26rrnl2c5c-grep-2.22/bin:/gnu/store/wczs2ckr8y0m79h3nl199lx85vmidga3-coreutils-8.24/bin:/gnu/store/l1iq0lhklsiw7q7jhlw9cgdkcm6axd38-make-4.1/bin:/gnu/store/l7px210li6zviymgvp3cps6n48x7fgpl-bash-4.3.42/bin:/gnu/store/agnxzx1yza8ci0a1gz5pds8gdg8qmnz5-ld-wrapper-0/bin:/gnu/store/dki0v5cvf1mhfz571k622xvzi1nyinl2-binutils-2.25.1/bin:/gnu/store/gz9h7bicwcx3qbvnp0xgpvh50q5l104b-gcc-4.9.3/bin:/gnu/store/gybk6iz6n659njzg56vqsy5bg7irk370-glibc-2.22/bin:/gnu/store/gybk6iz6n659njzg56vqsy5bg7irk370-glibc-2.22/sbin:/gnu/store/0sb1rkqbyj2ys7f9w48kxlhalg1qz5l3-haunt-0.1/bin:/home/cwebber/bin:/home/cwebber/.gem/ruby/1.8/bin:/home/cwebber/.local/bin:/home/cwebber/.cabal/bin
  bash-4.3$ echo $GUILE_LOAD_PATH
  
  bash-4.3$ 

(... yeah I know I ought to remove that PATH modification stuff from my
.bashrc ...)

The funny thing is, if I do the same with Sly's guix.scm, everything
works well:

bash-4.3$ guix environment -l guix.scm --pure
bash-4.3$ echo $GUILE_LOAD_PATH
/gnu/store/l3flpq5s2wyvyqdwi7y1qzcmdy1h878h-guile-sdl2-0.1.0/share/guile/site/2.0:/gnu/store/l5b4ny6288f2xbd5cl211s3jcy87sj99-guile-opengl-0.1.0/share/guile/site/2.0

So maybe I'm doing something wrong?  Ideas?  File attached!


[-- Attachment #2: guix.scm --]
[-- Type: application/octet-stream, Size: 2595 bytes --]

;;; Haunt --- Static site generator for GNU Guile
;;; Copyright © 2015 David Thompson <davet@gnu.org>
;;;
;;; This file is part of Haunt.
;;;
;;; Haunt is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or
;;; (at your option) any later version.
;;;
;;; Haunt is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;;; General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with Haunt.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:
;;
;; GNU Guix development package.  To build and install, run:
;;
;;   guix package -f guix.scm
;;
;; To use as the basis for a development environment, run:
;;
;;   guix environment -l guix.scm
;;
;;; Code:

(use-modules (guix packages)
             (guix licenses)
             (guix git-download)
             (guix build-system gnu)
             (gnu packages)
             (gnu packages autotools)
             (gnu packages guile)
             (gnu packages texinfo))

(define haunt-from-git
  (package
    (name "haunt")
    (version "0.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "git://dthompson.us/haunt.git")
                    (commit "5b09c3c")))
              (sha256
               (base32
                "1vhrwa8r2gb0jck7d6bj7bx3dazpapw2399q0sh8g8i7hs06kcyx"))))
    (build-system gnu-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'bootstrap
           (lambda _ (zero? (system* "sh" "bootstrap")))))))
    (native-inputs
     `(("autoconf" ,autoconf)
       ("automake" ,automake)
       ("texinfo" ,texinfo)))
    (inputs
     `(("guile" ,guile-2.0)))
    (propagated-inputs
     `(("guile-reader" ,guile-reader)))
    (synopsis "Functional static site generator")
    (description "Haunt is a static site generator written in Guile
Scheme.  Haunt features a functional build system and an extensible
interface for reading articles in any format.")
    (home-page "http://haunt.dthompson.us")
    (license gpl3+)))


(package
  (name "8sync-website")
  (version "git")
  (source #f)
  (build-system gnu-build-system)
  (synopsis #f)
  (description #f)
  (license #f)
  (home-page #f)
  (propagated-inputs
   `(("haunt" ,haunt-from-git))))

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-23 17:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10  2:11 Any clue why $GUILE_LOAD_PATH not propagated with Haunt? Christopher Allan Webber
2016-02-10  3:13 ` Christopher Allan Webber
2016-02-10 14:17   ` Ludovic Courtès
2016-02-10 14:25     ` Thompson, David
2016-02-11 22:40       ` Ludovic Courtès
2016-02-12 15:35         ` Thompson, David
2016-02-14 23:03           ` Christopher Allan Webber
2016-02-23 17:13           ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.