[Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Mateusz Kowalczyk
Greetings, I have been planning to move to NixOS for quite a few months now but only yesterday I finally clobbered my old /. Like many others, I'm a Haskeller looking for a better development environment than we can sanely achieve with cabal sandboxes. Anyway, to the point. I have a few

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Mateusz Kowalczyk
} or so. Ah, OK, great! Please excuse that I only answered some of your questions. No problem, I do not expect anyone to know or post the answer to all of them. Cheers, Aristid 2014-04-21 14:23 GMT+02:00 Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk: [snip] -- Mateusz K

Re: [Nix-dev] A few questions from a NixOS newbie.

2014-04-21 Thread Mateusz Kowalczyk
On 04/21/2014 04:34 PM, Kirill Elagin wrote: Right, pretty cool, but still needs a sane frontend. I mean, JSON is way better than, say, XML, but… And the problem with nix-env is that it's damn slow (not as slow as `emerge` of course, but way slower than `eix`). I was going to write

Re: [Nix-dev] Broken OpenGL

2014-04-25 Thread Mateusz Kowalczyk
On 04/22/2014 01:12 AM, Mateusz Kowalczyk wrote: Hi, My OpenGL seems to be rather broken. When I first start my X session (currently boots into KDE), things using OpenGL do render, but they have problems: In the game Tibia, things that don't need refreshing every frame (the UI

[Nix-dev] Getting pulseaudio to play nicely with MPD

2014-04-25 Thread Mateusz Kowalczyk
Greetings, As OSS is not packaged (yet), ALSA and pulseaudio seemed like the next step. As usual with pulseaudio it means a lot of tears. After a while I managed to have separate ‘mpv’ instances to play together nicely by using an override with pulseSupport = true. I have a problem if I try to

Re: [Nix-dev] Getting pulseaudio to play nicely with MPD

2014-04-25 Thread Mateusz Kowalczyk
On 04/25/2014 10:17 PM, Mateusz Kowalczyk wrote: Greetings, As OSS is not packaged (yet), ALSA and pulseaudio seemed like the next step. As usual with pulseaudio it means a lot of tears. After a while I managed to have separate ‘mpv’ instances to play together nicely by using an override

Re: [Nix-dev] Broken OpenGL

2014-04-25 Thread Mateusz Kowalczyk
On 04/25/2014 10:17 PM, Lluís Batlle i Rossell wrote: On Fri, Apr 25, 2014 at 10:08:40PM +0200, Mateusz Kowalczyk wrote: On 04/22/2014 01:12 AM, Mateusz Kowalczyk wrote: Hi, My OpenGL seems to be rather broken. I had since bought a dedicated nVidia graphics card and no longer have

[Nix-dev] nix-shell cannot create directory followed by closeNest: command not found

2014-04-26 Thread Mateusz Kowalczyk
Hi, I wanted to write some code for the Yi text editor today. It is a Haskell program and I wanted to use nix to help me develop it. After all, the ability to do this is one of the main reasons why I went for NixOS. I followed instructions at [1] and using the Project Sandboxes section, I have

Re: [Nix-dev] nix-shell cannot create directory followed by closeNest: command not found

2014-04-27 Thread Mateusz Kowalczyk
On 04/27/2014 11:16 AM, Luca Bruno wrote: If you are using nixos unstable, try upgrading. That's related to a gdkpixbuf package bug that has been solved recently. On Sun, Apr 27, 2014 at 7:18 AM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote: Hi, I wanted to write some code

[Nix-dev] Exposing Haskell library + binary when using nix-shell and cabal build

2014-04-27 Thread Mateusz Kowalczyk
Hello, I'm trying to work on Yi, the text editor written in Haskell. Following [1] and with some help on this list, I managed to get nix-shell working. As I understand it, I should be able to use it instead of cabal sandboxes. There is a problem with this approach that I don't know how to get

Re: [Nix-dev] How to actually get rid of things from the nix-env -qs list?

2014-04-28 Thread Mateusz Kowalczyk
On 04/28/2014 09:23 AM, Marc Weber wrote: Excerpts from Mateusz Kowalczyk's message of Mon Apr 28 09:38:41 + 2014: IP- python2.7-livestreamer-1.8.0 IP- python3.3-livestreamer-1.8.0 Which one is active? That's what priorities are about, those who have higher priorities will be linked

Re: [Nix-dev] How to actually get rid of things from the nix-env -qs list?

2014-04-28 Thread Mateusz Kowalczyk
On 04/28/2014 09:34 AM, aszlig wrote: On Mon, Apr 28, 2014 at 09:38:41AM +, Mateusz Kowalczyk wrote: Well, I managed to install the software with both 2.7 and 3.3 but I have no idea which one is active at the moment. I also don't know how to get rid of 2.7 from my -qs list which I don't

Re: [Nix-dev] Trying to nix-shell a Haskell package tries to build its older version.

2014-05-02 Thread Mateusz Kowalczyk
On 05/01/2014 07:44 AM, Mateusz Kowalczyk wrote: Hi, There are some patches in git repository of HTTP Haskell package that I need so I thought, hey, I'll just make a default.nix there and play with it that way. However, when I run NIX_PATH=/home/shana/programming nix-shell it does

[Nix-dev] GHC 7.8.2-binary.nix to bootstrap GHC HEAD

2014-05-02 Thread Mateusz Kowalczyk
Amongst my struggles to get recent GHC HEAD snapshots to work on NixOS, I noticed that GHC 7.4.2 is used to bootstrap it. Perhaps that's what's causing the problems[1] so my current goal is to make a binary install of GHC 7.8.2 work. To be clear, I want to be able to install the GHC 7.8.2 binary

Re: [Nix-dev] GHC 7.8.2-binary.nix to bootstrap GHC HEAD

2014-05-02 Thread Mateusz Kowalczyk
On 05/03/2014 07:15 AM, Mateusz Kowalczyk wrote: Amongst my struggles to get recent GHC HEAD snapshots to work on NixOS, I noticed that GHC 7.4.2 is used to bootstrap it. Perhaps that's what's causing the problems[1] so my current goal is to make a binary install of GHC 7.8.2 work. To be clear

Re: [Nix-dev] GHC 7.8.2-binary.nix to bootstrap GHC HEAD

2014-05-10 Thread Mateusz Kowalczyk
On 05/09/2014 07:47 PM, Corey O'Connor wrote: Hi Mateusz, Did you make any progress with this? I set up a Nix build of the GHC 7.8.3 branch to bisect some bugs. I think I ran across a similar problem: An installed GHC will search for some files in the directory specified by the release

Re: [Nix-dev] haskell ide

2014-05-12 Thread Mateusz Kowalczyk
On 05/12/2014 10:15 PM, Vladimír Čunát wrote: On 05/11/2014 09:50 AM, Roelof Wobben wrote: but can someone explain to me what holes and missing cases are. I don't know that. GHC traditionally also implements optional research-level features, so something from those, I presume. Holes are

Re: [Nix-dev] haskell ide

2014-05-12 Thread Mateusz Kowalczyk
the more helpful/intelligent code editing features. On Mon, May 12, 2014 at 11:04 PM, Mathijs Kwik math...@bluescreen303.nl wrote: On Mon, May 12, 2014 at 11:00 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: Honestly I'm not quite sure why this thread ended up on nix-dev rather

Re: [Nix-dev] haskell ide

2014-05-12 Thread Mateusz Kowalczyk
On 05/12/2014 11:29 PM, Mathijs Kwik wrote: On Mon, May 12, 2014 at 11:18 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: The downside is the crowd of vim users that complain about basically having to use emacs for Agda ;) Idris does this way better in this respect. Also, for haskell

Re: [Nix-dev] Set locale in a pure nix-shell

2014-05-13 Thread Mateusz Kowalczyk
On 05/10/2014 12:50 AM, Shea Levy wrote: Are there actually builds whose behavior changes based on LANG? Maybe nix-shell can special-case it even for --pure? I encountered this in practice today when working with GHC: if we're not using unicode locale, GHC will print `like this' instead of

Re: [Nix-dev] Setting an environment variable in extraCmds

2014-05-16 Thread Mateusz Kowalczyk
On 05/16/2014 10:44 PM, Alfredo Di Napoli wrote: Hello everyone, I have just recently started using Nix and I find it quite cool. Something I'm trying to do is to sandbox an Haskell GHC version to bootstrap, via nix-shell, a completely isolated environment. This is what I have achieved so

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Mateusz Kowalczyk
On 05/19/2014 08:33 AM, Third3ye wrote: Hey there! I'm Third3ye and you've probably seen me troll the #NixOS channel like a pro. If you don't want to read this rather large e-mail about the wiki, how about answering a few questions? 1. *Do you edit or add to the Wiki? If so how

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Mateusz Kowalczyk
On 05/19/2014 10:03 AM, Kirill Elagin wrote: Small note first: s/Markdown/Pandochttp://www.johnmacfarlane.net/pandoc/README.htmlMarkdown/ (and this `s/.../.../` thing has to do with `sed`, in case you wonder). I guess many of the NixOS people live in the Haskell world, and `pandoc` is the

Re: [Nix-dev] Updating /etc/nix/nix.conf before building packages during nixos-rebuild

2014-05-23 Thread Mateusz Kowalczyk
On 05/23/2014 09:44 AM, Luca Bruno wrote: On 23/05/2014 03:50, Mateusz Kowalczyk wrote: Hi, I saw that Hydra built some packages that I want already, for example Qt 4.8.6. I need that and it takes a very long time (and usually OOMs) on my machine so I thought, hey, why not just fetch it from

Re: [Nix-dev] OOP library for Nix.

2014-05-25 Thread Mateusz Kowalczyk
On 05/10/2014 04:34 AM, rocon...@theorem.ca wrote: I would like to invite you all to 'checkout' my HaskellPackagesFixpoint branch. I have added a little library for object oriented programming called lib/oop.nix. Really, it is a library for manipulating open recursive functions, but it is

[Nix-dev] Build a package with what I have right now without updating deps

2014-05-26 Thread Mateusz Kowalczyk
Hi, Often I want to package some software. Normally what I do is bring my nixpkgs checkout up to date, create a new branch from master and write the expression. My problem begins when I set out to try my expression out: if I run nix-env -i my package then nix will go out and try to pull in all

Re: [Nix-dev] Build a package with what I have right now without updating deps

2014-05-26 Thread Mateusz Kowalczyk
On 05/27/2014 01:52 AM, Mateusz Kowalczyk wrote: Hi, Often I want to package some software. Normally what I do is bring my nixpkgs checkout up to date, create a new branch from master and write the expression. My problem begins when I set out to try my expression out: if I run nix-env -i

Re: [Nix-dev] Looks like Hydra is out of disk space

2014-05-28 Thread Mateusz Kowalczyk
On 05/05/2014 12:49 PM, Rob Vermaas wrote: The disk issue had resolved itself, I have restarted the build. Cheers, Rob On Sun, May 4, 2014 at 11:44 AM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote: On 05/03/2014 11:21 PM, Bjørn Forsman wrote: On 2 May 2014 23:30, Bjørn Forsman

[Nix-dev] root OpenGL: 1.4/2.1.2; user OpenGL 4.4

2014-05-28 Thread Mateusz Kowalczyk
Hi, I tried to run a graphical application as root for various dubious reasons just to find out that I have problems doing so. In fact: [root@lenalee:/tmp]# glxinfo | grep 'OpenGL version' libGL error: failed to load driver: swrast libGL error: Try again with LIBGL_DEBUG=verbose for more

Re: [Nix-dev] root OpenGL: 1.4/2.1.2; user OpenGL 4.4

2014-05-28 Thread Mateusz Kowalczyk
On 05/28/2014 09:09 PM, Mateusz Kowalczyk wrote: Hi, I tried to run a graphical application as root for various dubious reasons just to find out that I have problems doing so. In fact: [root@lenalee:/tmp]# glxinfo | grep 'OpenGL version' libGL error: failed to load driver: swrast libGL

Re: [Nix-dev] [Mate-on-Nixos] Caja compiles but dumps

2014-05-30 Thread Mateusz Kowalczyk
On 05/30/2014 10:49 AM, Anderson Torres wrote: Hello, Nixers! I have successfully build the first 4 components of mate: mate-common, mate-desktop, libmatekbd, libmateweather. Here is my progress, in the mate-on- nixos tree: https://github.com/AndersonTorres/nixpkgs/tree/mate-on-nixos

[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.

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. ___

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

2014-06-03 Thread Mateusz Kowalczyk
On 06/01/2014 03:53 PM, Mateusz Kowalczyk wrote: 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

Re: [Nix-dev] KDE 4.13.1?

2014-06-03 Thread Mateusz Kowalczyk
On 06/03/2014 12:03 PM, Wout Mertens wrote: I'll add it. On Tue, Jun 3, 2014 at 11:24 AM, Vladimír Čunát vcu...@gmail.com wrote: On 06/02/2014 04:59 PM, Eelco Dolstra wrote: A bit more: * Copy kde-4.12 to kde-4.13. * Download all of KDE locally, via wget -r

[Nix-dev] Hydra not building a package, fetchSubmodules fault?

2014-06-06 Thread Mateusz Kowalczyk
Hi, I packaged the PSP emulator called PPSSPP a while ago and it has been in nixpkgs for little over a week[1]. When I try to nix-env -i PPSSPP however my system tells me that it will build it rather than fetch it. I thought that maybe I needed to explicitly specify platforms but the ‘vice’

Re: [Nix-dev] Request for Doc: how about doxygenize Nixpkgs

2014-06-07 Thread Mateusz Kowalczyk
On 06/07/2014 08:10 PM, Anderson Torres wrote: Hello, Nixers! I was thinking: how about to doxygenize[1] the Nixpkgs tree? How about advantages and disadvantages on this? FootNotes: 1 - http://www.stack.nl/~dimitri/doxygen/ ___ nix-dev

Re: [Nix-dev] Hydra not building a package, fetchSubmodules fault?

2014-06-07 Thread Mateusz Kowalczyk
On 06/07/2014 06:43 AM, Bjørn Forsman wrote: On 7 June 2014 05:23, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: Hi, I packaged the PSP emulator called PPSSPP a while ago and it has been in nixpkgs for little over a week[1]. When I try to nix-env -i PPSSPP however my system tells me

Re: [Nix-dev] multiple-ouputs branch

2014-06-09 Thread Mateusz Kowalczyk
On 06/09/2014 05:35 PM, Pieter Noordhuis wrote: Hi all, The nixpkgs repository has a branch called multiple-outputs, with the objective to split packages up into multiple ones. For example: instead of having a single glib package, you would have one containing run-time dependencies (shared

[Nix-dev] Fonts

2014-06-09 Thread Mateusz Kowalczyk
Hi, In some applications (Cantata, chromium) I get squares instead of Japanese characters. In others (emacs, urxvt, firefox, uzbl (ugly)) I get actual characters. Does anyone know what I need to do to get Japanese to show up? In other distros I would normally install every font available ever,

[Nix-dev] (Optionally) Build same package multiple ways on Hydra

2014-06-09 Thread Mateusz Kowalczyk
Greetings, Consider the emacs-23 package as an example, it has an optional ‘gtk’ argument we can set and is checked for null. So in a config one might have something like (emacs23.override { gtk = gtk3; }) Unfortunately this means that one always has to build emacs themselves. It would

Re: [Nix-dev] Fonts

2014-06-09 Thread Mateusz Kowalczyk
, Mateusz Kowalczyk wrote: Hi, In some applications (Cantata, chromium) I get squares instead of Japanese characters. In others (emacs, urxvt, firefox, uzbl (ugly)) I get actual characters. Does anyone know what I need to do to get Japanese to show up? In other distros I would normally install every

Re: [Nix-dev] (Optionally) Build same package multiple ways on Hydra

2014-06-10 Thread Mateusz Kowalczyk
On 06/10/2014 11:18 AM, Vladimír Čunát wrote: On 06/10/2014 06:59 AM, Michael Raskin wrote: If the option combination deserves its own Hydra job, it deserves a top-level attribute in all-packages.nix (which is a one-line addition) for ease of use with «nix-env -i». Yes, exactly what I

Re: [Nix-dev] Fonts

2014-06-10 Thread Mateusz Kowalczyk
On 06/10/2014 07:03 AM, Michael Raskin wrote: On 06/10/2014 02:29 AM, Daniel Bergey wrote: A few weeks back I struggled with fonts, asked some questions on IRC, and wrote up what I learned on the wiki: https://nixos.org/wiki/Fonts I should add some notes on packaging fonts there, too. I

[Nix-dev] /usr/bin/ld: src/nix-hash/nix-hash: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'

2014-06-11 Thread Mateusz Kowalczyk
Hi, I'm trying to install nix on CentOS 6.5. As I do not have root access, it seems to be that I need to install from source. I managed to get as far as to the linking stage at which point I get the message at subject. Here's my process after some experimentation. * Download the zip of the

Re: [Nix-dev] /usr/bin/ld: src/nix-hash/nix-hash: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'

2014-06-11 Thread Mateusz Kowalczyk
On 06/12/2014 03:30 AM, Mateusz Kowalczyk wrote: Hi, [snip] Oh, my libc info: -bash-4.1$ /lib64/libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al. Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions

Re: [Nix-dev] /usr/bin/ld: src/nix-hash/nix-hash: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'

2014-06-12 Thread Mateusz Kowalczyk
On 06/12/2014 05:48 PM, Eelco Dolstra wrote: Hi, On 12/06/14 03:30, Mateusz Kowalczyk wrote: * Download the zip of the repository. It's better to download a source tarball: http://nixos.org/releases/nix/nix-1.7/nix-1.7.tar.xz This contains the configure script. This seems

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

2014-06-12 Thread Mateusz Kowalczyk
In the Nix manual it says: ## It is best not to change the Nix store from its default, since doing so makes it impossible to use pre-built binaries from the standard Nixpkgs channels — that is, all packages will need to be built from source. ## I'd like to know why it is impossible. I don't

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

2014-06-12 Thread Mateusz Kowalczyk
with overall, including losing few hundred just to get nix and its dependencies going. Wout. PS: /nix is hard-coded in a couple of places, too. Those need fixing. On Jun 13, 2014 6:22 AM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: In the Nix manual it says: ## It is best

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 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, Pierre de

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

2014-06-13 Thread Mateusz Kowalczyk
. On Fri, Jun 13, 2014 at 7:56 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: 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

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 kirela...@gmail.com wrote: I get 1h8s… on my PC, so you should probably check the version of nixpkgs checkout and all that stuff. I

[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

Re: [Nix-dev] pytables, numexpr, and pandas

2014-06-14 Thread Mateusz Kowalczyk
On 06/14/2014 11:17 PM, Andreas Herrmann wrote: Hi, I've created two new nix-expressions, that I need to use the Pandas package. Great. Disclaimer: I'm not a person ‘in power’ of nixpkgs and simply speak from experience. * PyTables is a python library for HDF5 storage. It's a different

Re: [Nix-dev] Proper way to handle OpenGL applications

2014-06-15 Thread Mateusz Kowalczyk
behaviour again but the commit in question should solve the other part of the problem (not all users having LD_LIBRARY_PATH set). On Sun, Jun 15, 2014 at 9:19 PM, Vladimír Čunát vcu...@gmail.com wrote: On 06/14/2014 04:22 AM, Mateusz Kowalczyk wrote: I notice inconsistent behaviour between my root

Re: [Nix-dev] pytables, numexpr, and pandas

2014-06-15 Thread Mateusz Kowalczyk
On 06/15/2014 09:09 PM, Andreas Herrmann wrote: Thanks for your detailed answer. On 15 June 2014 02:28, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: On 06/14/2014 11:17 PM, Andreas Herrmann wrote: A) Is there some kind of test suite that I need to run on the expressions before I can

Re: [Nix-dev] hydra's nix-expression works in nix-shell, but fails with nix-build

2014-06-15 Thread Mateusz Kowalczyk
On 06/15/2014 11:09 AM, Luca Bruno wrote: Always use nix-build to test building packages, and enable the usage of chroots because that's very important. nix-shell does not use chroots. How does one enable chroots for this purpose? I had it happen before where I tested a package in nix-shell

[Nix-dev] Testing NixOS modules.

2014-06-15 Thread Mateusz Kowalczyk
Greetings, I just opened [1] and started to implement it, basically making pass-through options that user can configure. What is the way to test NixOS modules? I don't particularly want to wait until ‘updatedb’ is scheduled to run, perhaps I only want to see the final command nix produces. I

[Nix-dev] Hydra not queueing up new jobs

2014-06-16 Thread Mateusz Kowalczyk
Hi, See [1] and [2], it seems no jobs have been queued up for a while even though commits are coming. It has even managed to finally chew threw all the packages that were already queued except for the few listed at [1] which never seem to be ran (why? Can they be removed?) and now sits idle. Can

[Nix-dev] Using nixpkgs-unstable channel on NixOS

2014-06-16 Thread Mateusz Kowalczyk
Hi, As the nixos-unstable channel has been stuck for many days (over a week) without updates, I wondered whether I could use the nixpkgs-unstable channel instead. If I remove my nixos channel and add nixpkgs one, nixos-rebuild gives me: error: error: file `nixpkgs/nixos' was not found in the Nix

Re: [Nix-dev] Packaging Java

2014-06-17 Thread Mateusz Kowalczyk
On 06/17/2014 01:02 PM, Catonano wrote: Ok, my question is naive. Still it's genuine. I don't know if the Oracle Java JRE is provided as source code or as a binary. How is it provided ? Oracle JDK is required to have neo4j runnning, by the way. I'd like to get my feet wet trying to

Re: [Nix-dev] Hydra not queueing up new jobs

2014-06-18 Thread Mateusz Kowalczyk
On 06/16/2014 02:49 PM, Rob Vermaas wrote: The hydra evaluator has been restarted about an hour ago, it was stuck somewhere. Builds should be showing up. Cheers, Rob On Mon, Jun 16, 2014 at 2:16 PM, Vladimír Čunát vcu...@gmail.com wrote: On 06/16/2014 08:13 AM, Mateusz Kowalczyk

Re: [Nix-dev] nixos tests variables and interactive testing

2014-06-21 Thread Mateusz Kowalczyk
On 06/21/2014 09:34 PM, Florian Friesdorf wrote: Florian Friesdorf f...@chaoflow.net writes: Hi, I'm writing nixos tests for python and fail to find documentation beyond: [6.6. NixOS Tests](http://nixos.org/nixos/manual/#ch-development) What nix variables are available within a testScript

Re: [Nix-dev] Request for application 'xkbprint'

2014-06-21 Thread Mateusz Kowalczyk
On 06/21/2014 09:57 PM, Kovacsics Róbert wrote: Hi, I would like to ask somebody to please include xkbprint as an application to install. If I understand it correctly, it should be as simple as adding http://www.x.org/releases/individual/app/xkbprint-1.0.3.tar.bz2; to

Re: [Nix-dev] pytables, numexpr, and pandas

2014-06-23 Thread Mateusz Kowalczyk
On 06/23/2014 10:01 PM, Andreas Herrmann wrote: Dear Florian, Thanks for your response. On 23 June 2014 17:13, Florian Friesdorf f...@chaoflow.net wrote: Thx for reporting, I'm working on nixos python test suites and made a note to investigate. Good to know. Note, that I don't expect

Re: [Nix-dev] How to install ruby gems?

2014-06-23 Thread Mateusz Kowalczyk
On 06/21/2014 09:32 AM, Wout Mertens wrote: So nobody is doing ruby any more? I tried installing bundler but it failed because it needs some sort of override to the shebang. When I add the override it installs but nixpkgs doesn't evaluate any more because of rake missing :-(. Now, it

[Nix-dev] Dropping into existing nix-shell session

2014-06-25 Thread Mateusz Kowalczyk
Hi, The way I work with Haskell is this: * set up default.nix in project directory * run nix-shell --pure to pull in all dependencies * optionally manually run cabal build in case some CPP and symbol generation needs to happen (I'd like to know the proper way here but that's for another thread)

[Nix-dev] haskell: eval $checkPhase fails until nix-shell is re-entered

2014-06-25 Thread Mateusz Kowalczyk
Hi, When hacking on Haskell projects with tests, the tests ofter depend on the project itself: that is, test-suite blocks will have itself in dependencies. This works fine with cabal and such. However, if I run: eval $configurePhase eval $buildPhase eval $checkPhase in Haddock which does this,

Re: [Nix-dev] Dropping into existing nix-shell session

2014-06-25 Thread Mateusz Kowalczyk
On 06/25/2014 11:01 AM, Eelco Dolstra wrote: Hi, On 25/06/14 08:06, Mateusz Kowalczyk wrote: [shana@lenalee:~]$ df | grep /dev/sdb1 /dev/sdb151475068 394676689369576 81% / -- reload here [shana@lenalee:~]$ df | grep /dev/sdb1 /dev/sdb151475068 39467684

Re: [Nix-dev] szip unfree?

2014-06-25 Thread Mateusz Kowalczyk
szip enable by default. You need to pass szip = null. See my latest commit to master. Okay, thanks, I didn't know that. On 23 June 2014 23:56, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: Some packages use an if expression for license field. For example: license = if hdf5 == null

Re: [Nix-dev] szip unfree?

2014-06-25 Thread Mateusz Kowalczyk
On 06/25/2014 12:46 PM, Louis Bettens wrote: Dear Andreas, Le 24. 06. 14 11:22, Andreas Herrmann a écrit : The hdf5 library itself has a license that I would call free. It permits redistribution in source, or binary form, with or without modification, basically only requiring that the

[Nix-dev] Slimlock status

2014-06-25 Thread Mateusz Kowalczyk
Hi, I'm trying to investigate [1]. The gist of it is that when I start my system, X gets started and I land at a login screen with my custom theme. After I log in and I run ‘slimlock’, the theme is crippled (no background and boxes are in wrong places). Today I tried to look into the matter but

Re: [Nix-dev] Slimlock status

2014-06-25 Thread Mateusz Kowalczyk
for clearing it up On Thu, Jun 26, 2014, at 01:12 AM, Mateusz Kowalczyk wrote: Hi, I'm trying to investigate [1]. The gist of it is that when I start my system, X gets started and I land at a login screen with my custom theme. After I log in and I run ‘slimlock’, the theme is crippled (no background

[Nix-dev] (Haskell) Weird cross-project behaviour in presence of dist directory

2014-06-28 Thread Mateusz Kowalczyk
Greetings, I have a simple use-case when developing Haskell. I have a library that I hack on and in another place an executable which uses the library. I have default.nix for both. Consider the following: /tmp/example/exec/{Main.hs,default.nix,Setup.hs,Executable.cabal}

Re: [Nix-dev] (Haskell) Weird cross-project behaviour in presence of dist directory

2014-06-28 Thread Mateusz Kowalczyk
On 06/28/2014 06:03 PM, Mateusz Kowalczyk wrote: Greetings, I have a simple use-case when developing Haskell. I have a library that I hack on and in another place an executable which uses the library. I have default.nix for both. Consider the following: /tmp/example/exec/{Main.hs

Re: [Nix-dev] @nixpkg

2014-06-29 Thread Mateusz Kowalczyk
On 06/29/2014 11:41 PM, Steven Shaw wrote: Hi, I make a @nixpkg on twitter without asking. Sorry. It's important to promote the Nix package system as well as @nixos_org. I'm happy to change the password and hand off to the appropriate person[s]. Cheers, Steve.

Re: [Nix-dev] nix os modules: how to filter out unset values

2014-06-30 Thread Mateusz Kowalczyk
On 06/30/2014 09:42 AM, Max Ivanov wrote: Hi Nixers, I am building a nix os module and stumbled upon a problem which I might need your advice on how to approach it. What I can't figure out, is how to filter out unset values even if they don't have a default value set in mkOption. The idea

Re: [Nix-dev] Problem with python distutils

2014-07-02 Thread Mateusz Kowalczyk
On 07/02/2014 01:45 PM, Andreas Herrmann wrote: Hi, I found a work-around. The trick is to not use setuptools. This can be achieved by setting `configurePhase=:;`. The installPhase needs to be fixed as well. installPhase = '' mkdir -p $out/lib/${python.libPrefix}/site-packages

Re: [Nix-dev] GHC 7.8 on hydra

2014-07-03 Thread Mateusz Kowalczyk
On 07/03/2014 05:58 PM, Gergely Risko wrote: Hi Peter, GHC 7.8.3 is close to release, but can we in the meantime enable hydra and binary cache for 7.8.2 packages? With the switch I guess you're waiting for the packages to stabilize. But would it be too much of a trouble to have for a

[Nix-dev] root doesn't have permissions to nix-store --optimise

2014-07-13 Thread Mateusz Kowalczyk
Hi, I'm trying to free up some space so I wanted to run --optimise but apparently I'm no longer allowed to: [root@lenalee:/home/shana/programming/haddock]# nix-store --optimise 0.00 MiB freed by hard-linking 0 files; there are 0 files with equal contents out of 0 files in total error: you don't

Re: [Nix-dev] Upgrading NixOS with sudo results in some error

2014-07-21 Thread Mateusz Kowalczyk
On 07/21/2014 04:43 AM, Roger Qiu wrote: Hello, When I try running: `` sudo nixos-rebuild switch --upgrade ``` I get this message: ``` /run/current-system/sw/bin/nix-channel: unable to check `https://nixos.org/channels/nixos-14.04' ``` What does that mean? And how can I fix

Re: [Nix-dev] Nixos basic Qs

2014-07-31 Thread Mateusz Kowalczyk
On 07/31/2014 11:30 PM, emil.rang...@chas.se wrote: On 2014-07-31 22:45, Ben B wrote: - I have xmonad as my window manager, and it defaults to slim as display manager/login gadget. My problem is that one of those two opens a terminal by default. If you type 'exit' into that terminal it

Re: [Nix-dev] gcc_s with Haskell packages

2014-07-31 Thread Mateusz Kowalczyk
On 07/31/2014 10:51 PM, Vladimír Čunát wrote: Hi. On 07/31/2014 09:23 PM, Mateusz Kowalczyk wrote: I'm trying to get the bits-extras Haskell package to compile. The caveat is that it needs gcc_s as an available library. [...] I see many packages in nixpkgs with the NIX_LDFLAGS=-lgcc_s

Re: [Nix-dev] gcc_s with Haskell packages

2014-07-31 Thread Mateusz Kowalczyk
at 2:23 PM, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: Hi, I'm trying to get the bits-extras Haskell package to compile. The caveat is that it needs gcc_s as an available library. What I'm currently doing is adding -lgcc_s to NIX_LDFLAGS but that does not seem to help

[Nix-dev] Intermittent failures for containers test

2014-08-03 Thread Mateusz Kowalczyk
Hi, Often I look on Hydra to see why nixos-unstable channel hasn't moved and often I see nixos:trunk-combined:nixos.tests.containers as the reason. Looking at the log and from an IRC discussion I had few days ago, the problem is stipulated to be networking not coming up quickly enough. Log at

Re: [Nix-dev] Zero Hydra Failures (ZHF) project

2014-08-08 Thread Mateusz Kowalczyk
On 08/08/2014 02:35 PM, Eelco Dolstra wrote: Hi, On 08/08/14 12:39, Luca Bruno wrote: I've launched this Zero Hydra Failures (ZHF) project. Details at https://nixos.org/wiki/Zero_Hydra_Failures Great, thanks! For reference, here is a list of nixpkgs:trunk jobs that have been broken

Re: [Nix-dev] Haskell build failures

2014-08-08 Thread Mateusz Kowalczyk
On 08/08/2014 09:19 PM, Peter Simons wrote: Hi Daniel, Nix includes several versions of GHC, and one of the few cases where we include multiple versions of a Haskell library is when that library ships with GHC or Haskell Platform. Eg, 10 versions of HTTP, 9 versions of GLUT.

[Nix-dev] dlopen and mesa-likes

2014-08-08 Thread Mateusz Kowalczyk
Hi, I have some software here that I'm trying to package. At first it all went smooth but then it didn't run. It was narrowed down to the use of dlopen in the source files. So currently I have something like this. preConfigure = '' sed -i s...@libx11.so@${libX11}/lib/libX11.so@g

Re: [Nix-dev] dlopen and mesa-likes

2014-08-08 Thread Mateusz Kowalczyk
, Mateusz Kowalczyk fuuze...@fuuzetsu.co.uk wrote: Hi, I have some software here that I'm trying to package. At first it all went smooth but then it didn't run. It was narrowed down to the use of dlopen in the source files. So currently I have something like this. preConfigure

Re: [Nix-dev] dlopen and mesa-likes

2014-08-08 Thread Mateusz Kowalczyk
On 08/09/2014 12:18 AM, Vladimír Čunát wrote: On 08/08/2014 11:30 PM, Mateusz Kowalczyk wrote: Unfortunately /run/opengl-driver/lib contains neither libEGL.so nor libGLESv2.so. Do you know how to proceed? Does this means that there is just no support for these things from nVidia and I need

Re: [Nix-dev] dlopen and mesa-likes

2014-08-08 Thread Mateusz Kowalczyk
On 08/09/2014 12:57 AM, Mateusz Kowalczyk wrote: On 08/09/2014 12:18 AM, Vladimír Čunát wrote: On 08/08/2014 11:30 PM, Mateusz Kowalczyk wrote: Unfortunately /run/opengl-driver/lib contains neither libEGL.so nor libGLESv2.so. Do you know how to proceed? Does this means that there is just

[Nix-dev] Hydra on NixOS

2014-08-10 Thread Mateusz Kowalczyk
Hi, I'm trying to set up Hydra on NixOS. After some searching I followed [1], checking out from the revision that's currently master. I did not reboot as stated on the page there so maybe that's the source of my trouble but nixos-switch started up all hydra-foo.service just fine. It did not

Re: [Nix-dev] How to help remedy build errors of Haskell packages in Nixpkgs

2014-08-10 Thread Mateusz Kowalczyk
On 08/10/2014 02:40 PM, Peter Simons wrote: Hi guys, if you're using Nix to install Haskell packages, then please consider contributing some time and effort to fix build failures! At the time of this writing, we have about 120 packages that fail to build on Hydra. You can see the complete

Re: [Nix-dev] Zero Hydra Failures (ZHF) project

2014-08-10 Thread Mateusz Kowalczyk
On 08/10/2014 03:06 PM, Vladimír Čunát wrote: As for the user-experience... what about exposing *negative* results in the binary cache as well? I imagine the hydra-failing package shouldn't be attempted by default, printing some message that it would probably fail, and one could override

Re: [Nix-dev] Hydra on NixOS

2014-08-10 Thread Mateusz Kowalczyk
On 08/10/2014 02:04 PM, Peter Simons wrote: Hi Mateusz, ExecStartPre=/nix/store/zlsf8wn19rl5qhs27lr5cs08xx718vdx-unit-script/bin/hydra-init-pre-start (code=exited, status=1/FAILURE) Aug 10 09:23:33 lenalee hydra-init-pre-start[6714]: createuser: creation of new role failed:

[Nix-dev] Binary cache for Hydra

2014-08-10 Thread Mateusz Kowalczyk
Hi, I managed to get my Hydra instance going but upon figuring out a release.nix for a project, it wants to build *a lot* of stuff. I'm wondering a few things: * Can my Hydra instance be made to use binary caches? Perhaps it does by default and this is just the cause of using nixpkgs master

Re: [Nix-dev] Binary cache for Hydra

2014-08-10 Thread Mateusz Kowalczyk
On 08/11/2014 06:11 AM, Mateusz Kowalczyk wrote: Hi, I managed to get my Hydra instance going but upon figuring out a release.nix for a project, it wants to build *a lot* of stuff. I'm wondering a few things: * Can my Hydra instance be made to use binary caches? Perhaps it does

[Nix-dev] Migrating Hydra database between machines

2014-08-11 Thread Mateusz Kowalczyk
Hi, I had some success on getting Hydra running on my own computer and I'm fairly happy how it worked out. The problem is that I have limited space here and not a great CPU, Core 2 Duo. Luckily I just re-purposed a Gentoo boxed into a NixOS one and Hydra is compiling there as I type this. NixOS

Re: [Nix-dev] Passwd

2014-08-11 Thread Mateusz Kowalczyk
On 08/12/2014 07:06 AM, Julio Cesar Campos wrote: Intalled NixOSl, and follow the instructions below The system should boot into the display manager; however, you can’t yet log in as there are no users defined, and root logins aren’t allowed on the desktop. Press CTRL+ALT+F1 to switch to a

  1   2   >