Re: [Nix-dev] [erlang-questions] Erlang Package Manager

2015-01-02 Thread Eric Pailleau
https://getcomposer.org/doc/03-cli.md php have Composer, wich use php binary. replace php with erl, and count me in. I cannot see how nix can work pn Windows, even I do not use it. The PM must run on all plateform where erl is running. best wishes. « Envoyé depuis mon mobile » Eric stewart

Re: [Nix-dev] [erlang-questions] Erlang Package Manager

2015-01-02 Thread Anthony Ramine
How do you handle multiple versions of a single package? Le 31 déc. 2014 à 16:34, stewart mackenzie setor...@gmail.com a écrit : Nix has cabal2nix, npm2nix what is needed is a rebar2nix. Lets not get too dramatic about it all. Next you could package Erl deps in the same fashion nix

[Nix-dev] grsecurity

2015-01-02 Thread peter.romfeld...@gmail.com
Hi, I followed this tutorial: https://nixos.org/wiki/Hardened_NixOS but got missing `linuxPackages_3_2_grsecurity` so i searched through the github packages and tried a few other names, but then i got `dependency could not be downloaded` then i went through options and found

Re: [Nix-dev] Travis builds for master are broken, I'm mystified

2015-01-02 Thread Wout Mertens
So the workaround might be to define a null glibc in Darwin but that doesn't explain why it suddenly started evaluating. There was a staging merge between the successful Travis build of the PR and the failed build of the merge:

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Vladimír Čunát
Hi. On 01/02/2015 02:36 AM, Ertugrul Söylemez wrote: since Nix 1.8 much of the output of nix commands is piped through `less`, which is certainly meant to be a convenience, but that convenience depends on a few assumptions: If you set PAGER=cat or PAGER= you get pretty much the old behavior.

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Charles, Perhaps suggesting shell aliases would be sufficient for those that may want the pager by default? Yes, that's a good solution. Greets, Ertugrul ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] NixOS 14.12 released

2015-01-02 Thread Leon Kunert
___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] [erlang-questions] Erlang Package Manager

2015-01-02 Thread Tristan Sloughter
I tried to setup Nix for erlang development months or so ago and walked away frustrated. Your build-erlang.nix is an example of what I found unsatisfactory. Besides the simple fact of needing so much shell scripting (and it would need more if it was to support more than rebar, or even rebar3)

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Michael, When I explicitly launch man, I am going to read the top of the man page and some place in the middle, so less is useful. Absolutely, `man` is supposed to be an interactive program, and it usually displays formatted text that wouldn't fit on one page anyway. But honestly I wouldn't

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Vladimír, If you set PAGER=cat or PAGER= you get pretty much the old behavior. Also, if the output isn't a terminal, less isn't used, e.g. ``nix-env -q | cat`` or ``nix-env -q | grep foo`` works the old way for me. I'm aware of that, and it's a terrible solution. I want to have PAGER=less

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Michael Jones
If it helps at all, git seems to use GIT_PAGER first and then falls back to PAGER and then to `less` for the commands that use it. Perhaps nix could respect a NIX_PAGER env var? To me it depends on the output of the command. I love that git pages the output of `git log` automatically but that is

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Paul, No, they can't choose. I would choose to use `less` as a pager when I need it, and otherwise I would use my terminal. I can't make that choice without corrupting the PAGER variable (which I use for other things!). I'm not a fan of using less for nix tools. But it seems you're

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Michael, I know; I was answering the question of why it is a problem to choose a single PAGER value. Sorry, I'm still getting used to my new mail setup. =) nix-env --list-generations I use ls instead of this command. That's actually a good idea, thanks. Well, systemd is

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Paul Colomiets
Hi, On Fri, Jan 2, 2015 at 1:37 PM, Ertugrul Söylemez ert...@gmx.de wrote: No, they can't choose. I would choose to use `less` as a pager when I need it, and otherwise I would use my terminal. I can't make that choice without corrupting the PAGER variable (which I use for other things!).

Re: [Nix-dev] Scala packages in Nix?

2015-01-02 Thread Tiark Rompf
The closest I could find is this: https://github.com/charleso/sbt2nix - Tiark On Dec 31, 2014, at 5:59 PM, Ryan Newton rrnew...@gmail.com wrote: Hi all, Just recently there was a thread about Erlang adopting Nix as its package manager. Scala already has a package manager (sbt, which

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Domen Kožar
My 2c: if Nix offers a way to disable the pager then I'd rather see 1% of users for such needs to make the bash alias instead of the other way around. On 2 Jan 2015 02:36, Ertugrul Söylemez ert...@gmx.de wrote: Hi everybody, since Nix 1.8 much of the output of nix commands is piped through

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Bjørn, Hm, I've never thought of automatic less as a misfeature before. I didn't have anything to do with its inclusion in nix, but I remember when I started using git that I was pleasantly surprised by it's use of less, which made git more fun to work with. (If I was a nix developer I

Re: [Nix-dev] Request for comments: pinky-promise determinism

2015-01-02 Thread Shea Levy
For dirty dirty hacks, you can set __noChroot = true and get access to the network. On Jan 2, 2015, at 1:09 PM, Georges Dubus georges.du...@gmail.com wrote: Hello everyone I would like to propose compromise in the purity rules of non-fixed-output derivations, and hear what you think

[Nix-dev] Request for comments: pinky-promise determinism

2015-01-02 Thread Georges Dubus
Hello everyone I would like to propose compromise in the purity rules of non-fixed-output derivations, and hear what you think about it. # Rationale There are a few situations where derivations play the role of fixed-output derivation, but the hash of their output is not fixed. Some examples: -

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Luke Clifton
Forgot the list... On 02/01/2015 9:36 am, Ertugrul Söylemez ert...@gmx.de wrote: Feature request 1: Please do your part in saving the software world and remove this anti-feature. Don't even consider making it optional. It's useless. Remove it. In the future, whenever you think that

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Bjørn Forsman
On 2 January 2015 at 14:01, Ertugrul Söylemez ert...@gmx.de wrote: [...] Of course all of this is my personal opinion. If the majority of the community disagrees, then I will have to live with it. I have opened this thread because I think that many people will actually agree. Hm, I've never

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Bjørn Forsman
On 2 January 2015 at 14:21, Michael Raskin 7c6f4...@mail.ru wrote: So what's the best way forward? Using $NIX_PAGER first, as suggested by Michael Jones earlier in this thread? That should cover your use case, right? (_And_ preserve the current behaviour for people liking it interactive? Just in

Re: [Nix-dev] Request for comments: pinky-promise determinism

2015-01-02 Thread Marc Weber
I've talked to git (irc) long time ago, they are pretty sure that the git hash would serve well as alternative to a sha256 or md5 hash. Thus adding an implementation for mkDerivation { git_hash = ; # instead of fixed output hash } and have the nix implementation check for $out/.git and, git

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Domen, My 2c: if Nix offers a way to disable the pager then I'd rather see 1% of users for such needs to make the bash alias instead of the other way around. why do you insist on an interactive-by-default Nix? There should be an interactive frontend, something like an interactive nox.

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Eelco Dolstra
Hi, On 02/01/15 12:57, Michael Jones wrote: If it helps at all, git seems to use GIT_PAGER first and then falls back to PAGER and then to `less` for the commands that use it. Perhaps nix could respect a NIX_PAGER env var? I've implemented this now, with the same semantics as GIT_PAGER and

Re: [Nix-dev] Request for comments: pinky-promise determinism

2015-01-02 Thread Wout Mertens
Another use-case: providing the same input hash, based only on version, for gcc and cross-gcc on another platform. Ditto for ccache and distcc. On Fri, Jan 2, 2015, 14:56 Shea Levy s...@shealevy.com wrote: For dirty dirty hacks, you can set __noChroot = true and get access to the network. On

Re: [Nix-dev] grsecurity

2015-01-02 Thread Raahul Kumar
Can you put your entire configuration.nix in a pastebin site or a github gist? I can only suggest the other alternative working kernel 3.11, or Apparmour. Please let us know which one works. nixpkgs.config = { grsecurity = true; packageOverrides = pkgs: { linuxPackages =

Re: [Nix-dev] how to use stdenv

2015-01-02 Thread Bjørn Forsman
On 2 January 2015 at 19:46, Ganesh Sittampalam gan...@earth.li wrote: On 31/12/2014 11:19, Bjørn Forsman wrote: On 31 December 2014 at 11:42, Ganesh Sittampalam gan...@earth.li wrote: Hi, https://nixos.org/wiki/Howto_develop_software_on_nixos talks about including stdenv in a myEnvFun

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Eelco, There is a very good reason for this principle. If a program does more than what it's intended to do, then it hurts composability. There shouldn't be an issue with composability here, because Nix will only run the pager when stdout is a terminal. So things work fine if you pipe

Re: [Nix-dev] how to use stdenv

2015-01-02 Thread Ganesh Sittampalam
On 31/12/2014 11:19, Bjørn Forsman wrote: On 31 December 2014 at 11:42, Ganesh Sittampalam gan...@earth.li wrote: Hi, https://nixos.org/wiki/Howto_develop_software_on_nixos talks about including stdenv in a myEnvFun environment to get gcc etc. However gcc and a bunch of other standard build

Re: [Nix-dev] NixOS as dom0 for Xen

2015-01-02 Thread Thomas Strobel
Just to follow it up, Xen has been upgraded to 4.4.1. So far only the nix package of Xen was updated, the nixos modules related to Xen will follow. I've also started to bring Xenserver (XCP) to NixOS [1]. The necessary packages should compile already. The nixos modules will follow. Any help to

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Ertugrul Söylemez
Hi Eelco, If it helps at all, git seems to use GIT_PAGER first and then falls back to PAGER and then to `less` for the commands that use it. Perhaps nix could respect a NIX_PAGER env var? I've implemented this now, with the same semantics as GIT_PAGER and SYSTEMD_PAGER. Thanks a lot! What

Re: [Nix-dev] less: When assumptions ruin the world

2015-01-02 Thread Eelco Dolstra
Hi, On 02/01/15 14:49, Ertugrul Söylemez wrote: There is a very good reason for this principle. If a program does more than what it's intended to do, then it hurts composability. There shouldn't be an issue with composability here, because Nix will only run the pager when stdout is a

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

2015-01-02 Thread Peter Simons
Hi, does anyone know why hydra.nixos.org shows 0 running jobs despite a queue worth 56,000+ entries? It's been like this since almost 2 days now. BR, Peter ___ nix-dev mailing list nix-dev@lists.science.uu.nl