From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Garlick Subject: Re: getting started with guix import nix Date: Mon, 19 Dec 2016 16:08:22 +0000 Message-ID: <1482163702.2438.23.camel@tourbillion-technology.com> References: <1481632579.2545.11.camel@tourbillion-technology.com> <87oa0fjt92.fsf@gnu.org> <1481805189.2840.16.camel@tourbillion-technology.com> <87mvfs8d9l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-NyVJWRDGb4Xt0RZ33Po5" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJ0UK-0003eW-CQ for help-guix@gnu.org; Mon, 19 Dec 2016 11:08:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJ0UI-0001Hq-MV for help-guix@gnu.org; Mon, 19 Dec 2016 11:08:32 -0500 In-Reply-To: <87mvfs8d9l.fsf@gnu.org> 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: Ludovic =?ISO-8859-1?Q?Court=E8s?= Cc: help-guix@gnu.org --=-NyVJWRDGb4Xt0RZ33Po5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: > > $ 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. --=-NyVJWRDGb4Xt0RZ33Po5 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Ludo,


<= blockquote type=3D"cite">
I have noticed that the non-termination problem is not confined to the opencascage_oce package. If I try=20 $ 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) min= utes the process is still producing xml.  Looking at the output, after= killing the process, there is a large amount of blank space plus the occas= ional line of xml, such as:

<function column=3D= "15" line=3D"47" path=3D"/nix/store/k3jqgxqfwg6q9bgkys63c25lbjprl3gq-nixpkg= s-17.03pre96825.497e6d2/nixpkgs/lib/types.nix">



$ nix-instantiate --version
nix-instantiate (Nix) 1.11.2


For my nix installation:
<= br>
$ nix-instantiate --version
nix-instantiate (Nix) 1= .11.4

Also, I have cloned the nixpkgs repository s= o that I can change the version more easily.  To set the nixpkgs direc= tory to be the same version as the version you are using:

$ git checkout dde259d

Then I get the= same output:

$ export NIX_REMOTE=3Ddaemon
$ ./pre-inst-env guix import nix /data/paul/sourceCode/nixpkgs= opencascade_oce

;;; SSAX warning: Skipping PI: xm= l

trace: lib.zip is deprecated, use lib.zipAttrsWi= th instead
trace: `mkStrict' is obsolete; use `mkOverride 0' inst= ead.
trace: `types.list' is deprecated; use `types.listOf' instea= d
;; converted from /data/paul/sourceCode/nixpkgs/pkgs/developmen= t/libraries/opencascade/oce.nix:5

(package
  (name "opencascade-oce")
  (version "0.16")
<= div>  (source
    (origin
&nbs= p;     (method url-fetch)
  &n= bsp;   (uri (string-append
    = ;         "https://github.com/tpaviot/oce/archive/= OCE-"
         &= nbsp;   version
     &nbs= p;       ".tar.gz"))
 &nb= sp;    (sha256
     =    (base32
      &nb= sp;   "05bmg1cjz827bpq8s0hp96byirm4c3zc9vx26qz76kjsg8ry87w4"= ))))
  (build-system gnu-build-system)
  (inp= uts
    `(("cmake" ,cmake)
 &n= bsp;    ("freetype" ,freetype)
  &n= bsp;   ("ftgl" ,ftgl)
    &nbs= p; ("qt" ,qt)
      ("libtool"= ,libtool)
      ("libXmu" ,libXmu)=
      ("file" ,file)
&nb= sp;     ("tk" ,tk)
   &nb= sp;  ("tcl" ,tcl)
      (= "mesa" ,mesa)))
  (synopsis
    "Open CASCADE Technology, libraries for 3D mo= deling and numerical simulation")
  (description #f)
  (license #f))
paul$ cat /data/paul/sourceCode/nixpkgs/p= kgs/development/libraries/opencascade/oce.nix
{stdenv, fetchurl, = mesa, tcl, tk, file, libXmu, cmake, libtool, qt4,
ftgl, freetype}= :

stdenv.mkDerivation rec {
  name = =3D "opencascade-oce-0.16";
  src =3D fetchurl {
    sha256 =3D "05bmg1cjz827bpq8s0hp9= 6byirm4c3zc9vx26qz76kjsg8ry87w4";
  };

<= div>  buildInputs =3D [ mesa tcl tk file libXmu libtool qt4 ftgl freet= ype cmake ];

  preConfigure =3D ''
=     cmakeFlags=3D"$cmakeFlags -DOCE_INSTALL_PREFIX=3D$o= ut"
  '';

  NIX_CFLAGS_COMPILE =3D "-DG= LX_GLXEXT_LEGACY";

  enableParallelBuilding = =3D true;

  meta =3D {
  =   description =3D "Open CASCADE Technology, libraries for 3D mode= ling and numerical simulation";
    homepage = =3D http://www.opencascade.org/= ;
    maintainers =3D with stdenv.lib.maintai= ners; [viric];
    platforms =3D with stdenv.= lib.platforms; linux;
  };
}

<= div>This is almost usable, except the version of the file oce.nix has chang= ed since the dde259d commit.  Also, it may be nix-instantiate does not= terminate for many other packages in recent versions of nixpkgs.
Best,

Paul.
--=-NyVJWRDGb4Xt0RZ33Po5--