From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: getting started with guix import nix Date: Wed, 14 Dec 2016 00:37:13 +0100 Message-ID: <87oa0fjt92.fsf@gnu.org> References: <1481632579.2545.11.camel@tourbillion-technology.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGwdM-0007WS-Cj for help-guix@gnu.org; Tue, 13 Dec 2016 18:37:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGwdI-00029X-4Q for help-guix@gnu.org; Tue, 13 Dec 2016 18:37:20 -0500 In-Reply-To: <1481632579.2545.11.camel@tourbillion-technology.com> (Paul Garlick's message of "Tue, 13 Dec 2016 12:36:19 +0000") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Paul Garlick Cc: help-guix@gnu.org Hello! Paul Garlick skribis: > I am attempting to package the OpenCASCADE-OCE library for Guix using > the Nix opencascade_oce package as a starting point. =C2=A0I have a stand= ard > Guix installation, a standard Nix installation plus the Guix source to > work on separately. =C2=A0opencascade_oce is not installed in the Nix sto= re. > =C2=A0The Nix setup is: > > $ echo $NIX_PATH > nixpkgs=3D/home/paul/.nix-defexpr/channels/nixpkgs > > $ which nix-instantiate > /home/paul/.nix-profile/bin/nix-instantiate > > I try: > > $=C2=A0export NIX_REMOTE=3Ddaemon > $ ./pre-inst-env guix import nix $HOME/.nix-defexpr/channels/nixpkgs > opencascade_oce You=E2=80=99re doing it right. Here I get: --8<---------------cut here---------------start------------->8--- $ NIX_REMOTE=3Ddaemon ./pre-inst-env guix import nix /data/src/nixpkgs/ ope= ncascade_oce ;;; SSAX warning: Skipping PI: xml trace: lib.zip is deprecated, use lib.zipAttrsWith instead trace: `mkStrict' is obsolete; use `mkOverride 0' instead. trace: `types.list' is deprecated; use `types.listOf' instead ;; converted from /data/src/nixpkgs/pkgs/development/libraries/opencascade/= oce.nix:5 (package (name "opencascade-oce") (version "0.16") (source (origin (method url-fetch) (uri (string-append "https://github.com/tpaviot/oce/archive/OCE-" version ".tar.gz")) (sha256 (base32 "05bmg1cjz827bpq8s0hp96byirm4c3zc9vx26qz76kjsg8ry87w4")))) (build-system gnu-build-system) (inputs `(("cmake" ,cmake) ("freetype" ,freetype) ("ftgl" ,ftgl) ("qt" ,qt) ("libtool" ,libtool) ("libXmu" ,libXmu) ("file" ,file) ("tk" ,tk) ("tcl" ,tcl) ("mesa" ,mesa))) (home-page "http://www.opencascade.org/") (synopsis "Open CASCADE Technology, libraries for 3D modeling and numerical simul= ation") (description #f) (license #f)) $ git describe v0.11.0-3412-ge8a463e $ (cd /data/src/nixpkgs/ ; git describe) release-16.03-start-8750-gdde259d --8<---------------cut here---------------end--------------->8--- > i get: > > ;;; SSAX warning: Skipping PI: xml > > trace: lib.zip is deprecated, use lib.zipAttrsWith instead > trace: `mkStrict' is obsolete; use `mkOverride 0' instead. > Backtrace: > In guix/import/snix.scm: > =C2=A0190: 19 [loop # () #f (() . # pairs>)] > =C2=A0190: 18 [loop # () ...] > =C2=A0190: 17 [loop # () #f (() . # pairs>)] > =C2=A0190: 16 [loop # () ...] > =C2=A0190: 15 [loop # () #f (() . # pairs>)] > =C2=A0190: 14 [loop # () ...] > =C2=A0190: 13 [loop # () #f (() . # pairs>)] > =C2=A0190: 12 [loop # () ...] > =C2=A0190: 11 [loop # () #f (() . # pairs>)] > =C2=A0190: 10 [loop # () ...] > =C2=A0190: 9 [loop # () #f (() . # pairs>)] > =C2=A0190: 8 [loop # () #f (() . # pairs>)] > =C2=A0190: 7 [loop # () #f (() . # pairs>)] > =C2=A0190: 6 [handle-start-tag function # ...] > In sxml/upstream/SSAX.scm: > 1523: 5 [# port elems entities namespaces)> function ...] > 1246: 4 [# entities)> # ...] > 1190: 3 [read-attrib-value #\" # () ()] > In sxml/ssax/input-parse.scm: > =C2=A0103: 2 [next-token () (#\" #\space #\newline ...) ...] > In ice-9/rdelim.scm: > =C2=A0 88: 1 [read-delimited "\" \n\t\r<&" # pee= k] > In unknown file: > =C2=A0=C2=A0=C2=A0?: 0 [%read-delimited! "\" \n\t\r<&" ...] > > ERROR: In procedure %read-delimited!: > ERROR: Throw to key `vm-error' with args `(vm-run "VM: Stack overflow" It may be that we=E2=80=99re not getting the same XML output from =E2=80=98nix-instantiate=E2=80=99 and that somehow confuses the XML parser = in your case. To investigate, you=E2=80=99d need to run the same =E2=80=98nix-instantiate= =E2=80=99 command that snix.scm invokes, same its XML output, and then try parsing it with =E2=80=98xml->sxml=E2=80=99 from (sxml simple). HTH! Ludo=E2=80=99.