Re: [Nix-dev] KDE applications

2017-06-28 Thread James Cook
Thanks. Some parts were already fixed, but applied the remaining changes in 13ab06b05a2f288dd73d3ecf02be4481cfc521c7. Please let me know if I missed anything. On 25 June 2017 at 20:47, Karn Kallio wrote: > > A number of the KDE applications in Nixpkgs fail to build

Re: [Nix-dev] krfb fix build

2017-06-28 Thread James Cook
For the record: a similar change was pushed in cbb39f4382a84c23ce4dbb6f77ef298e68e89afa, possibly based on Karn's. On 25 June 2017 at 18:39, Karn Kallio wrote: > The attached patch fixes the build for the KDE application krfb in the > Nixpkgs by adding missing

Re: [Nix-dev] akonadi fix build

2017-06-28 Thread James Cook
Thanks. Pushed as 815764096bd06d365bf526a1c1513dfb4926faf8. On 25 June 2017 at 18:12, Karn Kallio wrote: > The attached patch fixes the build of the KDE application akonadi in > the Nixpkgs by adding some missing dependencies. > >

Re: [Nix-dev] nixos-rebuild without Internet

2017-06-24 Thread James Cook
On 24 June 2017 at 22:52, Maximilian Bosch wrote: > Hey guys, > > I'm using a NixOS setup on my developer machine. For WLAN networks I use the > `networking.wireless` option as it allows me a declarative/reproducible > setup of the networks I use on a daily basis. > >

Re: [Nix-dev] conflicting packages / priority values

2017-06-17 Thread James Cook
Roger, I'm not sure what you're suggesting. Do you mean that the user's configuration would explicitly say "include pkgs.someAlternateGitVersion in my profile, but rename /bin/git to /bin/gitB"? As a starting point, I guess you could do that manually by making a new expression with a build script

[Nix-commits] [NixOS/nixpkgs] d9df35: ssh: Add Newline to KnownHostsText

2017-05-15 Thread James Cook
Commit: 2e966dc16743e4608d8af4d2370d49c63e60317e https://github.com/NixOS/nixpkgs/commit/2e966dc16743e4608d8af4d2370d49c63e60317e Author: James Cook <jc...@cs.berkeley.edu> Date: 2017-05-16 (Tue, 16 May 2017) Changed paths: M nixos/modules/programs/ssh.nix Log Message: ---

Re: [Nix-dev] updated Naev-package

2017-05-14 Thread James Cook
Hi Frank, Thanks for the update! However, I got the following error when I tried your change: error: undefined variable ‘freetype’ at /home/james/big/work/nixpkgs_ wd/aux/pkgs/games/naev/default.nix:22:75 Did you try out your new expression before attaching it? We're happy to apply your

Re: [Nix-dev] How can I boot into nixos from a grub installed on other drive ? (chroot problem)

2017-04-17 Thread James Cook
On 6 April 2017 at 10:35, Matt wrote: > > hi, > > My macbook SATA wire broke, I plugged its harddrive with nixos (16.XX) > installed into my workstation and now I would like to boot on it. My > main workstation harddrive is ubuntu with grub. > I would like to add a grub entry

Re: [Nix-dev] Collisions

2017-03-04 Thread James Cook
On 4 March 2017 at 11:56, Mark Gardner wrote: > I am having a bunch of collisions between files in different packages: > > collision between > `/nix/store/0n3z27bqv701g6rziqvr75nkixhsbnx1-traceroute-2.1.0/bin/traceroute' > and >

Re: [Nix-dev] Accessing cache.nixos.org

2017-03-02 Thread James Cook
On 2 March 2017 at 07:53, Mark Gardner wrote: > I have been having a lot of failures installing and rebuilding lately. The > usual symptom is "", often 6 ("could not resolve host"). > > For example here are some of the errors I am seeing as I attempt an > installation (over and over

Re: [Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread James Cook
I'm glad to hear it. I filed a nixpkgs issue about the link to the outdated wiki page that appeared in the error you pasted. https://github.com/NixOS/nixpkgs/issues/23013 On 20 February 2017 at 05:41, rohit yadav <rohitya...@utexas.edu> wrote: > > > On Sun, Feb 19, 2017 at 11:36

Re: [Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread James Cook
On 20 February 2017 at 04:57, rohit yadav <rohitya...@utexas.edu> wrote: > > > On Sun, Feb 19, 2017 at 10:18 PM, rohit yadav <rohitya...@utexas.edu> wrote: >> >> >> >> On Sun, Feb 19, 2017 at 10:08 PM, James Cook <james.c...@utoronto.ca> >>

Re: [Nix-dev] [Unable to upgrade GCE Nixos Image: Requires version > nix-1.10

2017-02-19 Thread James Cook
On 19 February 2017 at 23:51, rohit yadav wrote: > Hi, > > I am trying to upgrade a nixos machine on GCE created from the old tempalted > 14.12. I am unable to do so. I receive following error: > > [root@localhost:~]# nixos-rebuild switch > building Nix... > error: syntax

Re: [Nix-dev] split current and old profile builds

2016-11-28 Thread James Cook
On 28 November 2016 at 20:13, Stefan Huchler wrote: > I was so cracy that I installed nixos on a 16gb chromebook. which makes > every update now very hard, because of space problems. > > So well then I thought I have this 64gb sd(hx?) card lets just move the > whole

[Nix-commits] [NixOS/nixpkgs] e9549d: wireshark: 2.2.0 -> 2.2.2

2016-11-21 Thread James Cook
ithub.com/NixOS/nixpkgs/commit/18316620735c9d5f5fc00f340b5e964dd513dd6c Author: James Cook <jc...@cs.berkeley.edu> Date: 2016-11-21 (Mon, 21 Nov 2016) Changed paths: M pkgs/applications/networking/sniffers/wireshark/default.nix Log Message: --- Merge pull request #

[Nix-commits] [NixOS/nixpkgs] fc10bf: Revert "riak-cs: add to nixpkgs"

2016-11-20 Thread James Cook
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: fc10bf81a1aed60029de813940341aa6b02fd551 https://github.com/NixOS/nixpkgs/commit/fc10bf81a1aed60029de813940341aa6b02fd551 Author: James Cook <jc...@cs.berkeley.edu> Date: 2016-11-20 (Sun, 20 No

Re: [Nix-dev] setuid wrappers permissions

2016-09-24 Thread James Cook
On 3 September 2016 at 13:45, Karn Kallio wrote: > > The new setuid-wrappers in /run cannot be executed by users due to: > > 1) the temporary directory does not allow access > 2) the /run is mounted nosuid > > The attached patch prepares the permissions and mount

[Nix-commits] [NixOS/nixpkgs] 3919af: gnurl: 7.35 -> 7.48

2016-07-04 Thread James Cook
/nixpkgs/commit/c51ac275b85cfbd0c10a2389cb52a6ae6bf5edc9 Author: James Cook <jc...@cs.berkeley.edu> Date: 2016-07-05 (Tue, 05 Jul 2016) Changed paths: M pkgs/development/libraries/libgnurl/default.nix Log Message: --- Merge pull request #16715 from vrthra/gnurl gnurl: 7

[Nix-commits] [NixOS/nixpkgs] b31ab6: gnunet: ensure that zlib is actually linked

2016-07-04 Thread James Cook
. Commit: 96ec2b6c66d31f45d308c2be68f2b1a2bb41cfd5 https://github.com/NixOS/nixpkgs/commit/96ec2b6c66d31f45d308c2be68f2b1a2bb41cfd5 Author: James Cook <jc...@cs.berkeley.edu> Date: 2016-07-05 (Tue, 05 Jul 2016) Changed paths: M pkgs/applications/networking/p2p/gnunet/

Re: [Nix-dev] NixOS hangs on boot after upgrading 15.09 -> 16.03; systemd update to blame?

2016-06-27 Thread James Cook
ithub.com/NixOS/nixpkgs/issues/ >> >> 2016-06-23 4:08 GMT+01:00 James Cook <james.c...@utoronto.ca>: >>> >>> On 22 June 2016 at 19:27, James Cook <james.c...@utoronto.ca> wrote: >>> > After updating my desktop from 15.09 to 16.03, it hang

Re: [Nix-dev] NixOS hangs on boot after upgrading 15.09 -> 16.03; systemd update to blame?

2016-06-22 Thread James Cook
On 22 June 2016 at 19:27, James Cook <james.c...@utoronto.ca> wrote: > After updating my desktop from 15.09 to 16.03, it hangs on boot after > printing the message "regenerating udev hardware database". I do not > think the problem is directly related to that messag

[Nix-dev] NixOS hangs on boot after upgrading 15.09 -> 16.03; systemd update to blame?

2016-06-22 Thread James Cook
After updating my desktop from 15.09 to 16.03, it hangs on boot after printing the message "regenerating udev hardware database". I do not think the problem is directly related to that message; see below. Any ideas for debugging this? Here's what I've figured out so far: * Using git-bisect, it

Re: [Nix-dev] Where to start when nixos-rebuild switch --upgrade goes wrong

2016-06-11 Thread James Cook
FWIW, I sometimes use git-bisect to find the first revision where nixos-rebuild builds something with the problem. It's a huge headache, though, due to having to reboot so many times and worrying that I might stumble upon a revision that's more seriously broken. I just did this to figure out why

[Nix-commits] [NixOS/nixpkgs] 665807: expat: 2.1.0 -> 2.1.1

2016-05-18 Thread James Cook
bfd0a9e6f https://github.com/NixOS/nixpkgs/commit/35c0d1aba8fa0d90366e6e2817c6638bfd0a9e6f Author: James Cook <jc...@cs.berkeley.edu> Date: 2016-05-18 (Wed, 18 May 2016) Changed paths: R pkgs/development/libraries/expat/CVE-2015-1283.patch M pkgs/development/libraries/expat/def

Re: [Nix-dev] Trouble building on debian testing

2015-12-20 Thread James Cook
Try the last comment here: https://github.com/NixOS/nix/issues/566 If you do solve it, there's also a StackOverflow question that could use an answer http://stackoverflow.com/questions/29495436/usr-bin-ld-cannot-find-lsqlite3 James On 19 December 2015 at 10:14, Andrew Fraser

Re: [Nix-dev] Why does my system rebuild rustc and cargo?

2015-11-21 Thread James Cook
I have no idea what is happening. But here are some questions that come to mind: * Is the path always exactly the same (/nix/store/iybrbljd5nzk4n4zmfgvibrhh2zjvp04-rustc-1.4.0.drv) or does it change? * If the answer is "always the same", then does the derivation successfully get built? What I

Re: [Nix-dev] Encrypted partition via loop device, syncronization

2015-11-14 Thread James Cook
On 12 November 2015 at 07:17, Sergey Mironov wrote: > Hi, List. > > I have an idea of setting up a small encrypted partition for storing > things like passwords, wallets etc. The additional feature I want is > synchronization: I'd like to use syncthing or rsync or whatever to >

Re: [Nix-dev] Should we update Haskell packages in release-15.09?

2015-11-10 Thread James Cook
> The problem I see is that the normal approach of "update packages only > if it's relevant for security" is really hard to pull off in practice, > because Haskell package versions tend to be crazy interdependent, and > no-one really knows the smallest possible set of updates that we should >

Re: [Nix-dev] bind and complete not found in nix-shell

2015-11-10 Thread James Cook
On 8 November 2015 at 05:52, Kamil Chmielewski wrote: > Hi, > > when I try to use nix-shell I'm getting errors about missing bind and > complete commands: > bind: command not found > complete: command not found > > It was working few weeks ago and probably it's an effect of

Re: [Nix-dev] signond URL change

2015-11-09 Thread James Cook
On 4 November 2015 at 08:41, Karn Kallio wrote: > The URL for downloading the signond source has changed; the attached patch > updates it. Thanks! Pushed as commit 75ffec77. James ___ nix-dev mailing list

Re: [Nix-dev] Failure to Install "hello"

2015-11-06 Thread James Cook
This looks like a nixpkgs issue rather than a nix issue. The tracker at https://github.com/NixOS/nixpkgs/issues is active, though it's possible for issues to fall through the cracks. James On 6 November 2015 at 21:11, Martin Vahi wrote: > Is the GitHub issue tracker in

Re: [Nix-dev] Should I do something about /share/man?

2015-10-31 Thread James Cook
On 28 October 2015 at 09:56, Michael Sperber wrote: > > Thanks for the quick response! > > Matthias Beyer writes: > >> Man files are supposed to be in the store as well. >> >> You should create a >> >> $out/share/man/ >> >> and move the man

Re: [Nix-dev] AgdaStdlib Doesn't install

2015-10-06 Thread James Cook
On 3 October 2015 at 17:22, Taeer Bar-Yam wrote: > Assumption IV: I'm not sure how this works. Where is all-packages.nix? I > switched to the unstable branch with nix-channel, but that should be a > user-level change, right? Not system-level. I'm actually not sure where

Re: [Nix-dev] AgdaStdlib Doesn't install

2015-10-02 Thread James Cook
On 2 October 2015 at 13:12, Taeer Bar-Yam wrote: > I recently added pkgs.haskellPackages.Agda and pkgs.AgdaStdlib to my > environment.systemPackages (in configuration.nix), and Agda still can't find > the stdlib packages. > > I discussed this with someone on IRC for a while,

Re: [Nix-dev] Can't mount fstab user mounts

2015-09-13 Thread James Cook
Have you tried users instead of user? The mount man page makes a distinction. (The wikipedia article on fstab says something about being in the group "users"; not sure where that came from.) On Sep 12, 2015 10:02 PM, "Bryan Gardiner" wrote: > On Sat, 12 Sep 2015 21:32:01 -0700 >

Re: [Nix-dev] [mate-on-nixos] Huge updates on GitHub for Nixpkgs

2015-08-30 Thread James Cook
Yes, a pull request is much easier to review if it does one easy-to-understand thing. On 30 August 2015 at 02:32, Jascha Geerds j...@ekby.de wrote: I prefer atomic commits (i.e. a series of small commits). ___ nix-dev mailing list

Re: [Nix-dev] Encrypted boot, encrypted root on zfs setup. Problem with root unlocking.

2015-08-29 Thread James Cook
I have a working configuration with a Luks-encrypted root filesystem on two devices (btrfs). I do not use postBootCommands (except to set up encrypted swap). I set boot.initrd.luks.devices = [{ device = /dev/...; name = (pick any name);} {device = ...; name = ...;}];

Re: [Nix-dev] mxe on NixOS

2015-08-20 Thread James Cook
* If you can successfully build ordinary glib that way, but can't build mxe glib, it might be time to take it back to the mxe people. OK so it sounds like maybe this is an mxe issue after all? Could be. I would report back to the mxe bug, since you've verified that you have everything you

Re: [Nix-dev] mxe on NixOS

2015-08-17 Thread James Cook
Thanks. Adding autoconf, automake and libtool to buildInputs for glib and running nix-shell -A glib put be in an environment where I can successfully run autogen.sh. Any idea why it only works in a nix-shell instance? I have autoconf, automake, libtool installed via nix-env. (Andrew, are

Re: [Nix-dev] mxe on NixOS

2015-08-17 Thread James Cook
autoconf nor automake in the buildInputs for this reason. Put autoconf and automake in the buildInputs of the glib nix expression, then it should work. On Mon, Aug 17, 2015 at 6:45 AM, James Cook james.c...@utoronto.ca wrote: pkg-config is in my environment. If it means anything, I see the same

Re: [Nix-dev] mxe on NixOS

2015-08-16 Thread James Cook
status: 1 On 27 July 2015 at 09:19, James Cook james.c...@utoronto.ca wrote: You are trying to build something outside of a nix build environment. Instead of calling make ecc. like you do on every other distro, in Nix things are very different. You should write a .nix file describing how

Re: [Nix-dev] mxe on NixOS

2015-08-16 Thread James Cook
pkg-config is in my environment. If it means anything, I see the same error if I run ./autogen.sh inside nix-shell -A glib (still using my manually-cloned glib). James On 16 August 2015 at 01:41, Luca Bruno lethalma...@gmail.com wrote: On Sunday, August 16, 2015, James Cook james.c

Re: [Nix-dev] Nix-env error

2015-08-13 Thread James Cook
On 27 July 2015 at 11:53, Colin Putney co...@wiresong.com wrote: On Fri, Jul 24, 2015 at 11:16 PM, James Cook james.c...@utoronto.ca wrote: I can't reproduce this at commit 554cbe9. The only thing that comes to mind is per-user configuration such as ~/.nixpkgs/config.nix, if you're sharing

[Nix-dev] Why did my SSH host keys change?

2015-08-04 Thread James Cook
Over the past couple of weeks I updated two of my NixOS computers on the unstable branch. In each case, the SSH ED25519 key fingerprint changed, prompting the message below when I tried to ssh in from other computers. Any idea what could have caused this? (I verified manually that I'm probably

Re: [Nix-dev] Why did my SSH host keys change?

2015-08-04 Thread James Cook
Thanks. I didn't realize until now that the continued existence of /etc/ssh/ssh_host_ecdsa_key* isn't enough to keep ECDSA enabled, but in hindsight it makes sense. James On 4 August 2015 at 11:59, Vladimír Čunát vcu...@gmail.com wrote: On 08/04/2015 08:32 PM, James Cook wrote: Over the past

Re: [Nix-dev] What is a default.upstream file?

2015-08-02 Thread James Cook
by this tooling here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/upstream-updater/update-walker.sh#L100 It might also be related to the updateWalker meta attribute mentioned here: http://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes On Tue, 28 Jul 2015 at 07:20 James Cook

[Nix-dev] What is a default.upstream file?

2015-07-28 Thread James Cook
There are many files named default.upstream in nixpkgs. How does one use them? It is clear they have something to do with automatically updating nix expressions, but a few minutes of Googling didn't turn up a single hint about what tool reads these files. James

Re: [Nix-dev] mxe on NixOS

2015-07-27 Thread James Cook
You are trying to build something outside of a nix build environment. Instead of calling make ecc. like you do on every other distro, in Nix things are very different. You should write a .nix file describing how the package should build and build it. It will be easier. Also 99% of the times

Re: [Nix-dev] Nix-env error

2015-07-25 Thread James Cook
On Fri, Jul 17, 2015 at 3:08 PM, Luca Bruno lethalma...@gmail.com wrote: You have an old nixpkgs. Hmm. As far as I can tell, I've got the latest nixpkgs-unstable. Commit 554cbe9 was created just a few days ago. [dev@sandbox:~]$ echo $NIX_PATH

Re: [Nix-dev] user ... has no home directory error in emacs

2015-07-07 Thread James Cook
://github.com/NixOS/nix/issues/554 isn't working for emacs. Alex On Sat, Jul 4, 2015 at 8:42 PM, James Cook james.c...@utoronto.ca wrote: On 30 June 2015 at 07:46, Alex Vorobiev alexander.vorob...@gmail.com wrote: Hi, I have just installed nix-1.9 on RHEL 6.5 (using gcc-5.1 I compiled

Re: [Nix-dev] Garbled man pages/incomplete environment

2015-07-05 Thread James Cook
; }; } But it causes infinite recursion. I imagine there's a special hook or override pattern for that? Jeff On Sat, 4 Jul 2015 18:20:20 -0700 James Cook james.c...@utoronto.ca wrote: On 4 July 2015 at 09:24, Jeffrey David Johnson jef...@gmail.com wrote: I'm having the same issue described here

Re: [Nix-dev] Garbled man pages/incomplete environment

2015-07-04 Thread James Cook
On 4 July 2015 at 09:24, Jeffrey David Johnson jef...@gmail.com wrote: I'm having the same issue described here on the Gentoo forums: https://forums.gentoo.org/viewtopic-t-670013.html Man pages are hard to read because they're full of control characters. For example: NIXOS-REBUILD(8)

Re: [Nix-dev] user ... has no home directory error in emacs

2015-07-04 Thread James Cook
On 30 June 2015 at 07:46, Alex Vorobiev alexander.vorob...@gmail.com wrote: Hi, I have just installed nix-1.9 on RHEL 6.5 (using gcc-5.1 I compiled myself) and I am trying to use it in single-user mode. I installed a few packages and they all seem to work (after I unset LD_LIBRARY_PATH). I

Re: [Nix-dev] Impossible to use Nix + fetchgit on any Linux configured with LDAP authentication /libnss_sss

2015-06-06 Thread James Cook
The Firefox issue turned into https://github.com/NixOS/nixpkgs/issues/1868, which was closed when it was decided a wrapper that sets LD_LIBRARY_PATH could fix it. Should the issue get re-opened? Was that never implemented, or does it not solve the problem? James On 4 June 2015 at 15:10, Adrien

Re: [Nix-dev] Impossible to use Nix + fetchgit on any Linux configured with LDAP authentication /libnss_sss

2015-06-06 Thread James Cook
for firefox, I think it is not for fetchgit/git. Adding libnss_sss to the LD_PATH as requirement for any invocation of igt would make any build using fetchgit impure. Adrien Le 06/06/2015 22:16, James Cook a écrit : e get re-opened? Was that never implemented, or does it not solve

Re: [Nix-dev] Best practices for replacing channels with my own package set?

2015-06-05 Thread James Cook
Glad you figured it out. I had a symlink in my normal account's home directory's .nix-defexpr like yours, and it only had an effect when running nix-env as my normal user. Was always setting NIX_PATH on the command line when running nixos-rebuild. On 1 June 2015 at 17:26, Jeffrey David Johnson

Re: [Nix-dev] Best practices for replacing channels with my own package set?

2015-06-01 Thread James Cook
I have a symlink from ~/.nix-defexpr/myhead to the nixpkgs tree I want to use. James On 1 June 2015 at 17:35, Jeffrey David Johnson jef...@gmail.com wrote: Nevermind, that sets NIX_PATH but nix-env still errors out with: nix-env: src/libexpr/eval.hh:57: void nix::Bindings::push_back(const

Re: [Nix-dev] A Journey into our brand-new Haskell infrastructure: Part III

2015-05-02 Thread James Cook
I am usually a fan of merging instead of rebasing, but won't the destroyed history here just be an enormous number of boring automatic snapshots of hackage? That doesn't have much to do with nixpkgs, and surely the history of hackage is being archived somewhere else. (If a bunch of people were

Re: [Nix-dev] Compiling Android tree with buildFHSUserEnv

2015-04-22 Thread James Cook
On 22 April 2015 at 08:46, Nikolay Amiantov a...@fmap.me wrote: Hi all, With recent patches for build-fhs-*env in master it's now possible to (ab)use FHS userenv infrastructure to work with the Android source tree. It's, as can be imagined, an enormous (~20 GB!) pile of source code together

Re: [Nix-dev] haskellngPackages.cabal-instal wont install after haskell-generic-builder: gratuitous ...

2015-04-17 Thread James Cook
Isn't this what nix-env --repair is for? I haven't used it, but that's what I would try first. James On 17 April 2015 at 07:51, Kirill Elagin kirela...@gmail.com wrote: I don’t understand much about those GHC package IDs issues but I guess it might be the cause here. The typical solution is

Re: [Nix-dev] package test set up and tear down

2015-04-14 Thread James Cook
On 14 April 2015 at 05:54, Tomas Hlavaty tomas.hlav...@knowledgetools.de wrote: Hi all, I have a nix package expression with doCheck = true;. The tests require a RDBMS (postgresql for now). preCheck creates postgresql roles and database and postCheck drops the roles and database. However,

Re: [Nix-dev] Improving security updates

2015-04-12 Thread James Cook
On 12 April 2015 at 11:57, Nicolas Pierron nicolas.b.pier...@gmail.com wrote: On Sun, Apr 12, 2015 at 7:45 PM, James Cook james.c...@utoronto.ca wrote: Side questions: - Why does stdenv.mkDerivation need to be clever? Why not just blindly apply all the fixes to every package

Re: [Nix-dev] Improving security updates

2015-04-12 Thread James Cook
On 10 April 2015 at 14:16, Nicolas Pierron nicolas.b.pier...@gmail.com wrote: Hi, On Fri, Apr 10, 2015 at 7:12 PM, CodeHero codeh...@nerdpol.ch wrote: So, after this huge update delay for nixos-unstable I think we should talk about improving the way security updates are handled. One can

Re: [Nix-dev] Improving security updates

2015-04-12 Thread James Cook
Dependency replacement has me pretty confused. If someone will indulge me, I want to make sure I understand the above point, or at least how replace-dependency.nix works (assuming that's what you're talking about). First of all, am I correct in assuming that replace-dependency.nix works by

Re: [Nix-dev] ``Failed to execute opertaion: Connection timed out'' when issuing nixos-rebuild

2015-04-11 Thread James Cook
On 11 April 2015 at 09:08, Manuel Pages amarr.industr...@gmail.com wrote: I'm facing most peculiar issue when I issue commands from nixos-rebuild family — Stopping dbus.service nix-daemon.service systemd-udevd.service *snip* restarting systemd *time passes* Failed to execute opertaion:

Re: [Nix-dev] Creating offline installation image

2015-03-28 Thread James Cook
(For the list: a GitHub issue to track this.) On 28 March 2015 at 17:12, Arseniy Seroka ars.ser...@gmail.com wrote: Issue: https://github.com/NixOS/nixpkgs/issues/7059 2015-03-29 3:04 GMT+03:00 James Cook james.c...@utoronto.ca: Sorry you are having trouble. I'm going to wait to see

Re: [Nix-dev] Creating offline installation image

2015-03-28 Thread James Cook
were already copied. 2015-03-29 2:37 GMT+03:00 James Cook jc...@cs.berkeley.edu: On 28 March 2015 at 13:47, Arseniy Seroka ars.ser...@gmail.com wrote: My installation-cd-minimal.nix [1] What I do: Running qemu with generated image Checking that I can run vlc, teamviewer, dropbox

Re: [Nix-dev] [PATCH] gnupg1orig: Remove left-over debug message.

2015-03-28 Thread James Cook
On 27 March 2015 at 14:48, Petar Bogdanovic pe...@smokva.net wrote: --- pkgs/tools/security/gnupg/1.nix| 2 ++ .../security/gnupg/remove-debug-message.patch | 22 ++ 2 files changed, 24 insertions(+) create mode 100644

Re: [Nix-dev] Q - Querying for common C tools like make and kernel headers

2015-03-27 Thread James Cook
On 3 March 2015 at 16:02, Tony Su ton...@su-networking.com wrote: Objective: Install VMware Guest Tools Common requirement: Common Development tools like make, gnu c compiler, often packaged together by distro maintainers Kernel headers and related code to modify existing kernel Initial

Re: [Nix-dev] Developing Haskell packages that use the FFI

2015-03-14 Thread James Cook
I’m working on a package that depends on the hs-mesos cabal package, but I’m ending up with the wrong version of the C++ protobuf library (incompatible headers) due to Nix somehow automatically picking up the wrong protobuf dependency for using the mesos C++ headers. How can I configure what

Re: [Nix-dev] How do I install firefox nightly or any other program that gets daily updates?

2015-03-09 Thread James Cook
Nixpkgs has a firefox-bin package which probably does exactly what you are trying to do. You probably just need to update the source path and hash to be the nightly version. James On 9 March 2015 at 00:22, Bjørn Forsman bjorn.fors...@gmail.com wrote: (Again, please copy the list.) On 9 March

Re: [Nix-dev] locate utility (and likely find)

2015-03-03 Thread James Cook
On Mar 3, 2015 4:11 PM, Tony Su ton...@su-networking.com wrote: It looks to me like locate is already installed and available in a default install (stable). But, it won't function without an updated database. But, running updatedb (as root) apparently points to a read-only location.

Re: [Nix-dev] Permission error when installing mpd

2015-02-19 Thread James Cook
Hm, this sounds like a bug actually. Maybe the mkdir is running as mpd but the author of that .nix file expected it to run as root? (Can anyone contradict this?) If you have a moment, please record the error you're seeing when you just use mpd.enable = true, and then file a bug on github. As a

Re: [Nix-dev] Override nix.maxJobs without editing hardware-configuration.nix?

2015-02-18 Thread James Cook
maxJobs = pkgs.lib.mkForce 4; worked. Thanks all! I have a lot to learn about NixOS configuration. On 18 February 2015 at 02:25, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, On 18/02/15 08:25, James Cook wrote: I can't set nix.maxJobs in configuration.nix, because it is set

Re: [Nix-dev] Permission error when installing mpd

2015-02-18 Thread James Cook
On 18 February 2015 at 22:22, Nikita Karetnikov nik...@karetnikov.org wrote: I've tried various options, but mpd always fails with a permission error. Here's one example: services.mpd.enable = true; services.mpd.dataDir = /home/nikita/dotfiles/mpd/.mpd; services.mpd.musicDirectory =

[Nix-dev] Override nix.maxJobs without editing hardware-configuration.nix?

2015-02-17 Thread James Cook
I can't set nix.maxJobs in configuration.nix, because it is set in hardware-configuration.nix: error: The unique option `nix.maxJobs' is defined multiple times, in `/etc/nixos/hardware-configuration.nix' and `/etc/nixos/configuration.nix'. Of course, I could work around this by editing

Re: [Nix-dev] Documentation about releases?

2015-02-16 Thread James Cook
, James Cook james.c...@utoronto.ca wrote: Is there any page that lists the NixOS releases, and says something about the release process? The only list I was able to find is the table of contents of the NixOS manual, under Release Notes. The specific question that sent me on this hunt: how long do

Re: [Nix-dev] Please test Nix store auto-optimise

2015-02-15 Thread James Cook
Once I wondered if using reflinks instead of hardlinks might be better from some point of view, but it probably won't be a big difference. I would really like to see reflinks being used instead of hard links on filesystems that support it. Hard linking is an impurity which can cause bugs, as

[Nix-dev] Documentation about releases?

2015-02-15 Thread James Cook
Is there any page that lists the NixOS releases, and says something about the release process? The only list I was able to find is the table of contents of the NixOS manual, under Release Notes. The specific question that sent me on this hunt: how long do we provide support? People seem to be

Re: [Nix-dev] Documentation about releases?

2015-02-15 Thread James Cook
, James Cook james.c...@utoronto.ca wrote: Is there any page that lists the NixOS releases, and says something about the release process? The only list I was able to find is the table of contents of the NixOS manual, under Release Notes. The specific question that sent me on this hunt: how long do

Re: [Nix-dev] staging -- master merge imminent

2015-02-13 Thread James Cook
https://github.com/NixOS/nixpkgs/issues/6028#issuecomment-72952987 The error is caused by an impurity, so bisecting might just reveal which version you had in the store before you switched to a newer kernel. On 13 February 2015 at 14:12, Lluís Batlle i Rossell vi...@viric.name wrote: On Fri,

Re: [Nix-dev] Automatically locking the screen with xautolock

2015-02-08 Thread James Cook
If you're comfortable having it suid, you could set security.suidPrograms = [ xautolock ]; in configuration.nix. Then if xautolock is installed globally it will hopefully work without sudo. On 8 February 2015 at 10:07, Nikita Karetnikov nik...@karetnikov.org wrote: How do I automatically lock

Re: [Nix-dev] Funding Hydra Development

2015-01-21 Thread James Cook
On 21 January 2015 at 14:10, Moritz Ulrich mor...@tarn-vedra.de wrote: Vladimír Čunát vcu...@gmail.com writes: On 01/21/2015 10:32 PM, Wout Mertens wrote: Not sure if throwing money at the Hydra codebase will speed up compiles (apart from setting it up to use ccache). I understood that

Re: [Nix-dev] Funding Hydra Development

2015-01-21 Thread James Cook
argument regarding living on master: homing-on-code.blogspot.hk/2015/01/code-rot-openbsd.html (read the OpenBSD section) Kind regards Stewart On Thu, Jan 22, 2015 at 9:51 AM, James Cook james.c...@utoronto.ca wrote: On 21 January 2015 at 17:25, stewart mackenzie setor...@gmail.com wrote

Re: [Nix-dev] Encrypted root: LUKS over LVM

2015-01-14 Thread James Cook
Sorry, still no idea. I'm using LUKS but not with LVM, and I don't have this problem. Is anyone else using LVM over LUKS? Is there something strange about Nikit's configuration? Maybe there is some way to record all the commands that are run on boot and figure out which nixos expressions are

Re: [Nix-dev] Encrypted root: LUKS over LVM

2015-01-09 Thread James Cook
It looks like nixos is trying to run fsck after mounting the filesystem (somehow I missed this when I looked at your e-mail before). I don't know what would cause this. Can you send us your hardware-configuration.nix? James On 6 January 2015 at 23:47, Nikita Karetnikov nik...@karetnikov.org

Re: [Nix-dev] Encrypted root: LUKS over LVM

2015-01-06 Thread James Cook
That's odd. Do you have any idea why e2fsck is failing? What happens if you run e2fsck -n /dev/main/main after booting? James On 6 January 2015 at 14:10, Nikita Karetnikov nik...@karetnikov.org wrote: I forgot to say that adding ‘noCheck = true;’ doesn’t seem to work.

Re: [Nix-dev] Encrypted root: LUKS over LVM

2015-01-04 Thread James Cook
On 4 January 2015 at 12:04, Nikita Karetnikov nik...@karetnikov.org wrote: I’m trying to configure NixOS with LUKS over LVM as described in [1]. After partitioning the disk (see ‘partition-table.sfdisk’), I did the following: # mkfs.ext3 /dev/sda1 # cryptsetup luksFormat -i 5000 /dev/sda2 #

Re: [Nix-dev] NixOS Postfix service module config: why empty local_recipient_maps value?

2015-01-01 Thread James Cook
On 31 December 2014 at 14:11, aldiyen aldi...@gmail.com wrote: Hello, I just started trying to use NixOS a little under a week ago, and after installing the Postfix service I found that I was having trouble preventing my server from sending backscatter. After some searches, I found that when

Re: [Nix-dev] VMware Guest Tools

2015-01-01 Thread James Cook
On 31 December 2014 at 17:37, Brandon Martin zmbmar...@gmail.com wrote: Hey everyone, New NixOS user here. I have installed NixOS on my MacBook with VMware Fusion. I want to install the guest tools but am not sure how. I tried following the directions here

Re: [Nix-dev] Dataflow

2014-12-25 Thread James Cook
On 25 December 2014 at 01:13, stewart mackenzie setor...@gmail.com wrote: So I've packaged together a number of erlang dependencies together, then compiled them a number of times in a row. I noticed that the error outputs were different each time. To me this means nix isn't deterministic.

Re: [Nix-dev] ‘CYCLE’ was not found in the Nix search path

2014-12-15 Thread James Cook
On 15 December 2014 at 15:04, Daniel Bergey ber...@alum.mit.edu wrote: For the last few days, any attempt to install with nix-env gives the message: error: file ‘CYCLE’ was not found in the Nix search path (add it using $NIX_PATH or -I) Can someone explain to me why this is and how to fix

Re: [Nix-dev] Guidance on packaging extended-reals

2014-12-06 Thread James Cook
On 5 December 2014 at 08:04, Carlo Nucera medit...@gmail.com wrote: I'd like a suggestion on what to do with the haskell package extended-reals (https://hackage.haskell.org/package/extended-reals), which, when I to package it, yields this error: http://lpaste.net/115721. I'm using, to

Re: [Nix-dev] NixOS 14.11 branch-off delayed for a few days

2014-11-23 Thread James Cook
I labelled a new bug with the 14.11 milestone, because it's a show-stopper on my system: X11 doesn't work with (I think) the open source radeon driver. https://github.com/NixOS/nixpkgs/issues/5101 Unfortunately I might not have much time to dig into it over the next week, so it might be

Re: [Nix-dev] Can't log back in immediately in kdm and lightdm

2014-11-15 Thread James Cook
On 15 November 2014 20:27, Joseph Joe j...@reed.edu wrote: Has anyone had the following problem with lightdm or kdm? When I login and then logout, I cannot log back in immediately. If I try to login immediately, the screen goes black and after a minute, the screen returns to the login page.

Re: [Nix-dev] SF meetup?

2014-11-06 Thread James Cook
...@gmail.com http://corebotllc.com/ On Wed, Nov 5, 2014 at 1:32 PM, James Cook james.c...@utoronto.ca wrote: On 5 November 2014 09:19, Colin Putney co...@wiresong.com wrote: Hi, Is anybody using Nix in San Francisco? If so, I'd love to meet you! Let's get together and compare notes

Re: [Nix-dev] SF meetup?

2014-11-05 Thread James Cook
On 5 November 2014 09:19, Colin Putney co...@wiresong.com wrote: Hi, Is anybody using Nix in San Francisco? If so, I'd love to meet you! Let's get together and compare notes. Colin I'm just over in Berkeley. Anyone else? James ___ nix-dev

Re: [Nix-dev] fetching tarballs recursively

2014-10-29 Thread James Cook
I don't have a concrete answer, but two things come to mind: - /nix/store is mounted read-only by default on NixOS, so it might not be a permissions issue. (The nix tools do something clever every time the want to write to it.) - Looking at the man page for nix-store, the --import and --export

Re: [Nix-dev] NixOS artwork repository created

2014-10-24 Thread James Cook
On 24 October 2014 03:30, Luca Bruno lethalma...@gmail.com wrote: I'm announcing the nixos-artwork repository [1]. The idea is to add some nixos-branded images, wallpapers to our distribution. The first issue is the 14.11 release [2], I've created a simple gnome wallpaper however I'm trying

Re: [Nix-dev] Fwd: The results of your email commands

2014-10-13 Thread James Cook
On 13 October 2014 17:57, Anderson Torres torres.anderson...@gmail.com wrote: Hello, Nixers! I have two questions: 1 - After some time, I have tried to update my system. But my Internet connection is very poor, so I tried to download libreoffice using wget: $ wget -c

  1   2   >