Re: [Nix-dev] New website

2014-06-01 Thread Vladimír Čunát

On 06/01/2014 06:52 PM, Mateusz Kowalczyk wrote:

Funnily it was posted to the Guix ML which to me seems to be doing the
same thing as what the joke was about except in Guile.


The resemblance to Guix was actually the main reason why I thought it 
wasn't a joke. :-)



Vlada




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


[Nix-dev] Recent change to stdenv in 4cb43d2

2014-06-01 Thread John Wiegley
My apologies to all for changing stdenv everwhere by merging 4cb43d2 without
waiting to batch it with other, pending stdenv changes.  It was a minimal,
correct fix to the way ppl is compiled, but shouldn't have been merged in by
itself.

If it should be reverted, can someone please do so?  I'm flying to Boston
today and will be out of contact.

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


Re: [Nix-dev] New website

2014-06-01 Thread Ertugrul Söylemez
On Sat, 31 May 2014 17:29:12 -0700
"M. P. Ashton"  wrote:

> > > I don't mind the new website at all. I think it looks nice, and it does
> > > seem more professional than the old one.
> > 
> > If you need to look like some Enter Prise Service (typos intended) to
> > deserve the "professional" label, I'm happy to look unprofessional.
> [...]
> 
> I'm afraid I must not have written very clearly. I certainly didn't
> intend to imply that you were wrong about anything. I just thought I'd
> tell Dr Dolstra and the list about my own experience, since it was
> obviously very different to yours and the other fellow's. (And was also
> not "wrong".) I'm sorry for the confusion.
> 
> As I'm sure you and the other knowledgeable participants will have no
> trouble working out these weighty matters amongst yourselves, and I
> actually don't care that much about this anyway, I'll just step aside
> and let you all do that.

No worries, I didn't mean to be offensive.  This is not about my experience, 
but about my opinion, and I'm just stating that we do not have to follow the 
lead of large websites, particularly since the goal of our website is to convey 
useful information.  It does not provide a web service in the traditional sense.

The new website does have a few new features, but most of them look like 
stopgaps to me, like the commit history, which isn't really useful on the home 
page.  I would prefer the subprojects themselves to take most of the space with 
a very short introduction at the top.


Greets,
Ertugrul

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


Re: [Nix-dev] New website

2014-06-01 Thread Mateusz Kowalczyk
On 05/31/2014 12:22 PM, Moritz Ulrich wrote:
> 
> And another thing: Is it really a good idea to have april fools jokes on
> the front page? When NiJS was announced, I actually fell for it at
> first. I don't think showing this to newcomers helps.
> 
> 
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 

It seems to be gone now which means I had to search in horror to find
out whether it was what I thought it was.

Funnily it was posted to the Guix ML which to me seems to be doing the
same thing as what the joke was about except in Guile.

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


[Nix-dev] KDE 4.13.1?

2014-06-01 Thread Wout Mertens
Hi all,

what is the procedure for upgrading KDE? Is it simply creating a new
kde-4.13 tree with the new source versions or is it more involved?

Is anybody working on this?

Cheers,

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


Re: [Nix-dev] myEnvFun for IPython with Nix on openSuse host

2014-06-01 Thread Andreas Herrmann
Dear Luca,

Thanks for your response.

> What commit of nixpkgs are you tracking?
How do I find that out?

I installed Nix using the install script, not the from source installation.
So, I never manually checked out any package list.

I ran the following commands. They didn't really do anything. In my
interpretation that means, that my Nix installation should already be
up-to-date. Correct?

$ nix-channel --list
nixpkgs http://nixos.org/channels/nixpkgs-unstable
$ nix-channel --update
downloading Nix expressions from `
http://releases.nixos.org/nixpkgs/nixpkgs-14.10pre44162.11ac14f/nixexprs.tar.xz'.
..
  % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
 Dload  Upload   Total   SpentLeft
 Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:--
  0
unpacking channels...
$ nix-env -u \*
$

Cheers.


On 1 June 2014 16:35, Luca Bruno  wrote:

> What commit of nixpkgs are you tracking? Try upgrding your nixpkgs, that
> should have been fixed a while ago.
>
>
> On Sun, Jun 1, 2014 at 4:12 PM, Andreas Herrmann 
> wrote:
>
>> Hi everyone,
>>
>> I am very new to Nix, so let me apologize in advance if this ends up
>> being a stupid question.
>>
>>
>> # First, some back story:
>>
>> The reason I got interested in Nix is that I am doing scientific
>> computing on a number of different machines with self-made simulation
>> software. Hence, I need to keep my development environments in sync on
>> these various machines. A tiresome task that, so far, I am performing
>> manually. I understand that Nix is promising to help in such situations.
>>
>> So, I went ahead and installed Nix in single user mode on my laptop which
>> is running on openSuse 13.1. That is, I used the install script [1], and
>> installed Nix under /nix. On the wiki I found a section [2] about managing
>> development environments, which introduces a thing called myEnvFun. It
>> worked out for a simple environment to use numpy:
>>
>> numpy = pkgs.myEnvFun {
>>   name = "numpy";
>>   buildInputs = with pkgs; let p27=python27Packages; in [
>> stdenv python
>> p27.readline
>> p27.numpy
>>   ];
>> };
>>
>> I've installed it using `nix-env -i env-numpy`, and loaded it using `
>> load-env-numpy`, and everything seems to work fine.
>>
>> $ load-env-numpy
>> env-numpy loaded
>> $ which python
>> /nix/store/qikwsrbsyx59ygcmb36p1rgmfclgg882-python-2.7.6/bin/python
>> $ python
>> Python 2.7.6 (default, Apr 21 2014, 11:09:09)
>> [GCC 4.8.2] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import numpy.version
>> >>> numpy.version.version
>> '1.7.1'
>>
>> However, I would prefer to do develop using the IPython shell. So, I
>> wrote another environment that encorporates ipython:
>>
>> ipython = pkgs.myEnvFun {
>>   name = "ipython";
>>   buildInputs = with pkgs; let p27=python27Packages; in [
>> stdenv python
>> p27.readline
>> p27.ipython
>> p27.numpy
>>   ];
>> };
>>
>> Installing it works just fine. Loading the environment on the other hand
>> doesn't.
>>
>>
>> # The Problem
>>
>> I get a huge amount errors about gdk-bug when I load the ipython
>> environment defined above:
>>
>> $ load-env-ipython
>> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
>> Permission denied
>> # repeated 61 times
>> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
>> Permission denied
>>
>> /nix/store/1j8nx7r6a7s76hj14b7lgqij7yddmvw2-gdk-pixbuf-2.30.6/nix-support/setup-hook:
>> line 11: /lib/gdk-pixbuf-loaders-2.0//loaders.cache: No such file or
>> directory
>> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
>> Permission denied
>> # repeated 17 times
>> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
>> Permission denied
>> env-ipython loaded
>>
>> Depsite the error messages, the environment seems to work.
>>
>> $ ipython
>> Python 2.7.6 (default, Apr 21 2014, 11:09:09)
>> Type "copyright", "credits" or "license" for more information.
>>
>> IPython 2.0.0 -- An enhanced Interactive Python.
>> ? -> Introduction and overview of IPython's features.
>> %quickref -> Quick reference.
>> help  -> Python's own help system.
>> object?   -> Details about 'object', use 'object??' for extra details.
>>
>> In [1]: import numpy
>>
>> In [2]: numpy.version.version
>>
>>
>> # My Question
>>
>> What is going on there? Is this because I'm using Nix on a host OS,
>> instead of NixOS?
>> Or, am I just missing some package in the environment? In which case,
>> shouldn't Nix take care of this, and make sure all dependencies are
>> available?
>> One instance of a kind-of missing dependency is already the readline
>> module. If I don't mention it explicitly in the environment, python is
>> going to complai

Re: [Nix-dev] myEnvFun for IPython with Nix on openSuse host

2014-06-01 Thread Luca Bruno
What commit of nixpkgs are you tracking? Try upgrding your nixpkgs, that
should have been fixed a while ago.


On Sun, Jun 1, 2014 at 4:12 PM, Andreas Herrmann  wrote:

> Hi everyone,
>
> I am very new to Nix, so let me apologize in advance if this ends up being
> a stupid question.
>
>
> # First, some back story:
>
> The reason I got interested in Nix is that I am doing scientific computing
> on a number of different machines with self-made simulation software.
> Hence, I need to keep my development environments in sync on these various
> machines. A tiresome task that, so far, I am performing manually. I
> understand that Nix is promising to help in such situations.
>
> So, I went ahead and installed Nix in single user mode on my laptop which
> is running on openSuse 13.1. That is, I used the install script [1], and
> installed Nix under /nix. On the wiki I found a section [2] about managing
> development environments, which introduces a thing called myEnvFun. It
> worked out for a simple environment to use numpy:
>
> numpy = pkgs.myEnvFun {
>   name = "numpy";
>   buildInputs = with pkgs; let p27=python27Packages; in [
> stdenv python
> p27.readline
> p27.numpy
>   ];
> };
>
> I've installed it using `nix-env -i env-numpy`, and loaded it using `
> load-env-numpy`, and everything seems to work fine.
>
> $ load-env-numpy
> env-numpy loaded
> $ which python
> /nix/store/qikwsrbsyx59ygcmb36p1rgmfclgg882-python-2.7.6/bin/python
> $ python
> Python 2.7.6 (default, Apr 21 2014, 11:09:09)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import numpy.version
> >>> numpy.version.version
> '1.7.1'
>
> However, I would prefer to do develop using the IPython shell. So, I wrote
> another environment that encorporates ipython:
>
> ipython = pkgs.myEnvFun {
>   name = "ipython";
>   buildInputs = with pkgs; let p27=python27Packages; in [
> stdenv python
> p27.readline
> p27.ipython
> p27.numpy
>   ];
> };
>
> Installing it works just fine. Loading the environment on the other hand
> doesn't.
>
>
> # The Problem
>
> I get a huge amount errors about gdk-bug when I load the ipython
> environment defined above:
>
> $ load-env-ipython
> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
> Permission denied
> # repeated 61 times
> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
> Permission denied
>
> /nix/store/1j8nx7r6a7s76hj14b7lgqij7yddmvw2-gdk-pixbuf-2.30.6/nix-support/setup-hook:
> line 11: /lib/gdk-pixbuf-loaders-2.0//loaders.cache: No such file or
> directory
> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
> Permission denied
> # repeated 17 times
> mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
> Permission denied
> env-ipython loaded
>
> Depsite the error messages, the environment seems to work.
>
> $ ipython
> Python 2.7.6 (default, Apr 21 2014, 11:09:09)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 2.0.0 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help  -> Python's own help system.
> object?   -> Details about 'object', use 'object??' for extra details.
>
> In [1]: import numpy
>
> In [2]: numpy.version.version
>
>
> # My Question
>
> What is going on there? Is this because I'm using Nix on a host OS,
> instead of NixOS?
> Or, am I just missing some package in the environment? In which case,
> shouldn't Nix take care of this, and make sure all dependencies are
> available?
> One instance of a kind-of missing dependency is already the readline
> module. If I don't mention it explicitly in the environment, python is
> going to complain about it missing.
>
>
> Thanks in advance for your help. And also thanks for doing this project in
> the first place.
>
> Best regards,
>
> Andreas
>
> [1]: https://nixos.org/nix/install
> [2]:
> https://nixos.org/wiki/Howto_develop_software_on_nixos#Obtaining_an_Environment_from_a_Custom_Definition
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
www.debian.org - The Universal Operating System
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] myEnvFun for IPython with Nix on openSuse host

2014-06-01 Thread Andreas Herrmann
Hi everyone,

I am very new to Nix, so let me apologize in advance if this ends up being
a stupid question.


# First, some back story:

The reason I got interested in Nix is that I am doing scientific computing
on a number of different machines with self-made simulation software.
Hence, I need to keep my development environments in sync on these various
machines. A tiresome task that, so far, I am performing manually. I
understand that Nix is promising to help in such situations.

So, I went ahead and installed Nix in single user mode on my laptop which
is running on openSuse 13.1. That is, I used the install script [1], and
installed Nix under /nix. On the wiki I found a section [2] about managing
development environments, which introduces a thing called myEnvFun. It
worked out for a simple environment to use numpy:

numpy = pkgs.myEnvFun {
  name = "numpy";
  buildInputs = with pkgs; let p27=python27Packages; in [
stdenv python
p27.readline
p27.numpy
  ];
};

I've installed it using `nix-env -i env-numpy`, and loaded it using `
load-env-numpy`, and everything seems to work fine.

$ load-env-numpy
env-numpy loaded
$ which python
/nix/store/qikwsrbsyx59ygcmb36p1rgmfclgg882-python-2.7.6/bin/python
$ python
Python 2.7.6 (default, Apr 21 2014, 11:09:09)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy.version
>>> numpy.version.version
'1.7.1'

However, I would prefer to do develop using the IPython shell. So, I wrote
another environment that encorporates ipython:

ipython = pkgs.myEnvFun {
  name = "ipython";
  buildInputs = with pkgs; let p27=python27Packages; in [
stdenv python
p27.readline
p27.ipython
p27.numpy
  ];
};

Installing it works just fine. Loading the environment on the other hand
doesn't.


# The Problem

I get a huge amount errors about gdk-bug when I load the ipython
environment defined above:

$ load-env-ipython
mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
Permission denied
# repeated 61 times
mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
Permission denied

/nix/store/1j8nx7r6a7s76hj14b7lgqij7yddmvw2-gdk-pixbuf-2.30.6/nix-support/setup-hook:
line 11: /lib/gdk-pixbuf-loaders-2.0//loaders.cache: No such file or
directory
mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
Permission denied
# repeated 17 times
mkdir: cannot create directory ‘/lib/gdk-pixbuf-loaders-2.0/’:
Permission denied
env-ipython loaded

Depsite the error messages, the environment seems to work.

$ ipython
Python 2.7.6 (default, Apr 21 2014, 11:09:09)
Type "copyright", "credits" or "license" for more information.

IPython 2.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help  -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy

In [2]: numpy.version.version


# My Question

What is going on there? Is this because I'm using Nix on a host OS, instead
of NixOS?
Or, am I just missing some package in the environment? In which case,
shouldn't Nix take care of this, and make sure all dependencies are
available?
One instance of a kind-of missing dependency is already the readline
module. If I don't mention it explicitly in the environment, python is
going to complain about it missing.


Thanks in advance for your help. And also thanks for doing this project in
the first place.

Best regards,

Andreas

[1]: https://nixos.org/nix/install
[2]:
https://nixos.org/wiki/Howto_develop_software_on_nixos#Obtaining_an_Environment_from_a_Custom_Definition
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Getting nix-shell to consider config.nix

2014-06-01 Thread Mateusz Kowalczyk
My ~/.nixpkgs/config.nix is as follows:

###

{ pkgs }:

{ packageOverrides = self: with pkgs; rec {

  ghc = self.ghc // {
ghcHEAD = callPackage /home/shana/programming/ghc {};
  };

}; }

###

What I think it does is overrides ghcHEAD packages with the package I
have in the specified path. In fact, nix-env -qaP | egrep -i ghcHEAD
shows: nixpkgs.ghc.ghcHEAD ghc-7.9.20140530

This is consistent with the version in my default.nix at the specified path.

Now I want to use this in another project, through nix-shell (and
otherwise).

At the top of it I have

###

{ haskellPackages ? (import  {}).haskellPackages_ghcHEAD
, …
}:

###

But that wants to pull in 7.9.20140430 which is what ghcHEAD version is
in nixpkgs itself so clearly it's omitting my config.nix. How can I get
nix-shell to look in my config? I tried playing with variety of --arg
stuff but no matter what I try, it tells me that ~/.nixpkgs/config.nix
doesn't exist so I must be using it wrong.

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


Re: [Nix-dev] New website

2014-06-01 Thread Wout Mertens
On Sun, Jun 1, 2014 at 2:19 AM, Eelco Dolstra 
wrote:

> Obligatory link: http://shouldiuseacarousel.com/
>

To be fair, this carousel doesn't stop on mouseover, and it complains that
users don't interact with them. I see carousels more as a highlighter for
lazy visitors. They should be visual, contain few words, and repeat what's
on the page elsewhere. They're like the ad space in a subway station -
peripheral information infusion. Anyway :)

To recap the conversation so far:

Only agreements:

   - "Help" should be "Documentation" => Pull request sent
   - Nixpkgs should be more visible
   - I propose splitting the NixOS blurb between Nixpkgs and NixOS equally,
  with [Learn More] buttons on each

Under discussion:

   - The front page is serving new visitors and active users, it should
   pick one.
   - Front page mostly for active users: https://www.archlinux.org/
  http://www.gentoo.org/
  - Front page mostly for discovery/downloads: http://videolan.org
  http://mozilla.org http://foundation.zurb.com/
  - Mix: http://www.gnome.org/ http://kde.org/
  http://www.libreoffice.org/
  - I prefer the Gnome setup: A blurb for gnome+more info/download, a
  small section of news, and links to parts of the site specialized in each.

Contention:

   -
*For project discovery, a 2-minute video is excellent. I've spent many a
   2-5 minute with colleagues watching a video about some project we were
   discovering. *
  - Several people dislike videos, and the conversation centered about
  20+minute videos.
  - I really mean TWO minutes. You click, you get a whirlwind tour of
  nixpkgs and nixos, done.
  - Highlights could be:
 - install another version of something side-by-side with the one
 in your aging distribution, in a few keystrokes
 - ls -l /bin /sbin /usr on NixOS - nothing!
 - Upgrade from 14.04 to unstable - and go back!
 - Environments: Python 2/3, Ruby, Haskell? (don't know much about
 these)


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