unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Paul Garlick <pgarlick@tourbillion-technology.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: getting started with guix import nix
Date: Mon, 19 Dec 2016 16:08:22 +0000	[thread overview]
Message-ID: <1482163702.2438.23.camel@tourbillion-technology.com> (raw)
In-Reply-To: <87mvfs8d9l.fsf@gnu.org>

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

Hi Ludo,
> > 
> > I have noticed that the non-termination problem is not confined to
> > the
> > opencascage_oce package. If I try 
> > 
> > $ nix-instantiate --strict --eval --xml -A guile
> > /home/paul/.nix-defexpr/channels/nixpkgs
> > 
> > that does not terminate either.
> Does it just take long, or does it simply not terminate?
After a few (approximately five) minutes the process is still producing
xml.  Looking at the output, after killing the process, there is a
large amount of blank space plus the occasional line of xml, such as:
<function column="15" line="47"
path="/nix/store/k3jqgxqfwg6q9bgkys63c25lbjprl3gq-nixpkgs-
17.03pre96825.497e6d2/nixpkgs/lib/types.nix">
> 
> $ nix-instantiate --version
> nix-instantiate (Nix) 1.11.2
> 
> 

For my nix installation:
$ nix-instantiate --version
nix-instantiate (Nix) 1.11.4
Also, I have cloned the nixpkgs repository so that I can change the
version more easily.  To set the nixpkgs directory to be the same
version as the version you are using:
$ git checkout dde259d
Then I get the same output:
$ export NIX_REMOTE=daemon
$ ./pre-inst-env guix import nix /data/paul/sourceCode/nixpkgs
opencascade_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/paul/sourceCode/nixpkgs/pkgs/development/libraries/opencascade/oc
e.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
simulation")
  (description #f)
  (license #f))
paul$ cat
/data/paul/sourceCode/nixpkgs/pkgs/development/libraries/opencascade/oc
e.nix
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, cmake, libtool, qt4,
ftgl, freetype}:
stdenv.mkDerivation rec {
  name = "opencascade-oce-0.16";
  src = fetchurl {
    url = https://github.com/tpaviot/oce/archive/OCE-0.16.tar.gz;
    sha256 = "05bmg1cjz827bpq8s0hp96byirm4c3zc9vx26qz76kjsg8ry87w4";
  };
  buildInputs = [ mesa tcl tk file libXmu libtool qt4 ftgl freetype
cmake ];
  preConfigure = ''
    cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
  '';
  # https://bugs.freedesktop.org/show_bug.cgi?id=83631
  NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
  enableParallelBuilding = true;
  meta = {
    description = "Open CASCADE Technology, libraries for 3D modeling
and numerical simulation";
    homepage = http://www.opencascade.org/;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}
This is almost usable, except the version of the file oce.nix has
changed since the dde259d commit.  Also, it may be nix-instantiate does
not terminate for many other packages in recent versions of nixpkgs.
Best,
Paul.

[-- Attachment #2: Type: text/html, Size: 5892 bytes --]

  reply	other threads:[~2016-12-19 16:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13 12:36 getting started with guix import nix Paul Garlick
2016-12-13 23:37 ` Ludovic Courtès
2016-12-14 16:53   ` Paul Garlick
2016-12-15 12:33   ` Paul Garlick
2016-12-19  9:43     ` Ludovic Courtès
2016-12-19 16:08       ` Paul Garlick [this message]
2016-12-19 20:56         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1482163702.2438.23.camel@tourbillion-technology.com \
    --to=pgarlick@tourbillion-technology.com \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).