From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: guile ERROR: Unbound variable: sha256 Date: Mon, 27 Oct 2014 05:58:12 +0100 Message-ID: <20141027045812.GA22505@thebird.nl> References: <20140504175144.GA28798@thebird.nl> <87wqe0ps8d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XicOB-00053C-E2 for guix-devel@gnu.org; Mon, 27 Oct 2014 00:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XicO6-00085R-A8 for guix-devel@gnu.org; Mon, 27 Oct 2014 00:58:43 -0400 Content-Disposition: inline In-Reply-To: <87wqe0ps8d.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel Hi Ludo, I suspect this was introduced with bags. When I use below Guile instruct= ion running from the CLI I get $2 =3D # scheme@(guile-user)> (package-derivation s python) ERROR: In procedure memoize-variable-access!: ERROR: Unbound variable: sha256 scheme@(guile-user) [1]> ,bt In guix/packages.scm: 584:14 17 (cache # "x86_64-linux" #) 686:6 16 (bag->derivation # #< name= : "python-3.3.5" system: "...> #) In srfi/srfi-1.scm: 578:27 15 (map # (("source" #) ...)) In guix/packages.scm: 640:16 14 (expand-input # # ...) 473:19 13 (package-source-derivation # #<= origin "https://www.python...> #) In guix/download.scm: 206:4 12 (url-fetch # "https://www.pytho= n.org/ftp/python/3.3.5/Pyt..." ...) In guix/packages.scm: 584:14 11 (cache # "x86_64-linux" #) 686:6 10 (bag->derivation # #< name= : "guile-2.0.11" system: "...> #) In srfi/srfi-1.scm: 578:27 9 (map # (("source" #) ...)) In guix/packages.scm: 640:16 8 (expand-input # # ...) In guix/download.scm: 206:4 7 (url-fetch # "mirror://gnu/guil= e/guile-2.0.11.tar.xz" sha256 ...) In guix/packages.scm: 584:14 6 (cache # "x86_64-l..." #) In ice-9/eval.scm: 411:25 5 (eval # <0>))) (let ((_ (add-text-to-= store <22> (string-append ...> #) 411:25 4 (eval #...> #) In guix/utils.scm: 426:27 3 (derivation-hash # 2af8dc0>) In ice-9/eval.scm: 386:9 2 (eval #utf8 (derivation->string <= 0>)))> (# . #)) 393:14 1 (eval # (# 2af8d70> () = (("out" . "")) (("out" . "")) . #)) In unknown file: 0 (memoize-variable-access! # #) On Mon, May 05, 2014 at 10:03:30AM +0200, Ludovic Court=E8s wrote: > It may be helpful to have a ???ruby-build-system???, akin to > ???python-build-system??? but with the right incantations (info "(guix) > Build Systems"). >=20 > > Do we have a HOWTO on how to run expressions in the Guile debugger? > > Never used that and would like to see how individual statements > > evaluate in LISP. >=20 > Basically there are two approaches. From the command line, like this: >=20 > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guile > GNU Guile 2.0.11.20-4338f > Copyright (C) 1995-2014 Free Software Foundation, Inc. >=20 > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. >=20 > Enter `,help' for help. > scheme@(guile-user)> ,use (gnu packages python) > scheme@(guile-user)> ,use (guix) > scheme@(guile-user)> (define s (open-connection)) > scheme@(guile-user)> python > $1 =3D # > scheme@(guile-user)> (package-derivation s python) > $2 =3D # /gnu/store/ij8xgynicdmnzb7pzmyb6bqi17s0ll3y-python-3.3.5 3= f4fdc0> > scheme@(guile-user)> (build-derivations s (list $2)) > $3 =3D #t > --8<---------------cut here---------------end--------------->8--- >=20 > But the best thing, if you use Emacs, is to use Geiser, as noted in > ???HACKING???. In addition to a REPL, it brings stuff like autodoc, > jump-to-definition, expression evaluation from the buffer, etc. >=20 > > I am really impressed with GUIX, and I think it is a no-brainer to us= e > > a real functional programming language for this. Thanks Ludo and > > others! I just wish I could use GUIX on servers where I don't have (= and > > won't get) root access. Or is there a way? With Nix I could run as a > > normal user. >=20 > It???s the same as Nix, which means that if the daemon cannot run as ro= ot, > then it???s usable in a ???degraded??? mode (info "(guix) Build Environ= ment > Setup"). >=20 > HTH, > Ludo???. >=20