Re: [Nix-dev] Update Julia to today's git

2013-05-21 Thread Oscar Blumberg
Yes those fetchurl are my mistake and weren't used in the build anyway.
I've however made it to use_system_mpfr and removed the useless fetchs
(including the pcre source one which doesn't seem used).
To do so I had to bump the mpfr version to 3.1.2.
Patch attached. I'll be sure to setup a github fork soon.

 In trunk it is better to have two versions of MPFR, I think. GCC depends
 on MPFR, so having two versions of MPFR is acceptable, but altering the
 default MPFR version just because of Julia is a bad idea.



I realize now that not everyone may want to do the full rebuild (gcc,
coreutils, ...) I got by updating mpfr. The good way of doing this would
then be to :
- add the new mpfr .nix as 3.1.2.nix and restore the original default.nix
- in the julia expresion replace the references to mpfr by mpfr-3.1.2
The other way would be to let julia build the newer mpfr on each rebuild.
Please correct me if I'm wrong.

Thanks

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Update Julia to today's git

2013-05-21 Thread Michael Raskin
Yes those fetchurl are my mistake and weren't used in the build anyway.
I've however made it to use_system_mpfr and removed the useless fetchs
(including the pcre source one which doesn't seem used).
To do so I had to bump the mpfr version to 3.1.2.
Patch attached. I'll be sure to setup a github fork soon.

 In trunk it is better to have two versions of MPFR, I think. GCC depends
 on MPFR, so having two versions of MPFR is acceptable, but altering the
 default MPFR version just because of Julia is a bad idea.

I realize now that not everyone may want to do the full rebuild (gcc,
coreutils, ...) I got by updating mpfr. The good way of doing this would
then be to :
- add the new mpfr .nix as 3.1.2.nix and restore the original default.nix
- in the julia expresion replace the references to mpfr by mpfr-3.1.2
The other way would be to let julia build the newer mpfr on each rebuild.
Please correct me if I'm wrong.

Yes, you are right, and the first option seems our usual way.



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Update Julia to today's git

2013-05-20 Thread Oscar Blumberg
I'm completely new to Nix so I apologize in advance if this is not the
right place.
I installed NixOs yesterday and I needed a recent version of Julia
(julialang.org) and figured it would be a good way to try out Nix.

Here is a patch to nixpkgs that brings julia to today's git
(ea277f39ebdf730aabfc422af66e911288380921) and its dependencies to the
needed version (liblapack:3.4.2, suitesparse:4.2.0, openblas:0.2.6).
Can someone have a look ?

 Did you try to make at least libunwind taken from the dependencies?
 Julia has many dependencies and wants to build them itself, but for some
 of them I managed to make Julia take prebuilt ones. If you tried and
 failed to use prebuilt versions of libunwind (and maybe suitesparse),
 I won't try to change it; otherwise it seems worth it to try.



Yes those fetchurl are my mistake and weren't used in the build anyway.
I've however made it to use_system_mpfr and removed the useless fetchs
(including the pcre source one which doesn't seem used).
To do so I had to bump the mpfr version to 3.1.2.
Patch attached. I'll be sure to setup a github fork soon.

Regards,
Oscar


julia-git-20130520.2.patch
Description: Binary data
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Update Julia to today's git

2013-05-20 Thread Michael Raskin
Yes those fetchurl are my mistake and weren't used in the build anyway.
I've however made it to use_system_mpfr and removed the useless fetchs
(including the pcre source one which doesn't seem used).
To do so I had to bump the mpfr version to 3.1.2.
Patch attached. I'll be sure to setup a github fork soon.

In trunk it is better to have two versions of MPFR, I think. GCC depends
on MPFR, so having two versions of MPFR is acceptable, but altering the
default MPFR version just because of Julia is a bad idea.



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Update Julia to today's git

2013-05-19 Thread Oscar Blumberg
Hi,

I'm completely new to Nix so I apologize in advance if this is not the
right place.
I installed NixOs yesterday and I needed a recent version of Julia
(julialang.org) and figured it would be a good way to try out Nix.

Here is a patch to nixpkgs that brings julia to today's git
(ea277f39ebdf730aabfc422af66e911288380921) and its dependencies to the
needed version (liblapack:3.4.2, suitesparse:4.2.0, openblas:0.2.6).
Can someone have a look ?

Thanks!

Oscar

julia-git-20130520.patch
Description: Binary data
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Update Julia to today's git

2013-05-19 Thread Marc Weber
Hi Oscar Blumberg,

Looks fine to me. Because I'm sure you'll I've updated the wiki
talking about how to create a pull request:
https://nixos.org/wiki/Pull_request

Or wait till somebody picks the patch and commits it.

If you have trouble with anything try joining #nixos at irc.freenode.net

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Update Julia to today's git

2013-05-19 Thread Michael Raskin
I'm completely new to Nix so I apologize in advance if this is not the
right place.
I installed NixOs yesterday and I needed a recent version of Julia
(julialang.org) and figured it would be a good way to try out Nix.

Here is a patch to nixpkgs that brings julia to today's git
(ea277f39ebdf730aabfc422af66e911288380921) and its dependencies to the
needed version (liblapack:3.4.2, suitesparse:4.2.0, openblas:0.2.6).
Can someone have a look ?

Did you try to make at least libunwind taken from the dependencies? 
Julia has many dependencies and wants to build them itself, but for some
of them I managed to make Julia take prebuilt ones. If you tried and 
failed to use prebuilt versions of libunwind (and maybe suitesparse),
I won't try to change it; otherwise it seems worth it to try.



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev