[Nix-dev] Proper way to handle OpenGL applications

2014-06-13 Thread Mateusz Kowalczyk
Hi, I notice inconsistent behaviour between my root and user accounts when it comes to OpenGL. I'm using the nvidia proprietary driver with GTX 650 but I noticed this in the past with an Intel chip. If I put a package in my configuration.nix, nixos-rebuild switch and then try to use this package

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Shea Levy
> On Jun 13, 2014, at 12:54, Eelco Dolstra wrote: > > Hi, > >> On 13/06/14 08:12, Ertugrul Söylemez wrote: >> >> The path-rewriting proposal is a very bad idea and will cause a lot of >> breakage. For many/enough applications rewriting will not work at all, >> because they might encode paths

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Eelco Dolstra
Hi, On 13/06/14 08:12, Ertugrul Söylemez wrote: > The path-rewriting proposal is a very bad idea and will cause a lot of > breakage. For many/enough applications rewriting will not work at all, > because they might encode paths in data structures or be using a > non-UTF8 multi-byte encoding. Pa

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Mateusz Kowalczyk
On 06/13/2014 06:38 PM, Kirill Elagin wrote: > P.S. I have 14.10pre44331.25351dd here. > > > -- > Кирилл Елагин > > > On Fri, Jun 13, 2014 at 8:37 PM, Kirill Elagin wrote: > >> I get 1h8s… on my PC, so you should probably check the version of nixpkgs >> checkout and all that stuff. >> I have

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Kirill Elagin
P.S. I have 14.10pre44331.25351dd here. -- Кирилл Елагин On Fri, Jun 13, 2014 at 8:37 PM, Kirill Elagin wrote: > I get 1h8s… on my PC, so you should probably check the version of nixpkgs > checkout and all that stuff. > I have no idea why one can get different caches, but I hope that stdenv >

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Kirill Elagin
I get 1h8s… on my PC, so you should probably check the version of nixpkgs checkout and all that stuff. I have no idea why one can get different caches, but I hope that stdenv can't mutate depending on kernel version etc… -- Кирилл Елагин On Fri, Jun 13, 2014 at 8:25 PM, Mateusz Kowalczyk wrote

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Mateusz Kowalczyk
On 06/13/2014 06:06 PM, Kirill Elagin wrote: > If I got it right, you just create exactly the same environment on your own > box with nix store wherever you like (its location is controlled by > NIX_STORE_DIR) and build everything from source, thus you get binaries with > custom path to the store h

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Kirill Elagin
As someone said earlier, the commands are `nix-store --import` and `nix-store --export`. -- Кирилл Елагин On Fri, Jun 13, 2014 at 8:06 PM, Kirill Elagin wrote: > If I got it right, you just create exactly the same environment on your > own box with nix store wherever you like (its location is

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Kirill Elagin
If I got it right, you just create exactly the same environment on your own box with nix store wherever you like (its location is controlled by NIX_STORE_DIR) and build everything from source, thus you get binaries with custom path to the store hard-wired. Then you copy those to your target machine

Re: [Nix-dev] About packages update with nix

2014-06-13 Thread Mateusz Kowalczyk
On 06/13/2014 03:58 PM, Kirill Elagin wrote: > http://nixos.org/nixos/manual/#sec-upgrading > > Basically, you just subscribe to unstable channel and get new packages with > a few days delay (Hydra is being somewhat moody now). > > > -- > Кирилл Елагин > > > On Fri, Jun 13, 2014 at 5:13 PM, Pi

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Mateusz Kowalczyk
On 06/13/2014 02:33 PM, Vladimír Čunát wrote: > On 06/13/2014 02:19 PM, Andreas Herrmann wrote: >> Given a case where you can't get the admin to give you `/nix`, and where >> you have space/compute constraints on the target, would it be possible >> to create the full nix install on your own local m

Re: [Nix-dev] About packages update with nix

2014-06-13 Thread Kirill Elagin
Releases basically follow Ubuntu's scheme (you might have guessed that from the latest version 14.04), that is, twice a year. There is no special policy regarding _versions of software_ in master but I wouldn't say you can find lots of alpha/beta versions of packges there. You might want to check

Re: [Nix-dev] About packages update with nix

2014-06-13 Thread Kirill Elagin
http://nixos.org/nixos/manual/#sec-upgrading Basically, you just subscribe to unstable channel and get new packages with a few days delay (Hydra is being somewhat moody now). -- Кирилл Елагин On Fri, Jun 13, 2014 at 5:13 PM, Pierre de Boisset wrote: > Hello all of you, > > I'm getting intere

[Nix-dev] About packages update with nix

2014-06-13 Thread Pierre de Boisset
Hello all of you, I'm getting interested more and more into both that package manager and that GNU distribution. I come from Arch/Linux, and actually one of my concerns is about update pace. Arch Linux ensures rolling releases so we can enjoy the latest software versions few hours up to few days

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Vladimír Čunát
On 06/13/2014 02:58 PM, Michael Raskin wrote: I think it is called fakechroot¿ There is also fakechrootng, which is slow. Ah, fakechrooting to your $HOME might actually be usable. You'll still miss a few important paths in there, though, like /proc, etc. Vlada smime.p7s Description: S/M

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Michael Raskin
>> Another way would be to hook the path handling procedures of the libc. >> Rewrite "/nix/store" to whatever is in the NIX_STORE variable. This >> would be a lot of hard work, but would work much more reliably than >> rewriting paths in binaries, and it would work without help from root. > >Hmm,

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Vladimír Čunát
On 06/13/2014 08:12 AM, Ertugrul Söylemez wrote: Vladimír Čunát wrote: So far there's IMHO been no really good solution proposal. And probably none is currently providing binaries to use. The path-rewriting proposal is a very bad idea and will cause a lot of breakage. For many/enough applica

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Michael Raskin
>I've actually had the same question, recently. I was planning to try a few >things myself before I ask here. But, now that the discussion is there I'll >just chime in... > >Given a case where you can't get the admin to give you `/nix`, and where >you have space/compute constraints on the target, w

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Vladimír Čunát
On 06/13/2014 02:19 PM, Andreas Herrmann wrote: Given a case where you can't get the admin to give you `/nix`, and where you have space/compute constraints on the target, would it be possible to create the full nix install on your own local machine in the correct paths, and then just copy it to t

Re: [Nix-dev] Binary packages for custom store path installs

2014-06-13 Thread Andreas Herrmann
I've actually had the same question, recently. I was planning to try a few things myself before I ask here. But, now that the discussion is there I'll just chime in... Given a case where you can't get the admin to give you `/nix`, and where you have space/compute constraints on the target, would i

[Nix-dev] [PATCH] qiv: update from 2.2.4 to 2.3.1

2014-06-13 Thread Petar Bogdanovic
--- pkgs/applications/graphics/qiv/default.nix | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/graphics/qiv/default.nix b/pkgs/applications/graphics/qiv/default.nix index df18c6d..130e8dc 100644 --- a/pkgs/applications/graphics/qiv/default.nix +++ b/p

[Nix-dev] [PATCH] mupdf: update from 1.4 to 1.5 (bugfix release)

2014-06-13 Thread Petar Bogdanovic
--- pkgs/applications/misc/mupdf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index ebf3d52..16f9e2c 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applicat