Re: [Nix-dev] ulimit

2015-01-05 Thread peter.romfeld...@gmail.com
perfect, thats what i looked for!

thanks,
peter

On 01/06/2015 02:55 PM, Bjørn Forsman wrote:
> On 6 January 2015 at 04:13, peter.romfeld...@gmail.com
>  wrote:
>> Hey,
>>
>> i did search through the options but could not find anything. did i miss
>> something? i also cant find /etc/security/limits.d/ on my system
>>
>> i want to set the ulimits in nix style.
>> for example ejabberd user open files 65536
>>
>> security.ulimits = {
>>ejabberd = {
>>  soft = {
>>nofile = 65536;
>>nproc = 65536;
>>  };
>>  hard = {
>>nofile = 65536;
>>nproc = 65536;
>>  };
>>};
>> };
> There is a security.pam.loginLimits option. Does that suit your need?
>
> Best regards,
> Bjørn Forsman

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


Re: [Nix-dev] ulimit

2015-01-05 Thread Bjørn Forsman
On 6 January 2015 at 04:13, peter.romfeld...@gmail.com
 wrote:
> Hey,
>
> i did search through the options but could not find anything. did i miss
> something? i also cant find /etc/security/limits.d/ on my system
>
> i want to set the ulimits in nix style.
> for example ejabberd user open files 65536
>
> security.ulimits = {
>   ejabberd = {
> soft = {
>   nofile = 65536;
>   nproc = 65536;
> };
> hard = {
>   nofile = 65536;
>   nproc = 65536;
> };
>   };
> };

There is a security.pam.loginLimits option. Does that suit your need?

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Raahul Kumar
I think an easy way to solve this is to put it to the test. I feel it is
too obvious to mention that deduplication and compression will solve the
problem. But it's all up to how much Eelco wants to waste his time. Give it
a go, you won't regret it.

Aloha,
RK.

On Tue, Jan 6, 2015 at 3:28 AM, aszlig  wrote:

> On Mon, Jan 05, 2015 at 05:03:04PM +0100, Vladim??r ??un??t wrote:
> > Btrfs does no deduplication (by itself at least). Per-file compression
> > should help a little, but I'd expect no huge savings.
>
> I beg to differ, accidentally (forgot to actually enable periodic GC)
> had a 6.4 TB large Nix store on a 3 TB disk array, so it seems that the
> Nix store (or at least the one on my Hydra) compresses well enough.
>
> But what actually is going to be for the worse is that you can't reason
> anymore about how much disk space will be available on a btrfs volume.
>
> a!
> --
> aszlig
> Universal dilettante
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlSqyboACgkQ0OvQ7IwtyWHY7gEAjQ4GWU3lwVjIQ1CVpSAgfAA6
> jXoAg3kyCQ0BJk5ASmIBAKDdEnB8AoQ7H4aLLHLS/cs41C/tekoq2t9YYx84bnr5
> =y+wL
> -END PGP SIGNATURE-
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] ulimit

2015-01-05 Thread peter.romfeld...@gmail.com

Hey,

i did search through the options but could not find anything. did i miss 
something? i also cant find /etc/security/limits.d/ on my system


i want to set the ulimits in nix style.
for example ejabberd user open files 65536

security.ulimits = {
  ejabberd = {
soft = {
  nofile = 65536;
  nproc = 65536;
};
hard = {
  nofile = 65536;
  nproc = 65536;
};
  };
};


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


Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Matthias Beyer
Hi,

I found this thread as well, actually. It did not work that good for
me, unfortunately. Anyways, thanks for your effort!

I figured out that I can set shortcuts in kwin to behave like i3,
which is really awesome! I'm not that near at i3 at the moment, no
tiling by now ( :-( ), but I'm getting close!

Thank you for your effort, again!


On 05-01-2015 19:32:31, Kirill Elagin wrote:
>Ah, then you need some kind of i3 configuration tweaks, this has nothing
>to do with KDE.
>Again, I can tell only for XMonad an it handles this pretty easily after a
>few KDE-specific lines are added to its configuration.
>You might be interested in [this thread][1] quick googling gave me; looks
>like the first response is exactly what you need. Again, this is a pure i3
>configuration issue, so i3 community is the right place to look for
>answers. Hope youa**ll be able to figure this out successfully!
>[1]:A http://comments.gmane.org/gmane.comp.window-managers.i3.general/913
>On Mon Jan 05 2015 at 9:49:49 PM Matthias Beyer 
>wrote:
> 
>  On 05-01-2015 18:22:14, Kirill Elagin wrote:
>  >A  A  Just run `plasma-desktop` ;). Feel free to add it to some kind of
>  >A  A  autostart!
> 
>  I know how to run it. But as the plasma-desktop is the actual
>  _desktop_ in KDE, I cannot use i3 _inside_ of it! It is a normal
>  window as my terminal, the browser or my pdf reader is. That's the
>  point. I want it to be the desktop and everything happening _inside_
>  the plasma-desktop!
> 
>  --
>  Mit freundlichen GrA 1/4A*en,
>  Kind regards,
>  Matthias Beyer
> 
>  Proudly sent with mutt.
>  Happily signed with gnupg.

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgpa_kRCHaiEa.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Kirill Elagin
Ah, then you need some kind of i3 configuration tweaks, this has nothing to
do with KDE.
Again, I can tell only for XMonad an it handles this pretty easily after a
few KDE-specific lines are added to its configuration.

You might be interested in [this thread][1] quick googling gave me; looks
like the first response is exactly what you need. Again, this is a pure i3
configuration issue, so i3 community is the right place to look for
answers. Hope you’ll be able to figure this out successfully!


[1]: http://comments.gmane.org/gmane.comp.window-managers.i3.general/913

On Mon Jan 05 2015 at 9:49:49 PM Matthias Beyer 
wrote:

> On 05-01-2015 18:22:14, Kirill Elagin wrote:
> >Just run `plasma-desktop` ;). Feel free to add it to some kind of
> >autostart!
>
> I know how to run it. But as the plasma-desktop is the actual
> _desktop_ in KDE, I cannot use i3 _inside_ of it! It is a normal
> window as my terminal, the browser or my pdf reader is. That's the
> point. I want it to be the desktop and everything happening _inside_
> the plasma-desktop!
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Matthias Beyer
On 05-01-2015 18:22:14, Kirill Elagin wrote:
>Just run `plasma-desktop` ;). Feel free to add it to some kind of
>autostart!

I know how to run it. But as the plasma-desktop is the actual
_desktop_ in KDE, I cannot use i3 _inside_ of it! It is a normal
window as my terminal, the browser or my pdf reader is. That's the
point. I want it to be the desktop and everything happening _inside_
the plasma-desktop!

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgpDjmdug8pDL.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Vladimír Čunát

On 01/05/2015 06:54 PM, Wout Mertens wrote:

Would be interesting to data-mine the dependencies and sizes etc.


I'm not sure what you want to find out, but some things are computed by 
storebrowse, for example (it's in nixpkgs).


Vladimir




smime.p7s
Description: S/MIME Cryptographic Signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Kirill Elagin
Just run `plasma-desktop` ;). Feel free to add it to some kind of autostart!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Matthias Beyer
Hi,

thanks for your reply.

The point is, there is no ~/.kde4/ directory! There is ~/.kde/, but there
is no ~/.kde/env/ in there!

So,... it _kindof_ works now. I wrote the config you specified in the
.kde/env/something.sh file.

My problem _now_ is, that the KDE workspace is an application, which I
can kill like an terminal. So, essentially, I have an i3 besides my
KDE, but I want to be the i3 session _inside_ the KDE workspace, as
this is the background and the place for the widgets and so on...

any ideas?

I guess this is now more a question for KDE guys as for you, but maybe
you guys have an idea?

Kind regards,
Matthias

On 05-01-2015 10:29:42, Kirill Elagin wrote:
>I am running KDE with xmonad as window manager (not on NixOS but I dona**t
>think there is any difference). I always thought the easiest way of
>replacing _just_ the window manager in KDE was setting the KDEWM
>environment variable during startup which I do by exporting it in
>`~/.kde4/env/xmonad.sh` (no .desktop files needed as this should be set
>just to executable, e.g. `xmonad`).
>But still. If you want to add a .desktop file, that of course cat be done
>in `configuration.nix`, but as far as I know there is no pre-cooked
>solution, so youa**ll have to deal with all the paths and stuff yourself.
>But is that really needed? Couldna**t you just add the file to
>`~/.kde4/share/apps/a*|`?
>On Sun Jan 04 2015 at 9:47:27 PM Matthias Beyer 
>wrote:
> 
>  Hi,
> 
>  I'm trying to get KDE to use i3 as window manager. I did not succeed
>  by now. I want to try this whether it is useable for me, so I can
>  benefit from KDE as well as from i3.
> 
>  I tried to reproduce this [0] suggestion in nixos, but I failed when
>  writing the .desktop file to the nix store (manually, in a VM).
> 
>  Can someone point out how to do this in nixos?
> 
>  [0]: https://faq.i3wm.org/question/2939/i3wm-and-kde-together/
> 
>  Would be nice if this would work by specifying it in the
>  /etc/nixos/configuration.nix ...
> 
>  --
>  Mit freundlichen GrA 1/4A*en,
>  Kind regards,
>  Matthias Beyer
> 
>  Proudly sent with mutt.
>  Happily signed with gnupg.
>  ___
>  nix-dev mailing list
>  nix-dev@lists.science.uu.nl
>  http://lists.science.uu.nl/mailman/listinfo/nix-dev

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgpk01RwHVT5L.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Wout Mertens
3.6TB, yikes! Is there a way for us to see what's in the store, like a
mysql dump? Would be interesting to data-mine the dependencies and sizes
etc.

On Mon Jan 05 2015 at 6:28:38 PM aszlig  wrote:

> On Mon, Jan 05, 2015 at 05:03:04PM +0100, Vladim??r ??un??t wrote:
> > Btrfs does no deduplication (by itself at least). Per-file compression
> > should help a little, but I'd expect no huge savings.
>
> I beg to differ, accidentally (forgot to actually enable periodic GC)
> had a 6.4 TB large Nix store on a 3 TB disk array, so it seems that the
> Nix store (or at least the one on my Hydra) compresses well enough.
>
> But what actually is going to be for the worse is that you can't reason
> anymore about how much disk space will be available on a btrfs volume.
>
> a!
> --
> aszlig
> Universal dilettante
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread aszlig
On Mon, Jan 05, 2015 at 05:03:04PM +0100, Vladim??r ??un??t wrote:
> Btrfs does no deduplication (by itself at least). Per-file compression
> should help a little, but I'd expect no huge savings.

I beg to differ, accidentally (forgot to actually enable periodic GC)
had a 6.4 TB large Nix store on a 3 TB disk array, so it seems that the
Nix store (or at least the one on my Hydra) compresses well enough.

But what actually is going to be for the worse is that you can't reason
anymore about how much disk space will be available on a btrfs volume.

a!
-- 
aszlig
Universal dilettante


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


Re: [Nix-dev] Supported Darwin versions

2015-01-05 Thread John Wiegley
> Eelco Dolstra  writes:

> But with a stdenv that doesn't depend on Xcode, we may be able to lower
> MACOSX_DEPLOYMENT_TARGET.

How low would you like it to be able to go?  What is the Nix project's
"official position" on least supported Darwin version?

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


Re: [Nix-dev] Static Executable: Patchelf fails me

2015-01-05 Thread Vladimír Čunát
On 01/05/2015 12:24 AM, Moritz Ulrich wrote:
> It's also worth to note that the executable (an installer) works just
> fine when I symlink any ld-linux-x86-64.so.2 to /lib64.

I guess that's the only thing you can do with a static executable (using 
static libc is bad enough by itself). Of course, you can feign the paths 
by some chroots, proot or VM.

Vladimir

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


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Vladimír Čunát
On 01/05/2015 12:27 PM, Raahul Kumar wrote:
> Btrfs might be the answer. It can both deduplicate and compress. Worth a
> shot.

Btrfs does no deduplication (by itself at least). Per-file compression 
should help a little, but I'd expect no huge savings.

Vladimir

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


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Eelco Dolstra
Hi,

On 05/01/15 13:11, Eelco Dolstra wrote:

> On 05/01/15 13:04, Domen Kožar wrote:
> 
>> We could delete some nixos/nixpkgs jobset, as there are many not needed 
>> anymore.
> 
> Well, builds for jobsets that are disabled *and* hidden are not kept anyway, 
> so
> it's not necessary to delete them.

I've now hidden some disabled jobsets, so that should cause a lot of stuff to be
GC'ed.

(Actually I don't remember *why* jobsets need to be disabled *and* hidden rather
than just disabled...)

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Call for participation at the Augsburger Linux-Infotag 2015 (Germany)

2015-01-05 Thread Ingo Blechschmidt
Hello,

On Mon, Jan 05, 2015 at 07:10:27AM +0100, aszlig wrote:
> On Mon, Jan 05, 2015 at 01:22:53AM +0100, Ingo Blechschmidt wrote:
> > on 2015-03-28, the Linux User Group Augsburg e.V. will host a yearly
> > regional Linux day -- for the 14th time. This is by far not an
> > international event, but we are the biggest such event in Southern
> > Germany, expecting 300 visitors.
> 
> Great, I'm in.

super! :-)

> > We'd welcome a talk, workshop, or booth on Nix/NixOS/NixOps! Maybe one
> > of you is interested.
> 
> What about a talk, workshop _and_ booth? :-)

Sure. :-)

On Mon, Jan 05, 2015 at 10:59:17AM +0100, Cillian de Róiste wrote:
> This sounds like a really nice conference! I'd also like to get
> involved. I'm happy to help out with a booth and a workshop, and I
> would quite like to give a presentation (in English) but I also lack
> experience with this.

Having talks in English is no problem. I'm happy that you guys are
interested! I'll record that NixOS will be present. We still have lots
of time to settle the details.

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


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Eelco Dolstra
Hi,

On 05/01/15 13:04, Domen Kožar wrote:

> We could delete some nixos/nixpkgs jobset, as there are many not needed 
> anymore.

Well, builds for jobsets that are disabled *and* hidden are not kept anyway, so
it's not necessary to delete them.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Domen Kožar
We could delete some nixos/nixpkgs jobset, as there are many not needed
anymore.

On Mon, Jan 5, 2015 at 11:26 AM, Eelco Dolstra 
wrote:

> Hi,
>
> On 04/01/15 14:21, Peter Simons wrote:
>
> >  > It seems building OK now. I don't know if anyone has intervened...
> >
> > Hydra builds a couple of hundred packages per day, but it does so at a
> > snails pace.
>
> The queue gets stopped automatically when free disk space drops below a
> certain
> level (10 GB or so), which is happening all the time now. Apparently the
> garbage
> collector cannot reclaim enough disk space anymore, suggesting we have too
> many
> roots (i.e. active Nixpkgs/NixOS jobsets). The Nix store on that machine
> has 3.6
> TB of disk space BTW.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Raahul Kumar
Btrfs might be the answer. It can both deduplicate and compress. Worth a
shot.

Aloha,
RK.

On Mon, Jan 5, 2015 at 8:26 PM, Eelco Dolstra 
wrote:

> Hi,
>
> On 04/01/15 14:21, Peter Simons wrote:
>
> >  > It seems building OK now. I don't know if anyone has intervened...
> >
> > Hydra builds a couple of hundred packages per day, but it does so at a
> > snails pace.
>
> The queue gets stopped automatically when free disk space drops below a
> certain
> level (10 GB or so), which is happening all the time now. Apparently the
> garbage
> collector cannot reclaim enough disk space anymore, suggesting we have too
> many
> roots (i.e. active Nixpkgs/NixOS jobsets). The Nix store on that machine
> has 3.6
> TB of disk space BTW.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] FOSDEM planning Hangout

2015-01-05 Thread Wout Mertens
Actually, I will be giving a talk at cfgmgmtcamp 
(which is right after FOSDEM in Ghent) on Monday at 14:40 titled "NixOS:
Your next favorite server OS" :-D

cfgmgmtcamp is also free and focuses only on configuration management, and
I assume it gets more traffic from work-related visitors.

It will be teeming with puppeteers, chefs and blacksmiths (Ansible), so it
will be a tough sell, but I'll try to give them a good overview.

Wout.

On Sun Jan 04 2015 at 10:28:56 PM Domen Kožar  wrote:

> Don't think anyone is giving a talk this year.
>
> On Sun, Dec 28, 2014 at 9:26 PM, Charles Strahan <
> charles.c.stra...@gmail.com> wrote:
>
>> Is anyone planning on giving a talk? If so, who?
>>
>> On Wed, Dec 17, 2014 at 1:47 PM, Wout Mertens 
>> wrote:
>>
>>> Hi all,
>>>
>>> We got a table at FOSDEM so we'll need volunteers to man the table and
>>> we need to think about what we'll show/do. Swag sales would be nice too.
>>>
>>> If you'd like to help with the planning, please fill out the doodle :
>>> http://doodle.com/br47eeidzgrangqm
>>>
>>> Cheers,
>>>
>>> Wout.
>>>
>>> ___
>>> nix-dev mailing list
>>> nix-dev@lists.science.uu.nl
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>
>>>
>>
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Announcing support for GHCJS

2015-01-05 Thread Ertugrul Söylemez
Hi everybody,

> I was going to try it out and found the compiler itself, but couldn't
> figure out how to make a derivation for a JS package.  Is there any
> documentation on that?  If not, in which files should I look?  Something
> like ghcjsWithPackages and cabal.mkJsDerivation would be great.

Nevermind, I think I got it.


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


Re: [Nix-dev] Announcing support for GHCJS

2015-01-05 Thread Ertugrul Söylemez
Hi Charles,

> I'm happy to announce that support for the GHCJS compiler [...] has
> been merged into master [...].
> This introduces a new top-level package set: haskellPackages_ghcjs.

I was going to try it out and found the compiler itself, but couldn't
figure out how to make a derivation for a JS package.  Is there any
documentation on that?  If not, in which files should I look?  Something
like ghcjsWithPackages and cabal.mkJsDerivation would be great.


> And now for credit where credit is due: Ryan Trinkle and John Wiegly
> [...], Bas van Dijk [...] and Peter Simons [...]. Thanks guys!

Thanks from me as well!


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


Re: [Nix-dev] Static Executable: Patchelf fails me

2015-01-05 Thread Eelco Dolstra
Hi,

On 05/01/15 00:24, Moritz Ulrich wrote:

> $ patchelf ./s3d.run 
> patchelf: patchelf.cc:292: void ElfFile Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; 
> Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; 
> Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: 
> Assertion `shstrtabIndex < shdrs.size()' failed.
> Aborted

The error message could be more elegant, but the main issue is that patchelf
cannot work on static binaries because there is nothing to patch: no ELF
interpreter section, no DT_NEEDED entries, etc.

> Setting LD_PRELOAD with pkgs.libredirect doesn't have any effect. (Is
> this expected?)

Same thing, LD_PRELOAD doesn't work with static binaries because it affects the
dynamic linker, which doesn't get used for static executables.

If there is a dynamic executable hidden inside the static executable via UPX
compression or something similar, I guess you need to decompress it first and
then apply patchelf.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Supported Darwin versions

2015-01-05 Thread Eelco Dolstra
Hi,

On 05/01/15 04:25, John Wiegley wrote:

> Here are the results of running "curl https://nixos.org/nix/install | sh"
> right now on various versions:
> 
>  10.6  sorry, there is no binary distribution of Nix for your platform

This suggests that uname -s / -m returns something different than "Darwin" and
"x86_64" on 10.6.

>  10.8  error: the group ‘nixbld’ specified in ‘build-users-group’ does not 
> exist

Huh. That shouldn't happen in a single user install.

> Each VM I'm using is a virgin install + updates + Xcode + CLI tools, nothing
> else
> 
> Is 10.9 our lowest target now, or should I open new issues for these last two
> errors?

Nixpkgs master currently has MACOSX_DEPLOYMENT_TARGET set to 10.9, so anything
lower probably won't work. This was done to work around some Xcode 6.1 issue:

https://github.com/NixOS/nixpkgs/commit/899d81b37ba6dc26431b82b40300505f19504e03

But with a stdenv that doesn't depend on Xcode, we may be able to lower
MACOSX_DEPLOYMENT_TARGET.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] KDE with i3 as window manager in NixOS?

2015-01-05 Thread Kirill Elagin
I am running KDE with xmonad as window manager (not on NixOS but I don’t
think there is any difference). I always thought the easiest way of
replacing _just_ the window manager in KDE was setting the KDEWM
environment variable during startup which I do by exporting it in
`~/.kde4/env/xmonad.sh` (no .desktop files needed as this should be set
just to executable, e.g. `xmonad`).

But still. If you want to add a .desktop file, that of course cat be done
in `configuration.nix`, but as far as I know there is no pre-cooked
solution, so you’ll have to deal with all the paths and stuff yourself. But
is that really needed? Couldn’t you just add the file to
`~/.kde4/share/apps/…`?

On Sun Jan 04 2015 at 9:47:27 PM Matthias Beyer 
wrote:

> Hi,
>
> I'm trying to get KDE to use i3 as window manager. I did not succeed
> by now. I want to try this whether it is useable for me, so I can
> benefit from KDE as well as from i3.
>
> I tried to reproduce this [0] suggestion in nixos, but I failed when
> writing the .desktop file to the nix store (manually, in a VM).
>
> Can someone point out how to do this in nixos?
>
> [0]: https://faq.i3wm.org/question/2939/i3wm-and-kde-together/
>
> Would be nice if this would work by specifying it in the
> /etc/nixos/configuration.nix ...
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] hydra.nixos.org stopped scheduling jobs

2015-01-05 Thread Eelco Dolstra
Hi,

On 04/01/15 14:21, Peter Simons wrote:

>  > It seems building OK now. I don't know if anyone has intervened...
> 
> Hydra builds a couple of hundred packages per day, but it does so at a
> snails pace. 

The queue gets stopped automatically when free disk space drops below a certain
level (10 GB or so), which is happening all the time now. Apparently the garbage
collector cannot reclaim enough disk space anymore, suggesting we have too many
roots (i.e. active Nixpkgs/NixOS jobsets). The Nix store on that machine has 3.6
TB of disk space BTW.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Call for participation at the Augsburger Linux-Infotag 2015 (Germany)

2015-01-05 Thread Cillian de Róiste
Hi,

2015-01-05 6:10 GMT+00:00 aszlig :
> Good morning,
>
> On Mon, Jan 05, 2015 at 01:22:53AM +0100, Ingo Blechschmidt wrote:
>> The deadline for applications is 2015-01-18.
>
> Great, so are any other Nixers interested in attending this? I think I'm
> pretty bad in doing speeches, so I'd appreciate if someone who is more
> experienced in doing talks would happen to be around.

This sounds like a really nice conference! I'd also like to get
involved. I'm happy to help out with a booth and a workshop, and I
would quite like to give a presentation (in English) but I also lack
experience with this.

Cheers,
Cillian

-- 
NixOS: The Purely Functional Linux Distribution
http://nixos.org
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev