[Nix-commits] [NixOS/nixpkgs] bb3c8a: lib: Include darwin in isUnix

2017-07-03 Thread David McFarland
  Branch: refs/heads/staging
  Home:   https://github.com/NixOS/nixpkgs
  Commit: bb3c8a164c037a5c5697bb411c5b965c7e01d1a7
  
https://github.com/NixOS/nixpkgs/commit/bb3c8a164c037a5c5697bb411c5b965c7e01d1a7
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-07-03 (Mon, 03 Jul 2017)

  Changed paths:
M lib/systems/inspect.nix

  Log Message:
  ---
  lib: Include darwin in isUnix


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] 5 somewhat related questions

2017-06-22 Thread David Izquierdo

I'll try to answer what I think I know...


On 22/06/17 20:40, Klaas van Schelven wrote:

Hello Nixians,

I've installed NixOs a number of days ago. So far I really like it!

I've read the documentation I could find, but I'm left with a number of
questions; not so much "how to do X" but rather of a slightly more
philosphofical (or cultural, a.k.a. "best practices") nature. I hope
someone can enlighten me on the "Nix Way".

1. In NixOs /etc/nixos/configuration.nix is the single configuration file
that determines the state of the system as a whole. How does this file
relate to the existence of the nix-env command, either executed as root or
by a single non-privileged user? In particular, I would assume that any
nix-env is undone by the time the system is rebuilt from the configuration
file. Assuming this is the case: should the usage of nix-env not be
actively discouraged in NixOs? (perhaps it is, and I simply did not find
the reference)
They're mostly independent, but AFAIK nix-env binaries have priority 
over conf.nix. Nothing gets undone, since whatever you install to your 
user profile stays in the nix store (because your user profile is a gc 
root). For me, the use of n-e is because it's faster to test or use 
oneshot software installing it imperatively than adding-then-removing to 
conf.nix. I guess `nix-shell -p` would be more "correct", but it's a 
matter of not forgetting you've used it.


2. (Context: Assuming for a moment there _is_ in fact a use-case for
nix-env; e.g. the scenario where you're not running NixOs, but are using
Nix on top of another distribution). nix-env uses an "imperative style" of
manipulating your environment, i.e. using a sequence of commands in a
particular order. I understand that after each succesful manipulation the
_resulting_ environment becomes available as a separate generation. As far
as I understand there's even a "half-product", the so called "derivation"
that is available per generation, although I did not study those yet. My
question is, however, whether the original commands that led to these
constructions can somehow be retrieved. The reason for this question is the
observation that the sequence of nix-env (and potentially other similar)
commands can be seen as a transactional log that could simply be replayed
to reconstruct the resulting generations (assuming that the commands fully
express the information needed to construct the associated environments;
this assumption might not actually hold in practice. Question 2b: does the
assumption hold?).

3. In the scenario where I use the single configuration file
/etc/nixos/configuration.nix but I'm also subscribed to a channel, the
state of this channel may influence the outcome of nixos-rebuild (This is
by design, it allows us to stay up to date with e.g. security updates). The
consecutive states of the channel, as seen by my system when rebuilding,
are valuable pieces of information in their own right when I want to debug
a problem. Take the following example:

t=0, my system is good.
t=1, I want to install some extra package, I modify configuration.nix, and
run nixos-rebuild
t=2, system broken.

I understand that I always have the ability to roll back the system _as a
whole_, even using Grub if needed. This is awesome of course. The question
is: do I also have the ability to debug the parts that lead to that whole?
In particular: the precise state of the channel[s] on each rebuild? And
preferably also: the state of /etc/nixos/configuration.nix on each build?


I think you want `nix-channel --rollback`, and 
`system.copySystemConfiguration = true` (for c.nix). Note however that 
at some point it will probably be in your best interest to modularise 
your c.nix into several files, and that option only copies c.nix, not 
any imports. You can check this message for a fairly elegant method to 
have your /etc/nixos tree be a part of each generation.


https://mailman.science.uu.nl/pipermail/nix-dev/2017-April/023403.html


4. Is a "single declarative file per user" (e.g. for dotfiles, but
potentially also to make it possible to declare which user-specific
packages are installed) available? I understand there some options exist,
but how do they relate? Is there convergence on a "one way to do it"?

5. In the commit linked below, the nix file for VTE 2.91 adds the following
2 propagatedBuildInputs: pcre2 & gnutls. As far as I understand this might
be not good practice. The reason I've added them is because pkg-config,
when run in the build context of xfce.terminal, cannot otherwise find the
package vte-2.91 because of a dependency error. Ignoring for a moment the
rationale of the commit itself (I've been convinced that adding this
particular version of xfce4-terminal to the repo by itself is not a good
idea) can someone tell me what the proper way to handle this particular
situation would be?


Re: [Nix-dev] Trying to install the SailfishOS SDK

2017-06-19 Thread David Costa
On Sun, 18 Jun 2017 12:11:59 +0200
David Izquierdo <theco...@gmail.com> wrote:

> I'll ask a more general question: Is there any other piece of
> softrware in nixpkgs that's based on a QtInstallerFramework?

Is the installer only a way to avoid packaging the SDK for one thousand
distros? If so we can build the SDK from sources and avoid the
installer at all.

> I suspect the secret sauce will be, unsurprisingly, in the AUR.

The AUR solution calls the installer with a --script option, passing
enough javascript to make the setup fully automated. I hadn't time to
try if this works in a headless environment or not.

Unless the SDK has binary only and unfree components I'd prefer a
package that can build it from source, but I don't know if we have a
guideline about wrapping binary releases.
For instance, is libreoffice compiled from source by hydra or just
wrapped?

> The installer for Sailfish SDK [...] runs via steam-run

Thank you so much ! I didn't think of steam-run, now I can give it a
whirl!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Trying to install the SailfishOS SDK

2017-06-18 Thread David Izquierdo
I was recently looking for info on this too. I'll ask a more general 
question: Is there any other piece of softrware in nixpkgs that's based 
on a QtInstallerFramework? The installer for Sailfish SDK is one, and, 
even though it runs via steam-run (and promptly detects my lack of 
VirtualBox), I'd prefer to properly package it. I suspect the secret 
sauce will be, unsurprisingly, in the AUR. I'll have a go in the 
following weeks at replicating the PKGBUILD in nix and see how it works out.



https://aur.archlinux.org/packages/sailfishos-sdk-bin/


On 17/06/17 22:26, David wrote:

On Thu, 19 Jan 2017 21:13:55 +0100
Christoph-Simon Senjak <christoph.sen...@googlemail.com> wrote:


I am trying to write a package for the SailfishOS SDK.

I am sorry for the necrobump but... is there any news on this?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


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


Re: [Nix-dev] Trying to install the SailfishOS SDK

2017-06-17 Thread David
On Thu, 19 Jan 2017 21:13:55 +0100
Christoph-Simon Senjak  wrote:

> I am trying to write a package for the SailfishOS SDK. 

I am sorry for the necrobump but... is there any news on this?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] f03ee2: gfortran7: added by wrapping gcc7 (#26535)

2017-06-13 Thread David Guibert
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f03ee2475406a24c3162f8d137aae8f6f5440cda
  
https://github.com/NixOS/nixpkgs/commit/f03ee2475406a24c3162f8d137aae8f6f5440cda
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2017-06-13 (Tue, 13 Jun 2017)

  Changed paths:
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gfortran7: added by wrapping gcc7 (#26535)

thanks


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] bb6cf3: bind service: add listen-on options (#26430)

2017-06-10 Thread David Tulig
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: bb6cf349ffd5c15e364d551bcabec20c9e675bdc
  
https://github.com/NixOS/nixpkgs/commit/bb6cf349ffd5c15e364d551bcabec20c9e675bdc
  Author: David Tulig <david.tu...@gmail.com>
  Date:   2017-06-10 (Sat, 10 Jun 2017)

  Changed paths:
M nixos/modules/services/networking/bind.nix

  Log Message:
  ---
  bind service: add listen-on options (#26430)

This adds configuration options for the bind package so that the
interfaces that bind listens on can be configured rather than just
hardcoded as any. The default values preserve the old behavior to be
backwards compatible.


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] f7c081: apvlv: copy main_menubar.glade to out dir

2017-06-04 Thread David Asabina
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f7c081b7e6edd0e77694ee2b3f3ef57a82e82696
  
https://github.com/NixOS/nixpkgs/commit/f7c081b7e6edd0e77694ee2b3f3ef57a82e82696
  Author: David Asabina <v...@bina.me>
  Date:   2017-06-04 (Sun, 04 Jun 2017)

  Changed paths:
M pkgs/applications/misc/apvlv/default.nix

  Log Message:
  ---
  apvlv: copy main_menubar.glade to out dir

The application requires the main_menubar.glade alongside the
Startup.pdf. Just making sure all required assets are present :wink:.

Currently `apvlv` fails with the `(apvlv:16999): Gtk-ERROR **: failed to add 
UI: Failed to open file 
'${store-path}-apvlv-0.1.5/share/doc/apvlv/main_menubar.glade': No such file or 
directory
zsh: trace trap  apvlv` error.

(cherry picked from commit 5029b39b44f4be140d3fa6bb0b945c0b612eeb20)


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] PulseAudio

2017-05-09 Thread David Izquierdo
I don't know how to see that process' logs. Maybe some magic journalctl 
option. Is it possible that it's starting as a systemd user service? 
Then `journalctl --user -eu pulseaudio` would work... But starting pulse 
like that doesn't seem to work for me.



On 09/05/17 21:13, Mark Gardner wrote:

David,

On Tue, May 9, 2017 at 2:59 PM, David Izquierdo <theco...@gmail.com> wrote:


If you run `pulseaudio -k`, does it kill it?


​No:​
$ pulseaudio -k
E: [pulseaudio] main.c: Failed to kill daemon: No such process

​But the daemon is running as me:
$ ps aux | grep pulseaudio
​user
2572  0.0  0.0 490632 10540 ?Sl   14:55   0:00 /nix/store/
a72z0gasiv1145ygyijzgdra921pkk60-pulseaudio-10.0/bin/pulseaudio --start
--log-target=syslog
​user
2604  0.0  0.0 118264  5756 ?S14:55   0:00 /nix/store/
a72z0gasiv1145ygyijzgdra921pkk60-pulseaudio-10.0/libexec/pulse/gconf-helper
​


Once dead, what does it log if you run `pulseaudio` and then try to use
pavucontrol or other program?


​I killed it by hand:
​$ sudo kill 2572 2604
$ mpv foobar.mp3  # plays
$ pavucontrol  # Works!

Going to try a reboot to see if it still works... Back to the previous
behavior until I kill them then start up something that uses pulseaudio.

Making progress. Thanks David.
​
Mark


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


Re: [Nix-dev] PulseAudio

2017-05-09 Thread David Izquierdo
If you run `pulseaudio -k`, does it kill it? Once dead, what does it log 
if you run `pulseaudio` and then try to use pavucontrol or other program?



On 09/05/17 20:58, Mark Gardner wrote:

On Tue, May 9, 2017 at 2:32 PM, Sergiu Ivanov  wrote:


I suppose you tried rebooting after installing the packages?


​Yes. I did that before doing the above actions. I even upgraded to 17.03
(from 16.09) in case that helped. It didn't.
​


I'm afraid I'm running out of ideas, sorry :-( Off the top of my head, I
don't think the no-longer-available wiki page had many more details
relevant to your situation.


​Thanks for your help.

Mark


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


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


Re: [Nix-dev] [NixOS] How to incorporate my Bash script in configuration.nix?

2017-05-09 Thread David Izquierdo
I would have gone to systemd.services. Slightly uglier looking (bigger 
attrset), but should run after the kernel has loaded its modules. I'd 
say it would be ideal to have it be "PartOf = networking.target" and/or 
"Before = dhcpd.service" (or whatever networking thingy you use).



On 09/05/17 13:26, Strahinja Popovic wrote:

Thanks for help Peter,

But I have in dmesg now:

[2.027361] stage-2-init:
/nix/store/zv42ylc0jangv5kv437577qq79v3xq5n-nixos-system-strale-17.03.1033.99dfb6dce3/activate:
line 136: /sys/bus/usb/drivers/rt2800usb/new_id: No such file or directory

How to make it to wait for kernel module?

On Tue, May 9, 2017 at 9:44 AM, Peter Hoeg  wrote:


Hi,

   I have made my USB WiFi to work,

   but I have to call this script whenever I restart the computer.


you can do it this way:

system.activationScripts = {
  rt2800usb = {
text = ''
  echo "0b05 17e8" > /sys/bus/usb/drivers/rt2800usb/new_id
'';
deps = [];
  };
};

--
Regards,
Peter






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


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


[Nix-commits] [NixOS/nixpkgs] b8463e: pythonPackages.markupsafe: 0.23 -> 1.0

2017-04-30 Thread David Izquierdo
  Branch: refs/heads/staging
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b8463e97b63ebd5fa05c14e9f9c52edc9274e753
  
https://github.com/NixOS/nixpkgs/commit/b8463e97b63ebd5fa05c14e9f9c52edc9274e753
  Author: David Izquierdo <da...@izquierdofernandez.com>
  Date:   2017-04-30 (Sun, 30 Apr 2017)

  Changed paths:
M pkgs/top-level/python-packages.nix

  Log Message:
  ---
  pythonPackages.markupsafe: 0.23 -> 1.0


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 7deb42: nixos: use pkgsi686Linux for pkgs_i686 (#24772)

2017-04-26 Thread David McFarland
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7deb425286c74837946917888ed74a23de1f9f68
  
https://github.com/NixOS/nixpkgs/commit/7deb425286c74837946917888ed74a23de1f9f68
  Author: David McFarland <mcfarl...@hotmail.com>
  Date:   2017-04-26 (Wed, 26 Apr 2017)

  Changed paths:
M nixos/modules/misc/extra-arguments.nix
M nixos/modules/misc/nixpkgs.nix

  Log Message:
  ---
  nixos: use pkgsi686Linux for pkgs_i686 (#24772)


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] Can't install NixOS on an NVME drive

2017-04-19 Thread David Izquierdo
If that was indeed the problem, the way to "keep" windows working is to 
reinstall it in AHCI mode. Its recovery tools may or may not be able to 
fix that too.



On 19/04/17 09:55, Julien Tanguy wrote:

Hello Liam,

For NixOS to work, you have to change the SSD controller from RAID ON to
AHCI. This effectively *breaks *the windows install. As of today I haven't
found a better way to switch to windows than to change this SSD setting
each time I want to boot to another OS.

I wrote something about my NixOS install for a Dell XPS 15, you can read
about it here https://jtanguy.cleverapps.io/installing-nixos-on-a-xps-9560/
Domen Kožar pointed me out on Twitter to another config, with a more
elaborate setup with LUKS and such :
https://gist.github.com/grahamc/fba67370053acc01ac216a6e4b73d308

I hope you find what you need.
Julien



On Tue, Apr 18, 2017 at 4:35 PM Liam Wigney  wrote:


Hey all,

I've been trying to install NixOS on the new XPS 13 but I've found that
NixOS can't find the drive in /dev/. There's no listing for /sdax or /nvmex.

I've looked online and found that changing some bios settings (Something
about raid) makes it show up, however doing that stops windows booting.

I'm thinking this could be related to the lenovo controversy
https://www.reddit.com/r/linux/comments/53ri0m/warning_microsoft_signature_pc_program_now/.
The comments say that a Linux compatible driver should be available now but
do I have to enable it somehow? How would I do this for the LiveCD?

I'm brand new to Nix and NixOS so I'm sorry if I missed anything.

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



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


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


Re: [Nix-dev] Managing /home during system activation

2017-04-16 Thread David Izquierdo
That's stupid genius in my eyes. What I'd been doing is to find a way to 
make software look in /etc/xdg before ~/.config, with... varying degrees 
of success. Is there anywhere we could read your implementation?


On 15/04/17 19:36, Peter Jones wrote:

I'd like to manage files in my home directory during system activation.
Sort of like nix-home[1] but during activation so NixOps can also deploy
things such as my shell configuration.  I have an idea, and I'm
wondering how terrible it is.

Based on the way etc activation works, I would build a directory in the
nix store and fill it with symlinks to other parts of the store:

/nix/store/xxx-home-pjones/.zshrc -> /nix/store/xxx-zshrc/zshrc

Then, set up a UnionFS mount so that /nix/store/xxx-home-pjones gets
overlaid on top of /home/pjones.  This means I don't have to search
through /home looking for links to an old generation to deactivate it,
and rolling back just mounts a previous generation on top of /home.

So, how bad is this idea?

Thanks!


[1]: https://github.com/sheenobu/nix-home




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


[Nix-commits] [NixOS/nixpkgs] 12a394: mesa: patch vulkan manifests when any driver is en...

2017-04-09 Thread David McFarland
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 12a39478fd79ee514a76e593f40345f319d9f5a1
  
https://github.com/NixOS/nixpkgs/commit/12a39478fd79ee514a76e593f40345f319d9f5a1
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-04-09 (Sun, 09 Apr 2017)

  Changed paths:
M pkgs/development/libraries/mesa/default.nix

  Log Message:
  ---
  mesa: patch vulkan manifests when any driver is enabled

(cherry picked from commit f2655dd0c7cf1b33700446f57cc5651bd29c1831)
/cc #24757.


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


[Nix-commits] [NixOS/nixpkgs] f2655d: mesa: patch vulkan manifests when any driver is en...

2017-04-09 Thread David McFarland
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f2655dd0c7cf1b33700446f57cc5651bd29c1831
  
https://github.com/NixOS/nixpkgs/commit/f2655dd0c7cf1b33700446f57cc5651bd29c1831
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-04-10 (Mon, 10 Apr 2017)

  Changed paths:
M pkgs/development/libraries/mesa/default.nix

  Log Message:
  ---
  mesa: patch vulkan manifests when any driver is enabled


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


Re: [Nix-dev] Editor for the configuration file

2017-04-04 Thread David Izquierdo
My WiFi module lives within networking.wireless. I don't have any 
reference to either wpa_supplicant or networkmanager.


On 04/04/17 20:22, Andreas Meyer wrote:

Hello!

ah it is nano. I was trying vi and vim and emacs.

One more question for now. To bring up WLAN do I have to enable
wpa_supplicant and networkmanager in the configuration.nix ?

   Andreas

Daniel Peebles  schrieb am 04.04.17 um 14:12:51 Uhr:


nano should be preinstalled on all NixOS systems. Is it not?

On Tue, Apr 4, 2017 at 2:00 PM, Andreas Meyer  wrote:


Hello!

Wanted to look into NixOS but cannot get the network to run
without having an editor. Any chance in this?

Greetings

   Andreas

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

  



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


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


[Nix-commits] [NixOS/nixpkgs] f0ba17: zerotierone: 1.1.14 -> 1.2.2 (#24614)

2017-04-04 Thread David Guibert
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f0ba178a3c13d851270db44a1ac741bcd7fab14e
  
https://github.com/NixOS/nixpkgs/commit/f0ba178a3c13d851270db44a1ac741bcd7fab14e
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2017-04-04 (Tue, 04 Apr 2017)

  Changed paths:
M pkgs/tools/networking/zerotierone/default.nix

  Log Message:
  ---
  zerotierone: 1.1.14 -> 1.2.2 (#24614)


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


[Nix-commits] [NixOS/nixpkgs] 11e196: Revert "steam: use custom openssl"

2017-04-03 Thread David McFarland
  Branch: refs/heads/release-17.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 11e196d28867d52edff59ea51f9ef1b6396acdc6
  
https://github.com/NixOS/nixpkgs/commit/11e196d28867d52edff59ea51f9ef1b6396acdc6
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

  Changed paths:
M pkgs/games/steam/runtime-wrapped.nix

  Log Message:
  ---
  Revert "steam: use custom openssl"

No longer necessary. See 
https://github.com/NixOS/nixpkgs/pull/23034#issuecomment-291005754

This reverts commit a120bad30cbd63019971e9d03edd82423131852c.

(cherry picked from commit 398823da6e8a98d92086606988a78fda7bbeca5b)


  Commit: d1c477e0077c59cf9c1dbcb4afe2bb46a8c01385
  
https://github.com/NixOS/nixpkgs/commit/d1c477e0077c59cf9c1dbcb4afe2bb46a8c01385
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

  Changed paths:
M pkgs/development/libraries/openssl/default.nix
R pkgs/development/libraries/openssl/openssl-fix-cpuid_setup.patch
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Revert "openssl: add custom build of 1.0.2 for steam"

No longer necessary. See 
https://github.com/NixOS/nixpkgs/pull/23034#issuecomment-291005754

This reverts commit a50784b34e771aa4a6c5f4eeb8c25295c15e4ed4.

(cherry picked from commit 2c006ca80565a2a58fbf992f6442722baed497cc)


Compare: https://github.com/NixOS/nixpkgs/compare/e840e05425d0...d1c477e0077c___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 398823: Revert "steam: use custom openssl"

2017-04-03 Thread David McFarland
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 398823da6e8a98d92086606988a78fda7bbeca5b
  
https://github.com/NixOS/nixpkgs/commit/398823da6e8a98d92086606988a78fda7bbeca5b
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

  Changed paths:
M pkgs/games/steam/runtime-wrapped.nix

  Log Message:
  ---
  Revert "steam: use custom openssl"

No longer necessary. See 
https://github.com/NixOS/nixpkgs/pull/23034#issuecomment-291005754

This reverts commit a120bad30cbd63019971e9d03edd82423131852c.


  Commit: 2c006ca80565a2a58fbf992f6442722baed497cc
  
https://github.com/NixOS/nixpkgs/commit/2c006ca80565a2a58fbf992f6442722baed497cc
  Author: David McFarland <corng...@gmail.com>
  Date:   2017-04-03 (Mon, 03 Apr 2017)

  Changed paths:
M pkgs/development/libraries/openssl/default.nix
R pkgs/development/libraries/openssl/openssl-fix-cpuid_setup.patch
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Revert "openssl: add custom build of 1.0.2 for steam"

No longer necessary. See 
https://github.com/NixOS/nixpkgs/pull/23034#issuecomment-291005754

This reverts commit a50784b34e771aa4a6c5f4eeb8c25295c15e4ed4.


Compare: https://github.com/NixOS/nixpkgs/compare/9f34d1f19a34...2c006ca80565___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-23 Thread David Izquierdo
I hereby propose the tool to be renamed and refactocopied to 
`ubuntu-run`, since it will end up being the target runtime anyway :P



On 23/03/17 18:10, Moritz Ulrich wrote:

Azul  writes:


thanks all,

*steam-run* just works

Maybe we should create an alias or a separate incarnation of the same
tool with more dependencies included for "most" software? I'm sure many
newcomers would welcome to be able to run their games or other prebuilt
binaries without having to write Nix in their first days of using NixOS?

I would have liked a tool like this when I got started.


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


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


Re: [Nix-dev] Google Summer of Code 2017

2017-03-15 Thread David Izquierdo

Oh dear, I had been thinking about 1 and 2 lately...


On systemd, I don't think that it's worth it to even try to port 
dependent software. Nix is smart enough to warn about/fix dependencies. 
And "porting" the actual unit files sounds easy IMO, systemd has good 
documentation on unit files that can be easily mapped to alternative 
complementary software (one example I've used recently: `timeout` 
instead of "RuntimeMaxSec"). I don't think indirection would be 
necessary, since the declarative style of units is already really really 
nice to us. Simply moving the relevant options out of the systemd 
namespace and into a more general place (services.service.$NAME?).



BSDs... I thought they had official support... They don't, according to 
the Nix manual's Supported Platforms chapter. I guess once it exists AND 
systemd becomes optional, it's solved itself. And I don't see why Nix 
wouldn't just-work on a BSD when it's supported on Linux and MacOS.



Now, literally all of the above has been pulled out of my backend, and 
from a few months worth of NixOS usage and learning. I hope someone with 
actual knowledge can fix this, and better outline how deep into NixOS's 
internals one would have to plumb to implement this.



On 13/03/17 18:23, Anderson Torres wrote:

2017-01-08 18:40 GMT-02:00 Profpatsch :

On 17-01-04 09:42pm, Vladimír Čunát wrote:

On 01/04/2017 08:51 PM, Peter Simons wrote:

Another very important topic that needs to be addressed in Nix / Hydra
is the question of how to deal with code that wants to import build
products into the ongoing evaluation. [...]

That feels rather vague topic ATM.  My experience is that this kind of
"figure it out how to..." tasks isn't very suitable for similar "project
proposals" like for GSoC.  Still, if we could converge on some more
concrete plan beforehand, maybe the actual implementation would make a
good topic...

I would suggest three big fat proposals:

1 - The most flamewar-igniting one: getting rid of systemd dependency!
It would be very nice if the init system was selectable, with a sane
default (as openrc).
It would be hard as hell to port certain software as Gnome stack, but
I think it can be solved.

2 - Another for the even more courageous would be run a Nixos+kNetBSD
(or kFreeBSD), as in Debian. It would be the definitive test for
portability and independence of Nix model.

3 - Another set of defaults for the stdenv, as musl+clang.


Sounds more like a task for a master’s thesis (or adventurous
bachelor’s thesis) to me.

--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

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


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


Re: [Nix-dev] Move NodeJS to separate overlay repository?

2017-03-11 Thread David Izquierdo
Couldn't this become a kind of dependency hell? I remember from Gentoo 
that having dependencies across overlays is not a fun problem to solve. 
However, Exherbo mostly solved this by having overlays be analogous to 
packages, they become a kind of dependency that must be explicitly 
user-solved before continuing. In the default ebuild tree they have 
indexes of every package in each registered overlay.



I think this should only be done if there's nothing anywhere else 
depending on a derivation from this overlay-to-be.



On 11/03/17 09:12, Wout Mertens wrote:

Hi all,

now that we got these wonderful overlays as a Chrismas gift (
http://lists.science.uu.nl/pipermail/nix-dev/2016-December/022386.html), I
was wondering if we can move some things out of nixpkgs into their own
repos.

There are a few package groups that I believe are not used in NixOS core
(boot, containers, ...) and are not updated as much as they could be. Node,
Haskell, others?

Specifically, nodePackages is always out of date, and it would be nice if
there could be a repository or maybe just a local process that updates them
separately and adds a lot more builds.

Furthermore, building node packages from scratch is ok, because that's what
npm does anyway. So any caching offered by Hydra is a bonus, not a
necessity.

For example, maybe the overlay could be auto-generated every hour from npm?
And then some service fetches it to /etc/nixos/overlays/nodePackages?

Does this seem like a fair assessment? What should be done to achieve this?

Wout.



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


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


Re: [Nix-dev] 'nixos-stable' channel?

2017-03-08 Thread David Izquierdo
I think It could be worthwhile to look at openSUSE's Tumbleweed setup 
for rolling releases. They use openQA for automatic testing of every 
package in the distribution, and then release the binaries as snapshots 
for users to update. Pretty similar to how nixpkgs git -> Hydra -> cache 
works, with an additional testing phase. I _think_ they provide it 
hosted, and if it's similar to OBS, they actively encourage community 
members and distros to use their infrastructure.


https://openqa.opensuse.org/


On 06/03/17 12:24, Kevin Cox wrote:

On 06/03/17 06:54, Sander wrote:

Moving a symlink twice a year?
Good point. I guess it would be worth trying out and we can see how 
many people use this.


I was thinking something more rolling would be nice too. Like a 
lightly tested. Although that would definitely have more maintenance 
costs.

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


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


Re: [Nix-dev] 'nixos-stable' channel?

2017-03-05 Thread David Izquierdo
I think it would be handy though. After all, this is NixOS we're talking 
about. We already have system.stateVersion for protecting stateful data, 
and fixing the rest of the system is only a rollback away. Why not make 
the alias/symlink without making it the default?


On 05/03/17 19:37, Nathan Bijnens wrote:

I think that's dangerous. You will be upgrading without being aware of any
breaking changes.

N.

On Sun, Mar 5, 2017, 17:15 Sander  wrote:


Graham Christensen wrote (ao):

NixOS 17.03 has entered Beta. This means we now have 3 versions of NixOS
being developed:

  - 16.09 (stable)
  - 17.03 (beta)
  - unstable

Would it make sense to have a 'nixos-stable' channel that points to
whatever channel is stable?

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




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


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


Re: [Nix-dev] NixOS 16.09 and Firefox Nightly

2017-03-05 Thread David Izquierdo
AFAIK those restrictions were recently dropped, Debian's firefox is now 
branded Firefox instead of Iceweasel. It probably should be changed in 
nixpkgs too to prevent further confusion.



On 05/03/17 16:16, Graham Christensen wrote:

Hi Mark,

As I understand it, what we ship in 16.09 is indeed the stable version
of Firefox. However, since we build it ourselves the licensing
restrictions of Mozilla require us to not call it "Firefox" but instead
force us to call it "Nightly."

Can you confirm that the version of Firefox you're running matches the
currently available, stable, Firefox?

Best,
Graham Christensen
NixOS Security Team
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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


Re: [Nix-dev] Can't launch XFCE from SDDM?

2017-03-05 Thread David Izquierdo
SDDM is problematic to me with i3 too. Right now, if I try to login to 
i3 via SDDM I'm returned to SDDM (I don't have plasma enabled). Logs 
didn't look like anything was wrong to me.



On 05/03/17 04:38, laverne wrote:

Hi,



I have the following lines in my /etc/nixos/configuration.nix



   services.xserver.displayManager.sddm.enable = true;

   services.xserver.desktopManager.kde5.enable = true;



I just tried *adding* this one:



   services.xserver.desktopManager.xfce.enable = true;



and then `nixos-rebuild switch`



Now SDDM offers kde5, xterm, and xfce (instead of just kde5 and xterm). 
However, selecting xfce still takes me to the KDE desktop.



These lines from the system log seem relevant:



Mar 04 21:10:37 laverne-pc systemd[1]: Started User Manager for UID 1000.

Mar 04 21:10:37 laverne-pc sddm-helper[4290]: Starting: 
"/nix/store/h2m02ai92x3rycygqpq57x7pbwv9znqg-xsession 
/nix/store/h2m02ai92x3rycygqpq57x7pbwv9znqg-xsession 'xfce'"

Mar 04 21:10:37 laverne-pc sddm-helper[4300]: Adding cookie to 
"/home/laverne/.Xauthority"

Mar 04 21:10:37 laverne-pc sddm[750]: Session started

Mar 04 21:10:37 laverne-pc xsession[4300]: removed 
'/home/laverne/.cache/icon-cache.kcache'

Mar 04 21:10:38 laverne-pc xsession[4300]: Loading stage  "initial" 260

Mar 04 21:10:38 laverne-pc xsession[4300]: startkde: Starting up...



(My mail client wraps that oddly)



What is with the weird call to the xsession script? Is it actually calling the 
script and passing the script name as it's first argument with 'xfce' as the 
second argument? I'm not very good at reading Bash scripts, but I'm pretty sure 
that the script never uses its second argument (esp. if the first starts with a 
'/').



I'm running NixOS 16.09.1803.40de598.



Does anyone else have SDDM + XFCE working on 16.09? I would also be willing to 
give the 17.03 beta a try if folks think this will work better there.



Cheers,

Laverne









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


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


Re: [Nix-dev] Copy a closure to machine with no Nix installed on it

2017-03-02 Thread David Kleuker
Hello Volth,

some days ago https://github.com/matthewbauer/nix-bundle was mentioned on the 
ML.

I havn't tested it, so i can't say how mature and stable it is, but it should 
be exactly what you are looking for.

When you have tested it, i would like to know if it works for you.

kind regards
davidak

> 
> Volth  hat am 2. März 2017 um 17:38 geschrieben:
> 
> Hello
> 
> What is a good way to copy a closure to a Linux machine where Nix is
> not installed (and it is tricky to install: 1. there is only root
> account and 2. there may be no Internet access) ?
> 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Best Practices on Modularizing Configuration.nix?

2017-02-27 Thread David Izquierdo
My setup is also very similar. I have a configuration.nix with all the 
common setup, which imports hosts/current.nix, which is a (.gitignored) 
symlink to the appropiate host.nix. Then, the host.nix imports from 
modules/*.nix. I also have an etc with generic (not written in Nix) 
configuration files that get imported via builtins.readFile (shell RCs, 
for example) or referred to by *.configFile (i3 config).



I'm planning a slight refactor in which the symlink is actually 
configuration.nix, so that I can make certain reusable declarations into 
a module (I like specific users, UIDs, passwords, and hostnames for each 
host, right now there's a lot of identical lines, varying only the 
username).



I _do_ sync the config tree to my server, since it also serves as a 
general purpose remote computer, and I end up using it a lot when not on 
a machine I own.



On 27/02/17 15:28, Tomasz Czyż wrote:

Hey Mark,

I use almost the same setup and for 1.5y works very well.

I have "modules" and "hosts" directories. Each "host" contains
configuration about hardware/disk setup and includes set of modules from
"modules". On each host there is a symlink to correct
"hosts/.nix" file.

I found this setup pretty robust on dev machines.
On servers I use nixops which pushes configuration so I don't manage
/etc/nixos there.

Tom

2017-02-27 14:15 GMT+00:00 Mark Gardner :


Now that I am putting NixOS on more and more machines, I would like to
modularize and share parts of the config to maximize reuse and ensure
uniformity. My approach is to consider the sub-config files as traits or
roles and combine them together to create configuration.nix for a specific
machine, like this:

- cfg/common.nix  # common config
- cfg/desktop.nix  # xorg and related
- cfg/laptop.nix  # related to all laptops
- cfg/work.nix  # work location related
...
- cfg/mylaptop.nix  # specific laptop related

I import from these to make up configuration.nix. For example, on my
laptop, configuration.nix contains:

---
{ config, pkgs, ... }:

{
   imports =
 [
   ./hardware-configuration.nix
   ./cfg/mylaptop.nix
   ./cfg/common.nix
   ./cfg/desktop.nix
   ./cfg/laptop.nix
   ./cfg/work.nix
 ];
}
---

So far, this seems like a good approach. Except that each machine has its
own configuration.nix that I would like to keep in the git repository too
but of course I can't have different top level files with the same name. To
solve this, I could moved the current configuration.nix inside of cfg (as
cfg/mylaptop.cfg.nix perhaps) or merge with the existing cfg/mylaptop.nix
then making configuration.nix a symlink to it. That way the only thing to
do by hand is create the symlink to select a particular configuration. Is
this reasonable? Is there a better way to do it?

How do you modularize your configuration and put it into a repo such that
you can easily create a configuration for a new machine (and put it in the
repo too) without a lot of hand work?

Mark
--
Mark Gardner
--

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






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


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


[Nix-commits] [NixOS/nixpkgs] 85fba5: Attempt to update RocksDB to 5.1.2.

2017-02-20 Thread David James
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 85fba54bc65ffcf93a2dbed2ececd97af1593ae9
  
https://github.com/NixOS/nixpkgs/commit/85fba54bc65ffcf93a2dbed2ececd97af1593ae9
  Author: David James <davidcjames+...@gmail.com>
  Date:   2017-02-20 (Mon, 20 Feb 2017)

  Changed paths:
M pkgs/development/libraries/rocksdb/default.nix

  Log Message:
  ---
  Attempt to update RocksDB to 5.1.2.


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


[Nix-commits] [NixOS/nixpkgs] 90d225: microsoft_gsl: init at 2017-02-13

2017-02-16 Thread David Terry
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 90d225db766baa997a2ded830de968d27432b9d8
  
https://github.com/NixOS/nixpkgs/commit/90d225db766baa997a2ded830de968d27432b9d8
  Author: David Terry <davidte...@posteo.de>
  Date:   2017-02-17 (Fri, 17 Feb 2017)

  Changed paths:
A pkgs/development/libraries/microsoft_gsl/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  microsoft_gsl: init at 2017-02-13


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


[Nix-commits] [NixOS/nixpkgs] a35230: range-v3: init at 2017-01-30 (#22661)

2017-02-11 Thread David Terry
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: a3523022e704cfeda7c5c38166ff00343ed739ef
  
https://github.com/NixOS/nixpkgs/commit/a3523022e704cfeda7c5c38166ff00343ed739ef
  Author: David Terry <xwvvv...@users.noreply.github.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
M lib/maintainers.nix
A pkgs/development/libraries/range-v3/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  range-v3: init at 2017-01-30 (#22661)


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


Re: [Nix-dev] How to ensure that a directory exists via configuration.nix

2017-02-10 Thread David Izquierdo

Is there any reason not to use `mkdir -p`, to spare yourself the if?


On 10/02/17 17:06, Mark Gardner wrote:

Once again, thanks Layus!

For the benefit of others, here is what I put in my configuration.nix:

   system.activationScripts = {
   mnt = {
 text = ''if [ ! -d /mnt ] ; then mkdir /mnt; fi";
 deps = [];
   };
};

Mark


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


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


Re: [Nix-dev] help with patch for screen locking

2017-02-07 Thread david

On 2017-02-07 19:50, Tomasz Czyż wrote:

David,

I assume you are not talking about
https://github.com/NixOS/nixpkgs/issues/16485 [2]?


In fact I'm talking about https://github.com/NixOS/nixpkgs/issues/16845 
:-) my mistake



Usually I'm using this kind of stuff as part of user session/desktop
environment.


Exactly, the actual screenlocker would be installed as a system package, 
I thought it was okay because I noticed something like that was already 
present in xfce.nix, but maybe we can adapt xfce4-session to accept a 
new build input and change it so that it calls the screenlocker in the 
nix store instead of calling the system package.


With regards to slock: maybe we can ask the user to explicitly enable 
the suid like we do when a user tries to install a non-free package?

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


Re: [Nix-dev] PCI Expresscard not working under NixOS

2017-02-07 Thread David Izquierdo
And while you're at it, you should probably check `lspci -k` on the 
working system to see what kernel module it uses, in case it's missing 
from NixOS.



On 07/02/17 12:26, Tomasz Czyż wrote:
What about doing quick check and running ubuntu from livecd/usb to 
confirm if card still is alive?


2017-02-07 2:23 GMT+00:00 Roger Qiu >:


It might be a missing driver. Ultimately is the kernel, its
drivers and modules that deal with hardware and IO. You might need
to google around and ask specifically for the given pci expess
hardware serial code and model.

On 07/02/2017 9:39 AM, "Christoph-Simon Senjak"
> wrote:

Hello.

On 06.02.2017 06:36, Roger Qiu wrote:

When you plug something in, the kernel log should show
something. If it
doesn't then the kernel doesn't know about it, nothing in
the userspace
can help.


How can that be?

Make sure you're running those commands before you plug
the usb in.

>

Also I used to have faulty usb cables, but even then the
kernel showed
something. Usually repeating messages because the usb
cable kept
dropping out and coming back in.

What happens if you plug those devices directly?


The kernel does not notice the expresscard itself when I plug
it in. My usb hard disk works perfectly under the other ports.

Ah, and fun fact: When plugging in the expresscard, I can
reproducibly scramble my sound output for a second (the music
repeats for a second after I plug it in). Still, the kernel
says nothing. And no device nodes appear.


On 06/02/2017 2:55 PM, "Christoph-Simon Senjak"

>> wrote:

Hi.

On 06.02.2017 04:46, Peter Hoeg wrote:

Hi,

My USB 3.0 Expresscard does not work under
NixOS, it used to
work
under other distros. I already tried to add


Can you be a little more specific about "does not
work"?


Nothing happens. Like, really nothing. No new hub is
shown in lsusb
(as it was under Ubuntu). Devices I plug in are not
shown. Nothing.

When you plug it in, what messages are you seeing
while running
these 2
commands in separate terminals:

journalctl -k -f

and

udevadm monitor


Nothing. No output.

Regards, CSS
___
nix-dev mailing list
nix-dev@lists.science.uu.nl

>
http://lists.science.uu.nl/mailman/listinfo/nix-dev

>


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





--
Tomasz Czyż


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


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


[Nix-dev] help with patch for screen locking

2017-02-06 Thread david

Hi!
I am making a patch to fix issue #16485 but I have encountered an issue.

I added an option called screenLock to 
services.xserver.desktopManager.xfce that can take only "xscreensaver" 
"xlockmore" "slock" "gnome-screensaver" as values but:


- gnome-screensaver seems to not exist anymore, at least not on nixos, 
so I removed the choice
- slock needs suid to lock the screen, as explained in the wiki too, so 
I don't know if with this patch I should install slock and also set it 
suid, or if it's better to leave the choice out, or if the user that 
puts screenLock = "slock" should be presented an error in case slock is 
not set suid by the user themselves.



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


[Nix-commits] [NixOS/nixpkgs] 927617: sfml: 2.3 -> 2.4.1

2017-01-27 Thread David Terry
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9276178e68d1f5b323a3236f457eafb94272a0fc
  
https://github.com/NixOS/nixpkgs/commit/9276178e68d1f5b323a3236f457eafb94272a0fc
  Author: David Terry <davidte...@posteo.de>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
M pkgs/development/libraries/sfml/default.nix

  Log Message:
  ---
  sfml: 2.3 -> 2.4.1


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


[Nix-commits] [NixOS/nixpkgs] b2da3d: amdgpu-pro: 16.40 -> 16.50 (#21502)

2017-01-10 Thread David McFarland
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b2da3d3050be079b57f9f5677c772efcf82b61f2
  
https://github.com/NixOS/nixpkgs/commit/b2da3d3050be079b57f9f5677c772efcf82b61f2
  Author: David McFarland <mcfarl...@hotmail.com>
  Date:   2017-01-10 (Tue, 10 Jan 2017)

  Changed paths:
M pkgs/os-specific/linux/amdgpu-pro/default.nix
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0001-Find-correct-System.map.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0001-Fix-kernel-module-install-location.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0002-Add-Gentoo-as-build-option.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0002-Fix-kernel-module-install-location.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0003-Add-Gentoo-as-build-option.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0003-Remove-extra-parameter-from-ttm_bo_reserve-for-4.7.0.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0004-Change-seq_printf-format-for-64-bit-context.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0004-Remove-extra-parameter-from-ttm_bo_reserve-for-4.7.0.patch
A pkgs/os-specific/linux/amdgpu-pro/patches/0005-Fix-vblank-calls.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0005-Remove-first-param-from-drm_gem_object_lookup.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0006-Fix-crtc_gamma-functions-for-4.8.0.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0006-Remove-vblank_disable_allowed-assignment.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0007-Fix-__drm_atomic_helper_connector_destroy_state-call.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0007-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0008-Add-extra-flag-to-ttm_bo_move_ttm-for-4.8.0-rc2.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0008-Change-seq_printf-format-for-64-bit-context.patch
R pkgs/os-specific/linux/amdgpu-pro/patches/0009-Fix-vblank-calls.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0009-Remove-dependency-on-System.map.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0010-Fix-crtc_gamma-functions-for-4.8.0.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0010-disable-dal-by-default.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0011-kcl-fixes-for-16.50-linux-4.8.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0012-Add-extra-flag-to-ttm_bo_move_ttm-for-4.8.0-rc2.patch
A 
pkgs/os-specific/linux/amdgpu-pro/patches/0012-use-kernel-fence_array-in-4.8.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0013-Remove-dependency-on-System.map.patch
R 
pkgs/os-specific/linux/amdgpu-pro/patches/0014-disable-dal-by-default.patch

  Log Message:
  ---
  amdgpu-pro: 16.40 -> 16.50 (#21502)


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


[Nix-commits] [NixOS/nixpkgs] 341447: urlscan: init at 0.8.3

2016-12-28 Thread David Pätzel
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 3414470d9d3ec273bfe255abef6c92febff308b3
  
https://github.com/NixOS/nixpkgs/commit/3414470d9d3ec273bfe255abef6c92febff308b3
  Author: David Pätzel <david.a.paetzel+git...@gmail.com>
  Date:   2016-12-28 (Wed, 28 Dec 2016)

  Changed paths:
M lib/maintainers.nix
A pkgs/applications/misc/urlscan/default.nix
M pkgs/top-level/python-packages.nix

  Log Message:
  ---
  urlscan: init at 0.8.3


  Commit: 2d38cad288207e1f8eb27d1ddea097e58a621e01
  
https://github.com/NixOS/nixpkgs/commit/2d38cad288207e1f8eb27d1ddea097e58a621e01
  Author: David Pätzel <david.a.paetzel+git...@gmail.com>
  Date:   2016-12-28 (Wed, 28 Dec 2016)

  Changed paths:
M pkgs/applications/misc/urlscan/default.nix

  Log Message:
  ---
  enhance python version check


Compare: https://github.com/NixOS/nixpkgs/compare/88d61cce2848...2d38cad28820___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 35399f: vscode: 1.6.1 -> 1.7.2

2016-12-15 Thread David Terry
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 35399f93d6d379a01225fd3860582e915b0de45a
  
https://github.com/NixOS/nixpkgs/commit/35399f93d6d379a01225fd3860582e915b0de45a
  Author: David Terry <xwvvv...@users.noreply.github.com>
  Date:   2016-12-15 (Thu, 15 Dec 2016)

  Changed paths:
M pkgs/applications/editors/vscode/default.nix

  Log Message:
  ---
  vscode: 1.6.1 -> 1.7.2


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


[Nix-commits] [NixOS/nixpkgs] f067bc: nixos: docs: note that channels are per user

2016-12-07 Thread David Terry
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f067bca841e788cc744b285840b53d0610d57ddf
  
https://github.com/NixOS/nixpkgs/commit/f067bca841e788cc744b285840b53d0610d57ddf
  Author: David Terry <xwvvv...@users.noreply.github.com>
  Date:   2016-12-07 (Wed, 07 Dec 2016)

  Changed paths:
M nixos/doc/manual/installation/upgrading.xml

  Log Message:
  ---
  nixos: docs: note that channels are per user


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


[Nix-commits] [NixOS/nixpkgs] ce8d2a: restore rclone

2016-10-02 Thread David Guibert
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ce8d2aad27722480ace6ef9d6ffb9a6aae4a8a97
  
https://github.com/NixOS/nixpkgs/commit/ce8d2aad27722480ace6ef9d6ffb9a6aae4a8a97
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2016-10-02 (Sun, 02 Oct 2016)

  Changed paths:
A pkgs/applications/networking/sync/rclone/default.nix
A pkgs/applications/networking/sync/rclone/deps.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  restore rclone

By getting rid of go-packages.nix (#16017), rclone has removed (introduced by 
#15852).


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


Re: [Nix-dev] Unwanted, unannounced reboot

2016-08-30 Thread Jeffrey David Johnson
I have a probably-unrelated issue, but mentioning it just in case. Mine 
involves VirtualBox. When starting up I will log in and open my email or 
something, but in the background the vboxnet0 service will be failing to start 
via systemd. When it times out after 90 sec the X server is killed without 
warning and I'm back at login.
Jeff

On Tue, 30 Aug 2016 14:31:11 +0200
Matthias Beyer  wrote:

> Hi,
> 
> this is the third time I got a unwanted, unannounced reboot of my 
> Thinkpad X220. The device just went off and rebooted.
> 
> My logs:
> 
> Aug 30 13:16:23 yuu audit[27536]: SECCOMP auid=1000 uid=1000 gid=100 
> ses=1 pid=27536 comm="chromium" 
> exe="/nix/store/28b56yiqshs8kvnha23vvwp0m4rlyyis-chromium-52.0.2743.116/libexec/chromium/chromium"
>  sig=0 arch=c03e syscal
> Aug 30 13:16:23 yuu audit[27537]: SECCOMP auid=1000 uid=1000 gid=100 
> ses=1 pid=27537 comm="chromium" 
> exe="/nix/store/28b56yiqshs8kvnha23vvwp0m4rlyyis-chromium-52.0.2743.116/libexec/chromium/chromium"
>  sig=0 arch=c03e syscal
> Aug 30 13:16:23 yuu audit[27539]: SECCOMP auid=1000 uid=1000 gid=100 
> ses=1 pid=27539 comm="chromium" 
> exe="/nix/store/28b56yiqshs8kvnha23vvwp0m4rlyyis-chromium-52.0.2743.116/libexec/chromium/chromium"
>  sig=0 arch=c03e syscal
> Aug 30 13:16:23 yuu audit[27538]: SECCOMP auid=1000 uid=1000 gid=100 
> ses=1 pid=27538 comm="chromium" 
> exe="/nix/store/28b56yiqshs8kvnha23vvwp0m4rlyyis-chromium-52.0.2743.116/libexec/chromium/chromium"
>  sig=0 arch=c03e syscal
> Aug 30 13:16:23 yuu kernel: audit: type=1326 audit(1472555783.141:55627): 
> auid=1000 uid=1000 gid=100 ses=1 pid=27539 comm="chromium" 
> exe="/nix/store/28b56yiqshs8kvnha23vvwp0m4rlyyis-chromium-52.0.2743.116/libexec/chromium/chro
> Aug 30 13:16:23 yuu kernel: audit: type=1326 audit(1472555783.141:55628): 
> auid=1000 uid=1000 gid=100 ses=1 pid=27538 comm="chromium" 
> exe="/nix/store/28b56yiqshs8kvnha23vvwp0m4rlyyis-chromium-52.0.2743.116/libexec/chromium/chro
> -- Reboot --
> Aug 30 14:17:20 yuu systemd-journald[570]: Runtime journal 
> (/run/log/journal/) is 8.0M, max 398.4M, 390.4M free.
> Aug 30 14:17:21 yuu systemd-journald[570]: System journal 
> (/var/log/journal/) is 1.9G, max 4.0G, 2.0G free.
> Aug 30 14:17:21 yuu systemd-journald[570]: Time spent on flushing to /var 
> is 1.345ms for 2 entries.
> Aug 30 14:17:21 yuu kernel: Linux version 4.7.0 (nixbld@localhost) (gcc 
> version 5.4.0 (GCC) ) #1-NixOS SMP Sun Jul 24 19:23:50 UTC 2016
> 
> So, as you can see, there is no shutdown process (stopping processes,
> closing journal, etc).
> 
> What is this? How does this happen?
> 
> -- 
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
> 
> Proudly sent with mutt.
> Happily signed with gnupg.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 21f2f3: virtualbox: 5.0.20 -> 5.0.26

2016-08-28 Thread David Guibert
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 21f2f3074063017a6580fc1c5889ee54094160ff
  
https://github.com/NixOS/nixpkgs/commit/21f2f3074063017a6580fc1c5889ee54094160ff
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2016-08-28 (Sun, 28 Aug 2016)

  Changed paths:
M pkgs/applications/virtualization/virtualbox/default.nix
M pkgs/applications/virtualization/virtualbox/guest-additions/default.nix

  Log Message:
  ---
  virtualbox: 5.0.20 -> 5.0.26


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


[Nix-commits] [NixOS/nixpkgs] 1c1a03: hdf5: 1.8.16 -> 1.10.0-patch1

2016-08-28 Thread David Guibert
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1c1a03f0d38606fd4a80e61a19ddfd3c463d99df
  
https://github.com/NixOS/nixpkgs/commit/1c1a03f0d38606fd4a80e61a19ddfd3c463d99df
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2016-08-28 (Sun, 28 Aug 2016)

  Changed paths:
M pkgs/tools/misc/hdf5/default.nix

  Log Message:
  ---
  hdf5: 1.8.16 -> 1.10.0-patch1


  Commit: dfb3707dab86c852991d0668db2f46f0e3ba0ed9
  
https://github.com/NixOS/nixpkgs/commit/dfb3707dab86c852991d0668db2f46f0e3ba0ed9
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2016-08-28 (Sun, 28 Aug 2016)

  Changed paths:
M pkgs/development/python-modules/h5py/default.nix

  Log Message:
  ---
  h5py: 2.5.0 -> 2.6.0

Tests are broken in 2.5.0 (errors when executing "cythonize()"), not in
version 2.6.0.


Compare: https://github.com/NixOS/nixpkgs/compare/1ba0ef1c73e7...dfb3707dab86___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] ed4a06: NixOS manual: Add docs for Virtualbox guest (#1745...

2016-08-06 Thread David Reaver
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ed4a061c34382f487b4da11fd4b8130ed215931a
  
https://github.com/NixOS/nixpkgs/commit/ed4a061c34382f487b4da11fd4b8130ed215931a
  Author: David Reaver <johndrea...@gmail.com>
  Date:   2016-08-07 (Sun, 07 Aug 2016)

  Changed paths:
A nixos/doc/manual/installation/installing-virtualbox-guest.xml
M nixos/doc/manual/installation/installing.xml

  Log Message:
  ---
  NixOS manual: Add docs for Virtualbox guest (#17454)

Fixes #13311


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


[Nix-commits] [NixOS/nixpkgs] af2d60: wpsoffice: 10.1.0.5503 -> 10.1.0.5672 (#16630)

2016-06-30 Thread David Guibert
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: af2d6022577beb8290909b705254d05ea3ab07e5
  
https://github.com/NixOS/nixpkgs/commit/af2d6022577beb8290909b705254d05ea3ab07e5
  Author: David Guibert <david.guib...@gmail.com>
  Date:   2016-06-30 (Thu, 30 Jun 2016)

  Changed paths:
M pkgs/applications/office/wpsoffice/default.nix

  Log Message:
  ---
  wpsoffice: 10.1.0.5503 -> 10.1.0.5672 (#16630)

The url of the previous package is broken.


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


Re: [Nix-dev] Raspberry-Pi NixOS

2016-06-15 Thread Jeffrey David Johnson
I tried a few months ago and wasn't able to get it working. It runs, but
I wasn't able to upgrade Nix. May have been a temporary problem fixed in
recent versions though.
Jeff

On Wed, 15 Jun 2016 15:19:19 +0200
Matthias Beyer  wrote:

> On 15-06-2016 14:52:22, Lluís Batlle i Rossell wrote:
> > I use nixos in the pi2 since pre-15.09. Now with 16.03.
> 
> That sounds awesome, so I guess it is not that hard to set up.
> 
> Are there substitutes available or do you use the raspberry itself or some 
> other
> machine to build packages for ARM?
> 
> > 
> > On Wed, Jun 15, 2016 at 02:26:51PM +0200, Bas van Dijk wrote:
> > > LumiGuide [...] NixOS like all our other machines.
> 
> Sounds like a nice place to work at! :-)
> 
> -- 
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
> 
> Proudly sent with mutt.
> Happily signed with gnupg.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Latex package to handle unicode characters?

2016-06-06 Thread Jeffrey David Johnson
I was using texLiveFull until recently, but now it's marked broken and a 
comment points users to the texlive.combine method. I tried checking out an 
older version of pkgs/tools/typesetting/tex but the dependencies don't line up 
with the rest of nixpkgs anymore. Probably I just want the full set of 
texlive-new packages, even if they're big, becuase I don't know what I'm doing 
enough to pick and choose. So I tried this monster (all collections + inputenc 
packages):

  myTexlive = with pkgs; texlive.combine {
inherit (texlive)
  collection-basic
  collection-bibtexextra
  collection-binextra
  collection-context
  collection-fontsextra
  collection-fontsrecommended
  collection-fontutils
  collection-formatsextra
  collection-games
  collection-genericextra
  collection-genericrecommended
  collection-htmlxml
  collection-humanities
  collection-langafrican
  collection-langarabic
  collection-langchinese
  collection-langcjk
  collection-langcyrillic
  collection-langczechslovak
  collection-langenglish
  collection-langeuropean
  collection-langfrench
  collection-langgerman
  collection-langgreek
  collection-langindic
  collection-langitalian
  collection-langjapanese
  collection-langkorean
  collection-langother
  collection-langpolish
  collection-langportuguese
  collection-langspanish
  collection-latex
  collection-latexextra
  collection-latexrecommended
  collection-luatex
  collection-mathextra
  collection-metapost
  collection-music
  collection-omega
  collection-pictures
  collection-plainextra
  collection-pstricks
  collection-publishers
  collection-science
  collection-texworks
  collection-wintools
  collection-xetex
  greek-inputenc;
  };

Still the same error though. Maybe it's a pandoc issue after all.
Jeff

On Wed, 1 Jun 2016 02:45:18 -0700
Linus Arver <linusar...@gmail.com> wrote:

> On Sun, May 29, 2016 at 04:56:12PM -0700, Jeffrey David Johnson wrote:
> > I get the following error when exporting some markdown to PDF with pandoc:
> > 
> > An error occured: PDF creation failed:
> > ! Package inputenc Error: Unicode char \u8:  not set up for use with 
> > LaTeX.
> > 
> > See the inputenc package documentation for explanation.
> > Type  H   for immediate help.
> >  ...  
> >   
> > l.150   Evolutionary Analysis}
> > 
> > Try running pandoc with --latex-engine=xelatex.
> > 
> > I could hunt this one character down, but is there a package I could add to 
> > my texlive environment that might help handle this type of problem in 
> > general?
> 
> I used to use the texliveFull package, which included xelatex.
> 
> FWIW, I no longer use texliveFull; instead I use a Docker container for
> all TeX-related things as it is much simpler to use along with
> negligible maintenence costs, if at all.
> 
> > So far I just use the standard one:
> > 
> > myTexLive = texlive.combine {
> >   inherit (texlive) scheme-small;
> > };
> > 
> > Don't see any mention of xelatex in nixpkgs.
> 
> That's probably because it still comes with texliveFull, which is what
> most people use I imagine.
> 
> > Ideally I'd like to handle all of unicode, but just skipping any 
> > unrenderable characters would be OK too, since I gather latex doesn't do 
> > that yet?
> 
> AFAIK, Latex never dealt with Unicode natively. Xelatex has much simpler
> font support (fontspec) so I've always opted for Xelatex from the beginning.
> 
> Best,
> Linus
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] python2nix requires old pip?

2016-06-06 Thread Jeffrey David Johnson
What's the current state of the py*2nix helpers? I just tried to run python2nix 
and got this:

$ python2nix 
Traceback (most recent call last):
  File 
"/nix/store/mpzwan1fyraps3kmigpda76lzyj9r9qy-python2nix-20140927/bin/.python2nix-wrapped",
 line 8, in 
from python2nix import main
  File 
"/nix/store/mpzwan1fyraps3kmigpda76lzyj9r9qy-python2nix-20140927/lib/python2.7/site-packages/python2nix/__init__.py",
 line 5, in 
from python2nix import pip_deps
  File 
"/nix/store/mpzwan1fyraps3kmigpda76lzyj9r9qy-python2nix-20140927/lib/python2.7/site-packages/python2nix/pip_deps.py",
 line 15, in 
from pip.log import logger
ImportError: No module named log

It worked for me until recently. Is anyone else currently using it? According 
to https://github.com/proger/python2nix it requires pip==1.5.6, so I'm guessing 
that just needs to be hunted down and added as a dependency.

Also tried cloning the two pypi2nix repos (https://github.com/garbas/pypi2nix 
and https://github.com/offlinehacker/pypi2nix) but couldn't get either of them 
to work.
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Latex package to handle unicode characters?

2016-05-29 Thread Jeffrey David Johnson
I get the following error when exporting some markdown to PDF with pandoc:

An error occured: PDF creation failed:
! Package inputenc Error: Unicode char \u8:  not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H   for immediate help.
 ...  
  
l.150   Evolutionary Analysis}

Try running pandoc with --latex-engine=xelatex.

I could hunt this one character down, but is there a package I could add to my 
texlive environment that might help handle this type of problem in general? So 
far I just use the standard one:

myTexLive = texlive.combine {
  inherit (texlive) scheme-small;
};

Don't see any mention of xelatex in nixpkgs. Ideally I'd like to handle all of 
unicode, but just skipping any unrenderable characters would be OK too, since I 
gather latex doesn't do that yet?

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


[Nix-commits] [NixOS/nixpkgs] 415a07: syncthing: 0.12.23 -> 0.12.25 (#15723)

2016-05-26 Thread David Tulig
  Branch: refs/heads/release-16.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 415a07e126aac89b67b933b0cffa237cb77c2161
  
https://github.com/NixOS/nixpkgs/commit/415a07e126aac89b67b933b0cffa237cb77c2161
  Author: David Tulig <david.tu...@gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
M pkgs/top-level/go-packages.nix

  Log Message:
  ---
  syncthing: 0.12.23 -> 0.12.25 (#15723)

fixes #15633

(cherry picked from commit ddf264536cd418d2bdb6ceab41c7fa052ac5a809)


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


[Nix-commits] [NixOS/nixpkgs] ddf264: syncthing: 0.12.23 -> 0.12.25 (#15723)

2016-05-26 Thread David Tulig
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ddf264536cd418d2bdb6ceab41c7fa052ac5a809
  
https://github.com/NixOS/nixpkgs/commit/ddf264536cd418d2bdb6ceab41c7fa052ac5a809
  Author: David Tulig <david.tu...@gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
M pkgs/top-level/go-packages.nix

  Log Message:
  ---
  syncthing: 0.12.23 -> 0.12.25 (#15723)

fixes #15633


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


[Nix-dev] cannot find -lgcc

2016-05-04 Thread David Craven
I'm getting the following error message when trying to cross compile
using a custom toolchain. Am I missing a wrapCC or something like
that? I checked that the libgcc.a has the correct file format.

libgcc file format:
/tmp/libgcc/_absvdi2.o: ELF 32-bit LSB relocatable, UCB
RISC-V, version 1 (SYSV), not stripped

error message:
/nix/store/3da37l9f2f5jwwv8sgkhyv94qxxf08sb-riscv-toolchain/lib/gcc/riscv32-unknown-elf/5.3.0/../../../../riscv32-unknown-elf/bin/ld:
skipping incompatible
/nix/store/3da37l9f2f5jwwv8sgkhyv94qxxf08sb-riscv-toolchain/lib/gcc/riscv32-unknown-elf/5.3.0/libgcc.a
when searching for -lgcc
/nix/store/3da37l9f2f5jwwv8sgkhyv94qxxf08sb-riscv-toolchain/lib/gcc/riscv32-unknown-elf/5.3.0/../../../../riscv32-unknown-elf/bin/ld:
cannot find -lgcc

nix-expression:
riscv-toolchain = {arch, xlen}: stdenv.mkDerivation {
name = "riscv-toolchain";

dontPatchELF = true;

src = fetchFromGitHub {
  owner = "riscv";
  repo = "riscv-gnu-toolchain";
  rev = "06c957aba75025d8da554fe6b6402fb631a93e77";
  sha256 = "1qqgpk542bkaxrd3x8kxpbh0gspns85q5f5frg72976f0mhd497d";
};

configureFlags = "--with-xlen=${toString xlen} --with-arch=${arch}
--disable-float --disable-atomic";

buildInputs = [ gmp libmpc mpfr gawk bison flex texinfo gperf curl ];
  };

riscv32-toolchain = {arch}: riscv-toolchain { inherit arch; xlen=32; };
riscv32i-toolchain = riscv32-toolchain {arch = "I"; };
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Wrap Debian packages with buildFHSUserEnv

2015-12-05 Thread Jeffrey David Johnson
I read this post by Anders J Papitto:

http://anderspapitto.com/posts/2015-02-28-deb-installation-nixos.html

and got excited. You can actually install Debian packages? Even complex
ones like Steam? I started refactoring his example and surprisingly it
wasn't hard to put in an automation-friendly format. So my question is
why has no one done this before? Is it considered a bad idea? Are there
legal issues? Have I just not heard of it? And if not, any interest in
extending it to cover more packages and/or have a proper deb2nix script?

Here's the code, which can be unzipped and run with `nix-build`:

https://gist.github.com/jefdaj/9c88c5f9712f33faf7b1

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


Re: [Nix-dev] error in unpack-bootstrap-tools.sh

2015-11-10 Thread Matei David
On Fri, 30 Oct 2015 08:56:29 -0700
"Ericson, John"  wrote:

> `unshare -urm` should do the trick if you have it. Also check if `man
> 2 unshare` describes a CLONE_NEWUSR flag. `man 7 user_namespaces` is
> also a good resource.

Sorry for the delay. I looked into this, and the unshare version
available on my cluster does not support -r. Furthermore,
lxc-checkconfig reports:

User namespace: missing

So I think the kernel is too old for such things.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] error in unpack-bootstrap-tools.sh

2015-10-28 Thread Matei David
Hi,

I'm trying to install nix without root priviledges under my home dir.
The host is Debian squeeze running on a cluster. I followed the wiki
here:
https://nixos.org/wiki/How_to_install_nix_in_home_(on_another_distribution)

I tried the manual version because I want the binaries to run fast,
without PTRACE, for instance.

So I installed all the prerequisites listed there, and also the ones
mentioned in this issue:
https://github.com/NixOS/nix/issues/512

However, the last command:
nix-env -iA nixpkgs.nix

fails with the following error:
/some-dir/nix/store/...-unpack-bootstrap-tools.sh: line
19: /some-dir/nix/store/...-bootstrap-tools/lib/ld-*so.?:
not found

I added some logging to the script and from what I can tell, the script
seems to be run/evaluated by busybox, with no PATH set. However, busybox
doesn't seem to have globbing enabled:

$ env -i /some-dir/nix/store/...-busybox ash
$ echo *
*

So how is it supposed to find the dynamic linker on that line?

I tried both 1.8 and 1.10 with the same effect. What can I do to fix
this or to diagnose it further?

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


Re: [Nix-dev] error in unpack-bootstrap-tools.sh

2015-10-28 Thread Matei David
On Wed, 28 Oct 2015 12:35:18 -0400
Matei David <ma...@cs.toronto.edu> wrote:

> Strangely, now I see one additional error, about "env" not being
> understood:
> 
> Unpacking the bootstrap tools...
> Patching the bootstrap tools...
> /some-dir/nix/store/...-unpack-bootstrap-tools.sh: line 22: env: not
> found
> /some-dir/nix/store/...-unpack-bootstrap-tools.sh:
> line
> 34: /some-dir/nix/store/...-bootstrap-tools/lib/ld-*so.?:
> not found
> 
> This last issue is confusing, because when I try it by hand, env works
> just fine, so I don't know what to make of it.
> 
> $ env -i /some-dir/nix/store/...-busybox ash
> BusyBox v1.22.1 () built-in shell (ash)
> Enter 'help' for a list of built-in commands.
> $ env
> PWD=/some-dir/nix-boot

I think I figured out the issue with env:
1) env is not a busybox command
2) for what I can tell, if busybox is started with an empty
environment, it itself sets PATH to a sensible default. But if PATH is
preset, it doesn't change it:

$ env -i /some-dir/nix/store/...-busybox ash -e <(echo 'echo $PATH')
/sbin:/usr/sbin:/bin:/usr/bin
$ env -i PATH=/nowhere /some-dir/nix/store/...-busybox ash -e <(echo
'echo $PATH')
/nowhere

So before:
- during the nix install PATH is set to PATH='/path-not-set' (as seen
  in the debug output), so env doesn't exist
- when I was trying it by hand with "env -i", PATH would be set to the
  default.


This only explains why env didn't work during the nix install. The
issue with globbing remains.

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


Re: [Nix-dev] error in unpack-bootstrap-tools.sh

2015-10-28 Thread Matei David
On Wed, 28 Oct 2015 16:47:13 +0100
Vladimír Čunát <vcu...@gmail.com> wrote:

> Hi.
> 
> On 10/28/2015 04:17 PM, Matei David wrote:
> > What can I do to fix this or to diagnose it further?
> 
> That's strange, as (1) the bootstrapping seems fine on Hydra
> http://hydra.nixos.org/job/nixpkgs/trunk/stdenvBootstrapTools.x86_64-linux.test
> and (2) I see no ash option in busybox that looks like it could affect
> globbing.
> 
> I wonder if changing "/nix/store" could cause such problems, but I see
> nothing. I assume your "/some-dir" prefix doesn't contain any
> dangerous characters (e.g. spaces)?

Thanks for the reply. In my case, /somedir is just ${HOME} . (But it's
spelled out, I'm not relying on HOME begin defined.)

As I said earlier, I edited unpack-bootstrap-tools.sh to understand
what's going on, here is the diff:
http://pastebin.com/raw.php?i=J9Mk9e58

And here is the output:
http://pastebin.com/raw.php?i=58FMNjjm

From the output, one can see that:
- the script is being sourced by: busybox ash -e (see pstree)
- the destination of the glob (the dynamic linker) exists (see ls |
  grep)
- globbing is not active (see echo)

Strangely, now I see one additional error, about "env" not being
understood:

Unpacking the bootstrap tools...
Patching the bootstrap tools...
/some-dir/nix/store/...-unpack-bootstrap-tools.sh: line 22: env: not
found
/some-dir/nix/store/...-unpack-bootstrap-tools.sh:
line
34: /some-dir/nix/store/...-bootstrap-tools/lib/ld-*so.?:
not found

This last issue is confusing, because when I try it by hand, env works
just fine, so I don't know what to make of it.

$ env -i /some-dir/nix/store/...-busybox ash
BusyBox v1.22.1 () built-in shell (ash)
Enter 'help' for a list of built-in commands.
$ env
PWD=/some-dir/nix-boot

Either way, I don't understand how the original line 14&19 in
unpack-bootstrap-tools.sh are supposed to work when globbing is not
enabled:

14:LD_BINARY=$out/lib/ld-*so.?
19:LD_LIBRARY_PATH=$out/lib $LD_BINARY $out/bin/cp $out/bin/patchelf .


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


Re: [Nix-dev] Tablet stylus stopped working

2015-09-21 Thread Jeffrey David Johnson
Solution in case someone has the same issue in the future: it's nothing
to do with NixOS. Alexei was correct. Got a new stylus (HP instead of a
knock-off this time) and it works again.
Jeff

On Sun, 13 Sep 2015 18:37:39 -0700
Jeffrey David Johnson <jef...@gmail.com> wrote:

> Yeah I think you're right. Unfortunately this computer also has issues
> booting from anything but the internal HDD so that's a lot of work.
> Will probably just give up on using it for the current round of
> presentations and figure it out later.
> Jeff
> 
> On Mon, 14 Sep 2015 08:59:41 +1000
> Alexei Robyn <sha...@shados.net> wrote:
> 
> > There might be, but if you've rebooted into known-working configurations
> > and it's still not functional, you're probably better off moving
> > straight on to testing on a different distro and computer to confirm
> > whether or not it's the stylus.
> > 
> > - Alexei
> > 
> > On Mon, Sep 14, 2015, at 08:57 AM, Jeffrey David Johnson wrote:
> > > My wacom stylus recently stopped working. I wasn't doing anything
> > > nix-related at the time (just working in Inkscape) and booting into
> > > older generations doesn't fix it. The eraser tip and side button keep
> > > working but nothing from the main tip. I can't get it to show up in xev
> > > or kde_wacom_tabletfinder. Is there anywhere else to look before
> > > assuming it's a hardware failure? This is the tablet section of my
> > > configuration.nix:
> > > 
> > > # ...
> > > environment.systemPackages = [
> > >   libwacom
> > >   xf86_input_wacom
> > > ];
> > > services = {
> > >   xserver = {
> > > wacom.enable = true;
> > > synaptics = {
> > >   enable = true;
> > >   twoFingerScroll = true;
> > > };
> > >   };
> > > };
> > > # ...
> > > 
> > > Thanks
> > > Jeff
> > > ___
> > > nix-dev mailing list
> > > nix-dev@lists.science.uu.nl
> > > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Tablet stylus stopped working

2015-09-13 Thread Jeffrey David Johnson
Yeah I think you're right. Unfortunately this computer also has issues
booting from anything but the internal HDD so that's a lot of work.
Will probably just give up on using it for the current round of
presentations and figure it out later.
Jeff

On Mon, 14 Sep 2015 08:59:41 +1000
Alexei Robyn <sha...@shados.net> wrote:

> There might be, but if you've rebooted into known-working configurations
> and it's still not functional, you're probably better off moving
> straight on to testing on a different distro and computer to confirm
> whether or not it's the stylus.
> 
> - Alexei
> 
> On Mon, Sep 14, 2015, at 08:57 AM, Jeffrey David Johnson wrote:
> > My wacom stylus recently stopped working. I wasn't doing anything
> > nix-related at the time (just working in Inkscape) and booting into
> > older generations doesn't fix it. The eraser tip and side button keep
> > working but nothing from the main tip. I can't get it to show up in xev
> > or kde_wacom_tabletfinder. Is there anywhere else to look before
> > assuming it's a hardware failure? This is the tablet section of my
> > configuration.nix:
> > 
> > # ...
> > environment.systemPackages = [
> >   libwacom
> >   xf86_input_wacom
> > ];
> > services = {
> >   xserver = {
> > wacom.enable = true;
> > synaptics = {
> >   enable = true;
> >   twoFingerScroll = true;
> > };
> >   };
> > };
> > # ...
> > 
> > Thanks
> > Jeff
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Tablet stylus stopped working

2015-09-13 Thread Jeffrey David Johnson
My wacom stylus recently stopped working. I wasn't doing anything
nix-related at the time (just working in Inkscape) and booting into
older generations doesn't fix it. The eraser tip and side button keep
working but nothing from the main tip. I can't get it to show up in xev
or kde_wacom_tabletfinder. Is there anywhere else to look before
assuming it's a hardware failure? This is the tablet section of my
configuration.nix:

# ...
environment.systemPackages = [
  libwacom
  xf86_input_wacom
];
services = {
  xserver = {
wacom.enable = true;
synaptics = {
  enable = true;
  twoFingerScroll = true;
};
  };
};
# ...

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


Re: [Nix-dev] How to debug 'error: getting status of ... no such file or directory'?

2015-09-02 Thread Jeffrey David Johnson
OK figured it out. I had an obsolete symlink
from /etc/nixos/configuration.nix into /git/hub/dotfiles, and
nixos-rebuild must have been evaluating my current code without
following it. Would be nice to have a more informative error message,
but then again maybe I deserved that for relocating everything! Fixed
by deleting /etc/nixos.
Jeff

On Tue, 1 Sep 2015 12:07:12 -0700
Jeffrey David Johnson <jef...@gmail.com> wrote:

> I have what seems like a straightforward issue with paths, but am not
> sure how to debug it. I run my usual "update everything" script, which
> looks like this and is located at /git/hub/nixcfg/install.sh:
> 
> #!/usr/bin/env bash
> # Automates rebuilding nixos from my repos.
> # Takes the same args as nixos-rebuild.
> # TODO also put NIXPKGS_CONFIG in here instead of home dir
> 
> NIXCFG="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
> [[ -z "$@" ]] && NIXARGS="test --fast" || NIXARGS="$@"
> 
> nixos-rebuild \
>   -I mypkgs="${NIXCFG}/mypkgs" \
>   -I nixpkgs="${NIXCFG}/nixpkgs" \
>   -I nixos-config="${NIXCFG}/configs/$(hostname).nix" \
>   ${NIXARGS} \
>   && nix-store --optimize
> 
> It works on my current master nixpkgs branch:
> 
> $ sudo ./install.sh switch
> building Nix...
> building the system configuration...
> warning: dumping very large path (> 256 MiB); this may run out of memory
> ...
> reloading the following units: dbus.service
> starting the following units: cron.service
> 862.90 MiB freed by hard-linking 37947 files
> 
> But when I switch to the new 15.09 branch I get an error:
> 
> $ sudo ./install.sh switch
> building Nix...
> error: getting status of ‘/git/hub/dotfiles’: No such file or directory
> building the system configuration...
> error: getting status of ‘/git/hub/dotfiles’: No such file or directory
> 
> There isn't a directory /git/hub/dotfiles, but I do
> use /git/hub/nixcfg/dotfiles and my code contains some relative
> references `like dotDir = ../dotfiles;`
> inside /git/hub/nixcfg/modules. So I assume that's going wrong. But
> after replacing them all with absolute paths I still get the same thing.
> 
> Now I'm not sure what to do next. `--show-trace` doesn't give any more
> info. How do I debug it? Thanks
> Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to debug 'error: getting status of ... no such file or directory'?

2015-09-01 Thread Jeffrey David Johnson
I have what seems like a straightforward issue with paths, but am not
sure how to debug it. I run my usual "update everything" script, which
looks like this and is located at /git/hub/nixcfg/install.sh:

#!/usr/bin/env bash
# Automates rebuilding nixos from my repos.
# Takes the same args as nixos-rebuild.
# TODO also put NIXPKGS_CONFIG in here instead of home dir

NIXCFG="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
[[ -z "$@" ]] && NIXARGS="test --fast" || NIXARGS="$@"

nixos-rebuild \
  -I mypkgs="${NIXCFG}/mypkgs" \
  -I nixpkgs="${NIXCFG}/nixpkgs" \
  -I nixos-config="${NIXCFG}/configs/$(hostname).nix" \
  ${NIXARGS} \
  && nix-store --optimize

It works on my current master nixpkgs branch:

$ sudo ./install.sh switch
building Nix...
building the system configuration...
warning: dumping very large path (> 256 MiB); this may run out of memory
...
reloading the following units: dbus.service
starting the following units: cron.service
862.90 MiB freed by hard-linking 37947 files

But when I switch to the new 15.09 branch I get an error:

$ sudo ./install.sh switch
building Nix...
error: getting status of ‘/git/hub/dotfiles’: No such file or directory
building the system configuration...
error: getting status of ‘/git/hub/dotfiles’: No such file or directory

There isn't a directory /git/hub/dotfiles, but I do
use /git/hub/nixcfg/dotfiles and my code contains some relative
references `like dotDir = ../dotfiles;`
inside /git/hub/nixcfg/modules. So I assume that's going wrong. But
after replacing them all with absolute paths I still get the same thing.

Now I'm not sure what to do next. `--show-trace` doesn't give any more
info. How do I debug it? Thanks
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] imported archive lacks a signature?

2015-08-28 Thread Jeffrey David Johnson
What does this error mean?

$ nix-copy-closure --to jefdaj@server $(type -tP labwiki)
copying 166 missing paths (1820.22 MiB) to ‘jefdaj@server’...
exporting path ‘/nix/store/cgddwzz9hkdgprvbymphv8yprc66zxk7-ghc-7.10.1’
exporting path 
‘/nix/store/0j60852jsskjl2x3mv0a1ssrkb18hymz-haskell-old-locale-1.0.0.7’
exporting path 
‘/nix/store/21k662hg1jics83kh9x2r3cfp9fd4cll-haskell-network-2.6.1.0’
error: imported archive of 
‘/nix/store/cgddwzz9hkdgprvbymphv8yprc66zxk7-ghc-7.10.1’ lacks a signature

I can't find anything about signatures in https://nixos.org/nixos/manual/.

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


Re: [Nix-dev] imported archive lacks a signature?

2015-08-28 Thread Jeffrey David Johnson
Thanks, that works!

On Fri, 28 Aug 2015 10:45:06 +0200
Peter Simons sim...@cryp.to wrote:

 Hi Jeffrey,
 
   $ nix-copy-closure --to jefdaj@server $(type -tP labwiki)
   [...]
   error: imported archive of 
 ‘/nix/store/cgddwzz9hkdgprvbymphv8yprc66zxk7-ghc-7.10.1’ lacks a signature
 
 to remedy that issue, create /etc/nix/signing-key.{pub,sec} as described in
 https://github.com/NixOS/nix/blob/master/doc/signing.txt. Then call the
 nix-copy-closure command with the --sign flag.
 
 Best regards,
 Peter
 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Logo improvement ideas

2015-08-23 Thread Jeffrey David Johnson
I like logo-slant-half best. They're all good though!

On Mon, 24 Aug 2015 03:20:20 +
Luke Clifton ltclif...@gmail.com wrote:

 Hi Tim,
 
 Nice work, I quite like the look of the 'hex' variations.
 
 Regards,
 
 Luke
 
 
 On Mon, 24 Aug 2015 at 13:14 Tim Cuthbertson t...@gfxmonk.net wrote:
 
  Hello all,
 
  I'm a big fan of Nix / NixOS, but I've long felt that the logo could
  do with a bit of work. So I toyed about a bit with inkscape, and came
  up with a few ideas:
 
  https://github.com/gfxmonk/nixos-logo-ideas/tree/master/exports
 
  They mostly keep to the existing logo structure, but with some changes:
 
   - Make the lines wider, and remove the rounded caps. The existing
  logo feels too thin, as if it's made of lines rather than shapes. This
  feels fragile, particularly when scaled down.
 
   - Made the lambda structure more obvious. To be honest, it wasn't
  until fairly recently that I noticed that the logo was made of
  lambdas. I've added gaps between each one so they don't run into a
  single shape as much. I've also added some subtle gradients at the top
  of each, to turn it into more of a woven structure, rather than a
  snowflake.
 
   - Rotated the shape so that there's an upright lambda, and the shape
  fits better into a restricted-height context (e.g a header bar).
 
  # Shape variants:
 
  straight: More or less equivalent to the current logo, but with
  straight (not rounded) edges
 
  hex: Blockier in general, and gives the short foot of the lambda a
  triangular edge. This aligns all outer points to a hexagon shape,
  mirroring the inner hexagon.
 
  slant: The lambdas in this one have a fatter head and thinner feet.
  This makes the overall structure look more dynamic and organic, but
  de-emphasizes the clean lambda shape somewhat. The shapes on this one
  may need some tweaking, as the outer shape (made by the feet) still
  seems a little disorganized still.
 
  # Highlight variants:
 
  none: every lambda has the same shading
 
  half: every second shape is darker (as in the current logo)
 
  feature: the right-way-up lambda is the only darker shape. This
  makes the repeating lambda structure more obvious, but obviously
  affects symmetry.
 
  I haven't done too much experimentation with the colours, but feel
  free to crack open the svgs (in the parent directory) and try whatever
  you like.
 
  Let me know what you think!
 
  Cheers,
   - Tim.
  ___
  nix-dev mailing list
  nix-dev@lists.science.uu.nl
  http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Mark two packages incompatible, but with the same priority?

2015-08-18 Thread Jeffrey David Johnson
Nevermind, just noticed the same behavior with plain bitcoin vs bitcoind, so 
maybe it's OK as is?

On Tue, 18 Aug 2015 11:11:40 -0700
Jeffrey David Johnson jef...@gmail.com wrote:

 I'm trying to add BitcoinXT support. Changes here:
 
 https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bitcoinxt-pullreq
 
 It works as long as you only install bitcoin or bitcoin-xt, but trying
 one after the other they collide. Is there a way to set it up so
 installing either one overrides the other cleanly?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Mark two packages incompatible, but with the same priority?

2015-08-18 Thread Jeffrey David Johnson
I'm trying to add BitcoinXT support. Changes here:

https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bitcoinxt-pullreq

It works as long as you only install bitcoin or bitcoin-xt, but trying
one after the other they collide. Is there a way to set it up so
installing either one overrides the other cleanly?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Nix-prefetch-git from branch?

2015-08-10 Thread Jeffrey David Johnson
How do I nix-prefetch-git from a branch other than master? I've tried the -m, 
-t, and -f flags but none of them seems to work with a commit id or branch 
name. I just get:

error: hash ‘repourlhere’ has wrong length for hash type ‘sha256’
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How do I get the system crontab to work?

2015-07-12 Thread Jeffrey David Johnson
I see here that there are upstream issues with cron as far as setting user 
crontab entries:

http://lists.science.uu.nl/pipermail/nix-dev/2014-September/014120.html

But I'm having trouble setting the system ones as well. I think if they didn't 
work
at all a lot of other things would fail, so I must be setting something wrong. 
This
simple test doesn't put any files in /tmp or send any emails:

services.cron = {
  enable = true;
  mailto = jef...@gmail.com;
  systemCronJobs = [
* * * * *  test ls -l /  /tmp/cronout 21
* * * * *  
/nix/store/wc472nw0kyw0iwgl6352ii5czxd97js2-coreutils-8.23/bin/test 
/nix/store/wc472nw0kyw0iwgl6352ii5czxd97js2-coreutils-8.23/bin/ls -l /  
/tmp/cronout 21
  ];
};

I've checked that it does get written to /etc/crontab:

SHELL=/nix/store/xlxjcjq3bnbwnzq82irlzwxhmx6fvc2w-bash-4.3-p33/bin/bash
PATH=/nix/store/fpqvi360cimx3h1kxdxfvkyip52d1i8y-system-path/bin:/nix/store/fpqvi360cimx3h1kxdxfvkyip52d1i8y-system-path/sbin
MAILTO=jef...@gmail.com

NIX_CONF_DIR=/etc/nix
* * * * * test ls -l /  /tmp/cronout 21
* * * * * /nix/store/wc472nw0kyw0iwgl6352ii5czxd97js2-coreutils-8.23/bin/test 
/nix/store/wc472nw0kyw0iwgl6352ii5czxd97js2-coreutils-8.23/bin/ls -l /  
/tmp/cronout 21

And that the test and ls binaries are on that PATH. Anything else I should try?
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-07-05 Thread Jeffrey David Johnson
Thanks, you're right that was it! I put the mkForce in while trying to
set NIX_PATH, then forgot to remove it after moving that to
interactiveShellInit instead. Man pages/environment variables back to
normal.

That reminds me though, is there a way to force NIX_PATH while leaving
the rest in place? I tried:

{ config, ... }:
{ environment.variables = config.environment.variables // {
# my other vars here
NIX_PATH = /git/hub/nixcfg;
  };
}

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 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)  NixOS Reference Pages  
  NIXOS-REBUILD(8)
 
  ESC[1mNAMEESC[0m
 nixos-rebuild - reconfigure a NixOS machine
 
  ESC[1mSYNOPSISESC[0m
 ESC[1mnixos-rebuild ESC[22m{ESC[1mswitch ESC[22m| ESC[1mboot 
  ESC[22m| ESC[1mtest
  ESC[22m| ESC[1mbuild ESC[22m| ESC[1mdry-build ESC[22m| ESC[1mdry-activate 
  ESC[22m|
  ...
 
  I expect it's a problem with my environment variables, so
  here's my profile.nix which I import into configuration.nix:
 
  with import mypkgs;
 
  {
programs.bash = {
  enableCompletion = true;
  # promptInit = PS1=\# \;
};
 
# replaces traditional xinitrc
services.xserver.displayManager.sessionCommands = ''
  export EDITOR=qvim # why no gvim?
  xsetroot -cursor_name left_ptr 
  [[ -a ~/.fehbg ]]  eval $(cat ~/.fehbg)
  unclutter -idle 1 
  eval $(ssh-agent -s) 
'';
 
environment.variables = lib.mkForce rec {
  EDITOR   = vim ;
  TERM = TERMINAL;
  TERMINAL = xfce4-terminal;
};
 
# this gets reset if in environment.variables for some reason
environment.interactiveShellInit = ''
  export NIX_PATH=/git/hub/nixcfg
'';
 
# TODO why can't nix-env find things on the regular NIX_PATH?
environment.shellAliases = {
  nix-env = nix-env -f ${mypkgs};
};
  }
 
  As you can see I also have issues setting up NIX_PATH.
  The current kludgy solution is working OK, but if you know
  how to clean it up please mention that too! My worry is
  that I've deleted all the environment variables not
  mentioned here including some important ones, and man
  pages are just the first thing I noticed.
 
  Thanks
  Jeff
 
 The only thing that comes to mind: environment.varibles = lib.mkForce
 ... looks suspicious to me. Does it work without the mkForce?
 
 (If environment.variables is like other configuration variables I've
 met, then mkForce means discard whatever the defaults are, and leaving
 out mkForce means append the values you specify to whatever the
 defaults are.)
 
 You could always start commenting out parts of the configuration and
 observing the changes, but of course that's tedious. Maybe using
 nixos-rebuild build-vm could help.
 
 James
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-07-05 Thread Jeffrey David Johnson
If I do that it complains that NIX_PATH is set elsewhere already. I
think it's merging the attribute sets but not individual attributes.
Which is good, wouldn't want it just concatenating strings or something
else magical. That's why I originally put in the lib.mkForce to
override it.

Thanks for mentioning it though, because that led me to figure it out! I
found the function that does the merging in
nixpkgs/nixos/modules/config/shells-environment.nix:

environment.variables = mkOption {
  default = {};
  description = ''
A set of environment variables used in the global environment.
These variables will be set on shell initialisation.
The value of each variable can be either a string or a list of
strings.  The latter is concatenated, interspersed with colon
characters.
  '';
  type = types.attrsOf (mkOptionType {
name = a string or a list of strings;
merge = loc: defs:
  let
defs' = filterOverrides defs;
res = (head defs').value;
  in
  if isList res then concatLists (getValues defs')
  else if lessThan 1 (length defs') then
throw The option `${showOption loc}' is defined multiple
times, in ${showFiles (getFiles defs)}. else if !isString res then
throw The option `${showOption loc}' does not have a
string value, in ${showFiles (getFiles defs)}. else res;
  });
  apply = mapAttrs (n: v: if isList v then concatStringsSep : v
else v); };

The mkOverrides looked related, so I found it in
nixpkgs/lib/modules.nix. It's a little over my head but the comments
explain:

  /* Given a list of config values, process the mkOverride properties,
 that is, return the values that have the highest (that is,
 numerically lowest) priority, and strip the mkOverride
 properties.  For example,

   [ { file = /1; value = mkOverride 10 a; }
 { file = /2; value = mkOverride 20 b; }
 { file = /3; value = z; }
 { file = /4; value = mkOverride 10 d; }
   ]

 yields

   [ { file = /1; value = a; }
 { file = /4; value = d; }
   ]

 Note that z has the default priority 100.
  */

So I used that, and it works!

  environment.variables = rec {
# other vars here
NIX_PATH = lib.mkOverride 10 /git/hub/nixcfg; # use anything below 100
  };

I think I even about that in the manual somewhere, but had forgotten it.
Jeff

On Sun, 5 Jul 2015 11:17:10 -0700
James Cook james.c...@utoronto.ca wrote:

 What if you leave out the config.environment.variables // part (just
 environment.variables = { NIX_PATH = /git/hub/nixcfg; };)?
 
 The NixOS config infrastructure is supposed to take care of the //
 part for you. I think the infinite recursion happens because
 config.environment.variables is partly based on the value you define
 for environment.variables.
 
 James
 
 On 5 July 2015 at 10:51, Jeffrey David Johnson jef...@gmail.com wrote:
  Thanks, you're right that was it! I put the mkForce in while trying to
  set NIX_PATH, then forgot to remove it after moving that to
  interactiveShellInit instead. Man pages/environment variables back to
  normal.
 
  That reminds me though, is there a way to force NIX_PATH while leaving
  the rest in place? I tried:
 
  { config, ... }:
  { environment.variables = config.environment.variables // {
  # my other vars here
  NIX_PATH = /git/hub/nixcfg;
};
  }
 
  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 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)  NixOS Reference Pages  
   NIXOS-REBUILD(8)
  
   ESC[1mNAMEESC[0m
  nixos-rebuild - reconfigure a NixOS machine
  
   ESC[1mSYNOPSISESC[0m
  ESC[1mnixos-rebuild ESC[22m{ESC[1mswitch ESC[22m| ESC[1mboot 
   ESC[22m| ESC[1mtest
   ESC[22m| ESC[1mbuild ESC[22m| ESC[1mdry-build ESC[22m| 
   ESC[1mdry-activate ESC[22m|
   ...
  
   I expect it's a problem with my environment variables, so
   here's my profile.nix which I import into configuration.nix:
  
   with import mypkgs;
  
   {
 programs.bash = {
   enableCompletion = true;
   # promptInit = PS1=\# \;
 };
  
 # replaces traditional xinitrc
 services.xserver.displayManager.sessionCommands = ''
   export EDITOR=qvim # why no gvim?
   xsetroot -cursor_name left_ptr 
   [[ -a ~/.fehbg ]]  eval $(cat ~/.fehbg)
   unclutter -idle 1 
   eval $(ssh-agent -s) 
 '';
  
 environment.variables = lib.mkForce rec {
   EDITOR   = vim ;
   TERM = TERMINAL;
   TERMINAL = xfce4

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

2015-07-05 Thread Jeffrey David Johnson
Yeah I think that's what caused it. I got all my normal environment variables 
back by removing the lib.mkForce and using lib.mkOverride instead on just 
NIX_PATH, and now my PAGER is set to that and man pages work.
Jeff

On Sun, 05 Jul 2015 20:53:35 +0200
Eelco Dolstra eelco.dols...@logicblox.com wrote:

 Hi,
 
 On 04/07/15 18:24, Jeffrey David Johnson wrote:
 
  Man pages are hard to read because they're full of control characters. For 
  example:
  
  NIXOS-REBUILD(8)  NixOS Reference Pages  
  NIXOS-REBUILD(8)
  
  ESC[1mNAMEESC[0m
 
 This can be a symptom of $PAGER not being set to less -R.
 
 -- 
 Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Garbled man pages/incomplete environment

2015-07-04 Thread Jeffrey David Johnson
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)  NixOS Reference Pages  
NIXOS-REBUILD(8)

ESC[1mNAMEESC[0m
   nixos-rebuild - reconfigure a NixOS machine

ESC[1mSYNOPSISESC[0m
   ESC[1mnixos-rebuild ESC[22m{ESC[1mswitch ESC[22m| ESC[1mboot ESC[22m| 
ESC[1mtest 
ESC[22m| ESC[1mbuild ESC[22m| ESC[1mdry-build ESC[22m| ESC[1mdry-activate 
ESC[22m|
...

I expect it's a problem with my environment variables, so
here's my profile.nix which I import into configuration.nix:

with import mypkgs;

{
  programs.bash = {
enableCompletion = true;
# promptInit = PS1=\# \;
  };

  # replaces traditional xinitrc
  services.xserver.displayManager.sessionCommands = ''
export EDITOR=qvim # why no gvim?
xsetroot -cursor_name left_ptr 
[[ -a ~/.fehbg ]]  eval $(cat ~/.fehbg)
unclutter -idle 1 
eval $(ssh-agent -s) 
  '';

  environment.variables = lib.mkForce rec {
EDITOR   = vim ;
TERM = TERMINAL;
TERMINAL = xfce4-terminal;
  };

  # this gets reset if in environment.variables for some reason
  environment.interactiveShellInit = ''
export NIX_PATH=/git/hub/nixcfg
  '';

  # TODO why can't nix-env find things on the regular NIX_PATH?
  environment.shellAliases = {
nix-env = nix-env -f ${mypkgs};
  };
}

As you can see I also have issues setting up NIX_PATH.
The current kludgy solution is working OK, but if you know
how to clean it up please mention that too! My worry is
that I've deleted all the environment variables not
mentioned here including some important ones, and man
pages are just the first thing I noticed.

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


Re: [Nix-dev] /etc/nixos/configuration.nix vs ~/.nixpkgs/config.nix

2015-06-29 Thread Jeffrey David Johnson
I do that too, here's my repo (of course also messy):
https://github.com/jefdaj/nixcfg

In particular the installDotfiles function here:
https://github.com/jefdaj/nixcfg/blob/master/modules/util.nix

works for probably half of the dotfiles I wanted to install. The rest were
more complicated and are scattered around in their own nix files. It's
messy, but it definitely does work. I have all my important stuff installed
this way on a couple different computers now.
Jeff

On Mon, 29 Jun 2015 10:38:12 -0600
Jonathan Glines auntie...@gmail.com wrote:

 2015-06-29 8:20 GMT-06:00 Kamil Chmielewski kamil@gmail.com:
  Hi,
 
  I'm trying to setup NixOS on my laptop and I feel really confused with this
  2 config files.
  I would like to have base system configuration like hardware and system
  services in /etc/nixos and other software and user configuration in
  ~/.nixpkgs.
  I'm stuck on custom gtk theme now. I don't want to install my gtk theme
  system wide, but in my user scope only. I searched everywhere and I can't
  find an example ~/.nixpkgs that will setup my env analogous to Deian conf:
  1. gtk theme in ~/.themes
  2. custom ~/.gtkrc-2.0
 
  I had a repo of dotiles for debian with many other things like .gitconfig,
  .vimrc, .profile 
  How to rewrite it to NixOS?
 
 Like Eelco said, there's no proper support for dotfiles in home
 directories *yet*.
 
 But I've been using system.activationScripts as a hack to get it
 working anyway. Inside my configuration.nix looks something like this:
 
  system.activationScripts =
   {
 # Configure various dotfiles.
 dotfiles = stringAfter [ users ]
 ''
   cd /home/auntieneo
   ln -fs ${./dotfiles/vimrc} .vimrc
 '';
   };
 
 What happens here is NixOS tells systemd to run an activation script
 on every boot (and every time you nixos-rebuild switch) after it
 creates the user accounts. It's a bash script with Nix expressions, so
 there's the potential to do a lot of very clever things. Dotfiles show
 up as read-only symlinks in my home directory, which works very well
 for 99% of programs.
 
 Unfortunately, this is inside configuration.nix and not ~/.nixpkgs.
 I'm not too happy about that, but when NixOS gets around to managing
 user dotfiles I'm sure that will change.
 
 My dotfiles can be found on github (warning: very messy):
 https://github.com/auntieNeo/nixrc/blob/dc744edd/configuration-common.nix#L60-L114
 
 I'm pretty sure a few other people do this the same way, since I
 originally discovered this method on this mailing list.
 
 Regards,
 Jonathan
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using R with Bioconductor

2015-06-18 Thread Jeffrey David Johnson
Nope just that really, but it could use a little more explanation: when
downloading the new packages I found them to be unreliable. That is
each time some of the curl calls would fail but it would be different
ones. I think that might have to do with my heavily refactored
generate-r-packages.R, or with my university internet. It works slower
but more reliably from my laptop off campus. Best guess is that
either I triggered some kind of limit on concurrent or daily downloads
from bioconductor.statistik.tu-dortmund.de, or I was downloading faster
than my hard drive could write (such a first world problem!). I
partially fixed it by running the script repeatedly.

I'd also like to write something short in the manual/wiki.
Embarassingly I haven't figured out how to write/build my own R
packages using buildRPackage yet though. It never came up because my
current project is a mess of R + python + bash code glued together with
makefiles. But any of the pre-hashed R packages can be installed or used
in a shell like you'd expect:

with import nixpkgs {};
stdenv.mkDerivation {
  buildInputs = with rPackages; [ package1 package2 ... ];
}

Jeff

On Thu, 18 Jun 2015 14:04:41 +0200
Rok Garbas r...@garbas.si wrote:

 Quoting Jeffrey David Johnson (2015-06-18 06:20:57)
  Wonderful, thanks for pushing it forward! I did some more on it but
  then got sidetracked by grad school and kind of dropped the ball. There
  is one more thing though...
  
  After splitting CRAN and BIOC packages up, I discovered that
  many of the BIOC ones require other Annotation or Experiment data
  packages. So I added those too. They're hosted on the same bioconductor
  servers but under different subdirectories. I added them as separate
  files because it was easier with my existing code, but hoped to
  integrate them into the same BIOC file and update the broken packages
  list before doing a pull request. Then I didn't get around to it.
  
  This is a working implementation (just missing the updated broken
  list) that shows the new subdirectories in default.nix around line 50:
  
  https://github.com/jefdaj/nixpkgs/tree/master/pkgs/development/r-modules
  
  Any chance that could make it into the release too?
  Jeff
  
 
 Hi Jeffrey,
 
 This really looks nice, I would love to see this in 15.06.
 
 I see 3 TODO items here [1] I we want to remove them. Is there anythigs left 
 on
 you todo list?
 
 And maybe R language should get a short section in the manual [2] since there
 is no mention of language support of R. Instructions how to update the manual
 are here [3].
 
 
 
 [1] 
 https://github.com/NixOS/nixpkgs/compare/master...jefdaj:master#diff-789598f937b7fe2f8e737d7e3f4e206dR3
 [2] http://nixos.org/nixpkgs/manual/#chap-language-support
 [3] https://nixos.org/wiki/Contributing_to_Nix_documentation
 
 
 
 --
 Rok Garbas - http://www.garbas.si
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using R with Bioconductor

2015-06-17 Thread Jeffrey David Johnson
Wonderful, thanks for pushing it forward! I did some more on it but
then got sidetracked by grad school and kind of dropped the ball. There
is one more thing though...

After splitting CRAN and BIOC packages up, I discovered that
many of the BIOC ones require other Annotation or Experiment data
packages. So I added those too. They're hosted on the same bioconductor
servers but under different subdirectories. I added them as separate
files because it was easier with my existing code, but hoped to
integrate them into the same BIOC file and update the broken packages
list before doing a pull request. Then I didn't get around to it.

This is a working implementation (just missing the updated broken
list) that shows the new subdirectories in default.nix around line 50:

https://github.com/jefdaj/nixpkgs/tree/master/pkgs/development/r-modules

Any chance that could make it into the release too?
Jeff

On Wed, 17 Jun 2015 23:23:06 +0200
Peter Simons sim...@cryp.to wrote:

 Hi Jeffrey,
 
 we now have full Bioconductor support in master. According to
 http://hydra.cryp.to/jobset/nixpkgs/r-updates, we can build about
 7000 packages for R in Nix. Thank you very much for your help!
 
 Best regards,
 Peter
 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] funding nixos documentation

2015-06-03 Thread Jeffrey David Johnson
Yeah I would do that too. When I said I couldn't I thought we were
talking about job-level money. And https://www.bountysource.com/ looks
like a great setup. They even take bitcoin! (May not matter to
anyone else...)
Jeff

On Wed, 3 Jun 2015 18:51:14 -0500
Patrick Wheeler patrick.john.whee...@gmail.com wrote:

 I have thought about opening small bounties for nixos.  Probably only 20-50
 dollars a month though.  Not clear how far that would go though.
 
 On Wed, Jun 3, 2015 at 2:37 PM, Tomasz Kontusz tomasz.kont...@gmail.com
 wrote:
 
 
  On 06/03/2015 08:21 PM, Jeffrey David Johnson wrote:
   Oops, replying to the whole list now.
  
   Begin forwarded message:
  
   Date: Wed, 3 Jun 2015 11:20:10 -0700
   From: Jeffrey David Johnson jef...@gmail.com
   To: Joachim Schiele j...@lastlog.de
   Subject: Re: [Nix-dev] funding nixos documentation
  
  
   I like the idea but can't personally pay for it :(
  
   I see you have a paper on http://nixos.org/docs/papers.html
   comparing Nix to other package managers. I think that would be a great
   topic for documentation! Maybe a series of short tutorials for people
   coming from Debian, Arch, Gentoo, brew on OSX, etc.
  
   Also, long shot idea: we could put together a list of bounties. Pledge
   amounts toward particular fixes/goals and then when someone
   accomplishes them they post a paypal/bitcoin address to get paid. I'm
   not sure how to make it binding or pay up front or resolve disputes
   though.
  Actually there are already systems for bounties
  (https://www.bountysource.com/ is one) - do people here have any
  experience with those?
  Would it make sense to have one of such platforms endorsed by nixos.org?
 
   Jeff
  
   On Wed, 03 Jun 2015 16:43:07 +0200
   Joachim Schiele j...@lastlog.de wrote:
  
   hey,
  
   if someone is willing to pay me for nixos documentation updates i would
   love to do some contribution(s)/rework.
  
   just let me know if you are interested.
  
   goals i consider importatnt:
   - nix/nixpkgs documentation
   - nix-shell examples
   - create a nix tutorial
   - create an offline version of the wiki
   - create an offline version of package/option search
  
   please contact me if you have interest in paying me for such things.
  
   regards,
   joachim schiele
  
   ___
   nix-dev mailing list
   nix-dev@lists.science.uu.nl
   http://lists.science.uu.nl/mailman/listinfo/nix-dev
   ___
   nix-dev mailing list
   nix-dev@lists.science.uu.nl
   http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
  ___
  nix-dev mailing list
  nix-dev@lists.science.uu.nl
  http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
 
 
 
 -- 
 Patrick Wheeler
 patrick.john.whee...@gmail.com
 patrick.whee...@colorado.edu
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] funding nixos documentation

2015-06-03 Thread Jeffrey David Johnson
Oops, replying to the whole list now.

Begin forwarded message:

Date: Wed, 3 Jun 2015 11:20:10 -0700
From: Jeffrey David Johnson jef...@gmail.com
To: Joachim Schiele j...@lastlog.de
Subject: Re: [Nix-dev] funding nixos documentation


I like the idea but can't personally pay for it :(

I see you have a paper on http://nixos.org/docs/papers.html
comparing Nix to other package managers. I think that would be a great
topic for documentation! Maybe a series of short tutorials for people
coming from Debian, Arch, Gentoo, brew on OSX, etc.

Also, long shot idea: we could put together a list of bounties. Pledge
amounts toward particular fixes/goals and then when someone
accomplishes them they post a paypal/bitcoin address to get paid. I'm
not sure how to make it binding or pay up front or resolve disputes
though.

Jeff

On Wed, 03 Jun 2015 16:43:07 +0200
Joachim Schiele j...@lastlog.de wrote:

 hey,
 
 if someone is willing to pay me for nixos documentation updates i would
 love to do some contribution(s)/rework.
 
 just let me know if you are interested.
 
 goals i consider importatnt:
 - nix/nixpkgs documentation
 - nix-shell examples
 - create a nix tutorial
 - create an offline version of the wiki
 - create an offline version of package/option search
 
 please contact me if you have interest in paying me for such things.
 
 regards,
 joachim schiele
 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-06-02 Thread Jeffrey David Johnson
Hmm I have that too but it doesn't work. Is yours like this (with myhead
for mypkgs)?

$ ls ~/.nix-defexpr/ -al
...
lrwxrwxrwx  1 jefdaj users   22 Apr 17 10:46 mypkgs - /path/to/mypkgs
...

I think I found the other/main problem: `NIX_PATH` isn't
sticking during `nixos-rebuild` because I put it in
`environment.variables` instead of `environment.sessionVariables`. I
guess it's normally set in both and `sessionVariables` takes priority?
If I set it in the shell with `export NIX_PATH=...` then `nix-env`
works again. It also works when placed in `sessionVariables` as Herwig
said, but that causes other havoc (messing up the locale etc.):

with import mypkgs;
{
  ...
  environment.sessionVariables = lib.mkForce {
NIX_PATH = /path/to/mypkgs;
  };
  ...
}

Am I looking for a way to union that with the defaults or maybe
`mkForce` a single attribute?
Jeff

On Mon, 1 Jun 2015 21:37:01 -0700
James Cook james.c...@utoronto.ca wrote:

 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 
  nix::Attr): Assertion `size_  capacity' failed.
  Aborted
 
  Unless explicitly given the -f option.
  Jeff
 
  On Tue, 2 Jun 2015 00:31:35 +0200
  Herwig Hochleitner hhochleit...@gmail.com wrote:
 
  I set NIX_PATH in environment.sessionVariables (with an mkForce, to
  override the builtin one). nix-env and everything else should pick it up,
  that way, since that's the location it's predefined.
  ___
  nix-dev mailing list
  nix-dev@lists.science.uu.nl
  http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-06-01 Thread Jeffrey David Johnson
I'd like all the nix tools to reference my package repository, which is
called mypkgs and re-exports nixpkgs with some custom ones added. I
base it on the latest nixos-unstable revision so there should be
binaries available.

Currently I set NIX_PATH using `environment.interactiveShellInit`. That
seems to work for everything except nix-env, so I alias it to `nix-env
-f /path/to/mypkgs`. But I'm a little worried there might be parts of
the system still depending on ~/.nix-defexpr, /etc/nixos etc. Anything
else I should be doing?
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-06-01 Thread Jeffrey David Johnson
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 
nix::Attr): Assertion `size_  capacity' failed.
Aborted

Unless explicitly given the -f option.
Jeff

On Tue, 2 Jun 2015 00:31:35 +0200
Herwig Hochleitner hhochleit...@gmail.com wrote:

 I set NIX_PATH in environment.sessionVariables (with an mkForce, to
 override the builtin one). nix-env and everything else should pick it up,
 that way, since that's the location it's predefined.​
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2015-06-01 Thread Jeffrey David Johnson
Thanks, the mkForce was what I was missing!
Jeff

On Tue, 2 Jun 2015 00:31:35 +0200
Herwig Hochleitner hhochleit...@gmail.com wrote:

 I set NIX_PATH in environment.sessionVariables (with an mkForce, to
 override the builtin one). nix-env and everything else should pick it up,
 that way, since that's the location it's predefined.​
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using R with Bioconductor

2015-05-29 Thread Jeffrey David Johnson
Finally got around to writing it!

https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bioc-pullreq-twofiles

I'm getting an error when installing a Bioconductor package with CRAN
dependency though... is that just me? I think they should be able to
find each other since the two sets get unioned.
Jeff

On Tue, 26 May 2015 09:31:35 -0700
Jeffrey David Johnson jef...@gmail.com wrote:

 Sure that sounds good. It would make storing the mirror type for each
 package unneccesary too. I'll see if I can set it up later today so
 the script takes 'cran' or 'bioc' as an argument and reads/writes
 cran-packages.nix or bioc-packages.nix, then default.nix can read both
 sets and map the right urls onto them before combining.
 Jeff
 
 On Tue, 26 May 2015 10:35:21 +0200
 Peter Simons sim...@cryp.to wrote:
 
  Hi Jeffrey,
  
https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bioc-pullreq
  
  this looks good to me. Thank you very much for figuring this out!
  
  The only thing I'd prefer is to have packages from CRAN and Bioconductor
  in two separate files so that it's possible to re-generate them
  separately. Both files should be imported into one attribute set called
  rPackages, though, that's clear.
  
There might be conflicts between the Bioconductor and CRAN release
schedules.
  
  I don't believe there's any release schedule. People just upload new
  packages to the repository whenever they've finished a new version. I
  doubt that's a coordinated effort.
  
  Best regards,
  Peter
  
  ___
  nix-dev mailing list
  nix-dev@lists.science.uu.nl
  http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Shape configuration.nix differently

2015-05-28 Thread Jeffrey David Johnson
Isn't that the same as

```
{
  imports = [
./hardware-configuration.nix
./boot/grub.nix
  ];
}
```

? I think you can still access config and pkgs from each file.
Jeff

On Fri, 29 May 2015 01:55:34 +0200
Nicolas Pierron nicolas.b.pier...@gmail.com wrote:

 I am not sure to understand your
 
 On Fri, May 29, 2015 at 1:39 AM, Manuel Pages
 amarr.industr...@gmail.com wrote:
  Hey, I'm working on a differently-shaped /etc/nixos/configuration.nix.
 
  My vision is to shape it like this:
 
  ```
  { config, pkgs, ... }:
  pkgs.lib.fold (x: y: pkgs.lib.mergeAttrs x y) {} [
import ./hardware-configuration.nix { pkgs = pkgs; config = config; }
import ./boot/grub.nix { device = /dev/sda; }
# ...
  ]
  ```
 
 The problem that you see is that recent modifications of the module
 system change pkgs to be the result of the configuration, instead of
 being the one from your system.
 This change as a side-effect of making pkgs.lib cause infinite recursions.
 
 Then, I am not completely sure to understand what you want to achieve
 which cannot be done with the module system?
 
 -- 
 Nicolas Pierron
 http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using R with Bioconductor

2015-05-26 Thread Jeffrey David Johnson
Sure that sounds good. It would make storing the mirror type for each
package unneccesary too. I'll see if I can set it up later today so
the script takes 'cran' or 'bioc' as an argument and reads/writes
cran-packages.nix or bioc-packages.nix, then default.nix can read both
sets and map the right urls onto them before combining.
Jeff

On Tue, 26 May 2015 10:35:21 +0200
Peter Simons sim...@cryp.to wrote:

 Hi Jeffrey,
 
   https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bioc-pullreq
 
 this looks good to me. Thank you very much for figuring this out!
 
 The only thing I'd prefer is to have packages from CRAN and Bioconductor
 in two separate files so that it's possible to re-generate them
 separately. Both files should be imported into one attribute set called
 rPackages, though, that's clear.
 
   There might be conflicts between the Bioconductor and CRAN release
   schedules.
 
 I don't believe there's any release schedule. People just upload new
 packages to the repository whenever they've finished a new version. I
 doubt that's a coordinated effort.
 
 Best regards,
 Peter
 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using R with Bioconductor

2015-05-25 Thread Jeffrey David Johnson
OK, turns out it's not so bad! We can skip biocLite and install packages
directly, same as from CRAN. Draft changes here:

https://github.com/NixOS/nixpkgs/compare/master...jefdaj:bioc-pullreq

Opinions? I considered splitting off a separate
bioc-modules folder, but then I noticed the majority of broken R
packages are just missing Bioconductor dependencies and decided the two
aren't really separate. Plus it would be a lot of duplicated code, some
of which I don't understand well enough to maintain.

There might be conflicts between the Bioconductor and CRAN release
schedules. I think a unified set of packages could require holding back
from upgrading to the latest CRAN releases on occasion, so if that's a
big problem maybe we do need two sets of packages (current CRAN,
previous CRAN + current Bioconductor). Anyone familiar enough with
Bioconductor to say for sure? Should I go ahead and make a pull
request?

I've attached the bash script I made to list remaining dependencies.
After I ran it I had to go through and manually correct some things it
doesn't pick up, like packages that exist but are known not to build.

Jeff

On Sun, 8 Mar 2015 12:00:27 -0700
Jeffrey David Johnson jef...@gmail.com wrote:

 Do any of you guys/gals use R and Bioconductor?
 
 The only page I can find related to setting it up is 
 https://nixos.org/wiki/R.
 Bioconductor is a whole additional ecosystem on top of R/CRAN,
 with its own installer. You normally use it like:
 
 source(http://bioconductor.org/biocLite.R;)
 biocLite(PackageName)
 
 They explain why at http://bioconductor.org/install/#why-biocLite.
 How hard would it be to package that using Nix?
 Thanks
 Jeff


list-still-broken.sh
Description: Binary data
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Python packages with __future__ imports broken by wrapper?

2015-05-21 Thread Jeffrey David Johnson
I'm using nixpkgs commit 2d8cfe76a9e4f05e391d30f1654d45dee5993b8a,
which was the newest on nixos-unstable channel about a month ago (I'm
in the process of updating to the newest unstable, but having issues
with some changes I made to the R packages)
Jeff

On Thu, 21 May 2015 18:15:54 +0200
Domen Kožar do...@dev.si wrote:

 Are you using unstable branch or 14.12?
 
 I think we'll need to drop use of sed and go with Python AST parsing for
 injecting program name.
 
 On Thu, May 21, 2015 at 6:11 PM, Jeffrey David Johnson jef...@gmail.com
 wrote:
 
  I installed python27Packages.googlecl, and when running `google` it says:
 
File
  /nix/store/1ksk91s0kd1sv2clrkwcvzcmr67smgps-python2.7-googlecl-0.9.14/bin/.google-wrapped,
  line 45
  from __future__ import with_statement
  SyntaxError: from __future__ imports must occur at the beginning of the
  file
 
  Indeed, that file has 44 lines of other stuff first that looks like they
  were added by a wrapper script:
 
  #!/nix/store/pbi1lgank10fy0xpjckbdpgacqw34dsz-python-2.7.9/bin/python2.7
  #
  # Copyright (C) 2010 Google Inc.
  #
  # Licensed under the Apache License, Version 2.0 (the License);
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #  http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an AS IS BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
 
 
  import sys; sys.argv[0] = 'google'
  Main function for the Google command line tool, GoogleCL.
 
  This program provides some functionality for a number of Google services
  from
  the command line.
 
  Example usage (omitting the initial ./google):
# Create a photo album with tags Vermont and name Summer Vacation
  2009
picasa create -n Summer Vacation 2009 -t Vermont
  ~/photos/vacation2009/*
 
# Post photos to an existing album
picasa post -n Summer Vacation 2008 ~/old_photos/*.jpg
 
# Download another user's albums whose titles match a regular expression
picasa get --user my.friend.joe --name .*computer.*
  ~/photos/joes_computer
 
# Delete some posts you accidentally put up
blogger delete -n Silly post, number [0-9]*
 
# Post your latest film endeavor to YouTube
youtube post --category Film --tag Jane Austen, zombies
  ~/final_project.mp4
 
  Some terminology in use:
service: The Google service being accessed (e.g. Picasa, Blogger,
  YouTube).
task: What the client wants done by the service (e.g. post, get, delete).
 
  
  from __future__ import with_statement
 
  __author__ = 'tom.h.mil...@gmail.com (Tom Miller)'
  import glob
  import logging
  import optparse
 
 
  I guess we need to move this line below any __future__ statements:
 
  import sys; sys.argv[0] = 'google'
 
  According to https://docs.python.org/2/reference/simple_stmts.html#future
  the rest should be OK:
 
  A future statement must appear near the top of the module. The only lines
  that can appear before a future statement are:
 
  the module docstring (if any),
  comments,
  blank lines, and
  other future statements.
 
  Jeff
  ___
  nix-dev mailing list
  nix-dev@lists.science.uu.nl
  http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Python packages with __future__ imports broken by wrapper?

2015-05-21 Thread Jeffrey David Johnson
I installed python27Packages.googlecl, and when running `google` it says:

  File 
/nix/store/1ksk91s0kd1sv2clrkwcvzcmr67smgps-python2.7-googlecl-0.9.14/bin/.google-wrapped,
 line 45
from __future__ import with_statement
SyntaxError: from __future__ imports must occur at the beginning of the file

Indeed, that file has 44 lines of other stuff first that looks like they were 
added by a wrapper script:

#!/nix/store/pbi1lgank10fy0xpjckbdpgacqw34dsz-python-2.7.9/bin/python2.7
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


import sys; sys.argv[0] = 'google'
Main function for the Google command line tool, GoogleCL.

This program provides some functionality for a number of Google services from
the command line.

Example usage (omitting the initial ./google):
  # Create a photo album with tags Vermont and name Summer Vacation 2009
  picasa create -n Summer Vacation 2009 -t Vermont ~/photos/vacation2009/*

  # Post photos to an existing album
  picasa post -n Summer Vacation 2008 ~/old_photos/*.jpg

  # Download another user's albums whose titles match a regular expression
  picasa get --user my.friend.joe --name .*computer.* ~/photos/joes_computer

  # Delete some posts you accidentally put up
  blogger delete -n Silly post, number [0-9]*

  # Post your latest film endeavor to YouTube
  youtube post --category Film --tag Jane Austen, zombies ~/final_project.mp4

Some terminology in use:
  service: The Google service being accessed (e.g. Picasa, Blogger, YouTube).
  task: What the client wants done by the service (e.g. post, get, delete).


from __future__ import with_statement

__author__ = 'tom.h.mil...@gmail.com (Tom Miller)'
import glob
import logging
import optparse


I guess we need to move this line below any __future__ statements:

import sys; sys.argv[0] = 'google'

According to https://docs.python.org/2/reference/simple_stmts.html#future
the rest should be OK:

A future statement must appear near the top of the module. The only lines that 
can appear before a future statement are:

the module docstring (if any),
comments,
blank lines, and
other future statements.

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


[Nix-dev] R package name can't be used in variable substitution?

2015-05-20 Thread Jeffrey David Johnson
I put together an example package that generates a bash script:

# default.nix
with import nixpkgs {};
stdenv.mkDerivation {
  name = varSubTest;
  src = ./.;
  inherit R; rByAnotherName = R;
  builder = ./builder.sh;
}

# builder.sh
#!/usr/bin/env bash
source $stdenv/setup
mkdir -p $out/bin
substituteAll $src/varSubTest.sh $out/bin/varSubTest
chmod +x $out/bin/varSubTest

# varSubTest.sh
#!/usr/bin/env bash
echo R is substituted with @R@
echo rByAnotherName is substituted with @rByAnotherName@

If you run `nix-build  ./result/bin/varSubTest`, you'll see that @R@ is 
skipped.
Is there a restriction that single uppercase letters can't be used as variable 
names?
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to bootstrap a server using Nixops?

2015-05-01 Thread Jeffrey David Johnson
On Fri, 1 May 2015 08:46:14 +
Rob Vermaas rob.verm...@gmail.com wrote:

 Hi Jeff,
 
 
 On Thu, Apr 30, 2015 at 11:17 PM, Jeffrey David Johnson jef...@gmail.com
 wrote:
 
  It's possible I'm getting the wrong idea about what nixops is for, but I
  used
  it to set up an Amazon EC2 instance with the idea of logging into the
  server
  and administering it using local commands afterward.
 
 
 That's an interesting and unexpected usecase of nixops. I wouldn't use
 nixops at all if you plan on doing this. Why not just start instance in the
 Amazon AWS Console or using the command line tools of AWS? (for ami's see
 https://nixos.org/wiki/NixOS_on_Amazon_EC2)

You're right that looks more like what I wanted! Sorry just didn't see
it before. I'll post my scripts below for clarification but don't worry
about troubleshooting them. I wonder if the NixOps manual should
include a link to that page? Something like If you just want to
install NixOS on the server, see here instead. It's the kind of
distinction, like installing the OS itself to a USB drive vs installing
the LiveCD installer, that seems obvious in hindsight but new
people might miss.

  The initial install goes
  fine. Afterward I clone my nixcfg repo (including nixpkgs submodule) and
  try to
  set it up the way I would a physical machine, by copying everything from
  /etx/nixos/* into nixcfg/configs/cyno.nix and modifying it to
  point inside the repo:
 
  { config, pkgs, ... }:
 
  {
imports = [
  ../nixpkgs/nixos/modules/virtualization/amazon-config.nix
];
ec2.hvm = true;
services.journald.rateLimitBurst = 0;
  }
 
 
  When I do a `nixos-rebuild` (part of install.sh) though, it gives this
  error:
 
  [root@cyno:~/nixcfg]# ./install.sh test
  building Nix...
  error: getting status of
  ‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No
  such file or directory
  (use ‘--show-trace’ to show detailed location information)
  error: getting status of
  ‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No
  such file or directory
  (use ‘--show-trace’ to show detailed location information)
  building the system configuration...
  error: getting status of
  ‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No
  such file or directory
  (use ‘--show-trace’ to show detailed location information)
 
  Now I notice something strange:
  /root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix
  exists, but
  `ls` throws an error when listing it:
 
  ls /root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix
  ls: cannot access
  /root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix: No
  such file or directory
 
  If I approach it slowly by listing /root/nixcfg, then
  /root/nixcfg/nixpkgs,
  all the way to the full path it *does* work. I googled around a little and
  according to this:
 
  http://superuser.com/questions/446280/no-such-file-or-directory
 
  The error can also mean a missing dynamically linked library. So I tried
  ldd as
  directed (though I don't understand the output), and got this:
 
  ldd $(which ls)
  linux-vdso.so.1 (0x7fff01dec000)
  libacl.so.1 =
  /nix/store/6mz0jhl389h7panazs5sayrydajia1s2-acl-2.2.52/lib/libacl.so.1
  (0x7f55d0f54000)
  libc.so.6 =
  /nix/store/93zfs0zzndi7pkjkjxawlafdj8m90kg5-glibc-2.20/lib/libc.so.6
  (0x7f55d0bb7000)
  libattr.so.1 =
  /nix/store/ndszpck395bi55jnz50ny99y4pvj6dqn-attr-2.4.47/lib/libattr.so.1
  (0x7f55d09b3000)
 
  /nix/store/93zfs0zzndi7pkjkjxawlafdj8m90kg5-glibc-2.20/lib/ld-linux-x86-64.so.2
  (0x7f55d115c000)
 
  Anyway I think there's something wrong with how the system is set up, but
  not
  sure what. Is there a correct way to bootstrap it to the point of using
  the same config as my other machines?
 
 
 Can you perhaps show us the contents of install.sh? Can you give us the AMI
 that was used (see AWS Console or commandline tools) ? Also, how did you
 copy the contents of /etc/nixos/* to /root/nixcfg ? I have never seen this
 behavior before, and tested something similar yesterday successfully.

install.sh is just a wrapper to point nixos-rebuild to my repo:

#!/usr/bin/env bash
# Automates rebuilding nixos from my repos.
# Takes the same args as nixos-rebuild.
# TODO also put NIXPKGS_CONFIG in here instead of home dir

NIXCFG=$(cd $(dirname ${BASH_SOURCE[0]})  pwd)
[[ -z $@ ]]  NIXARGS=test --fast || NIXARGS=$@

nixos-rebuild \
  -I mypkgs=${NIXCFG}/mypkgs \
  -I nixpkgs=${NIXCFG}/nixpkgs \
  -I nixos-config=${NIXCFG}/configs/$(hostname).nix \
  ${NIXARGS}

Sorry I should have been clearer about copied, I just meant I wrote
nixcfg/configs/cyno.nix to match what I thought the contents
of /etx/nixos did: import amazon-config.nix and set a couple other
settings. The other files seemed redundant with ones in nixpkgs,
which was the next thing I planned to figure out. I tried importing the
file with this notation too

[Nix-dev] How to bootstrap a server using Nixops?

2015-04-30 Thread Jeffrey David Johnson
It's possible I'm getting the wrong idea about what nixops is for, but I used
it to set up an Amazon EC2 instance with the idea of logging into the server
and administering it using local commands afterward. The initial install goes
fine. Afterward I clone my nixcfg repo (including nixpkgs submodule) and try to
set it up the way I would a physical machine, by copying everything from
/etx/nixos/* into nixcfg/configs/cyno.nix and modifying it to
point inside the repo:

{ config, pkgs, ... }:

{
  imports = [
../nixpkgs/nixos/modules/virtualization/amazon-config.nix
  ];
  ec2.hvm = true;
  services.journald.rateLimitBurst = 0;
}


When I do a `nixos-rebuild` (part of install.sh) though, it gives this error:

[root@cyno:~/nixcfg]# ./install.sh test
building Nix...
error: getting status of 
‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No such 
file or directory
(use ‘--show-trace’ to show detailed location information)
error: getting status of 
‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No such 
file or directory
(use ‘--show-trace’ to show detailed location information)
building the system configuration...
error: getting status of 
‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No such 
file or directory
(use ‘--show-trace’ to show detailed location information)

Now I notice something strange:
/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix exists, but
`ls` throws an error when listing it:

ls /root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix
ls: cannot access 
/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix: No such 
file or directory

If I approach it slowly by listing /root/nixcfg, then /root/nixcfg/nixpkgs,
all the way to the full path it *does* work. I googled around a little and
according to this:

http://superuser.com/questions/446280/no-such-file-or-directory

The error can also mean a missing dynamically linked library. So I tried ldd as
directed (though I don't understand the output), and got this:

ldd $(which ls)
linux-vdso.so.1 (0x7fff01dec000)
libacl.so.1 = 
/nix/store/6mz0jhl389h7panazs5sayrydajia1s2-acl-2.2.52/lib/libacl.so.1 
(0x7f55d0f54000)
libc.so.6 = 
/nix/store/93zfs0zzndi7pkjkjxawlafdj8m90kg5-glibc-2.20/lib/libc.so.6 
(0x7f55d0bb7000)
libattr.so.1 = 
/nix/store/ndszpck395bi55jnz50ny99y4pvj6dqn-attr-2.4.47/lib/libattr.so.1 
(0x7f55d09b3000)

/nix/store/93zfs0zzndi7pkjkjxawlafdj8m90kg5-glibc-2.20/lib/ld-linux-x86-64.so.2 
(0x7f55d115c000)

Anyway I think there's something wrong with how the system is set up, but not
sure what. Is there a correct way to bootstrap it to the point of using
the same config as my other machines?

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


Re: [Nix-dev] Haskell NG: Local packages

2015-04-28 Thread Jeffrey David Johnson
It's not specific to Haskell (and I haven't tried haskellng at all yet) but for
personal packages I have mypkgs/pkgname/default.nix, and then a top-level
mypkgs/default.nix:

let
  nixpkgs = import nixpkgs {};
  callPkg = nixpkgs.newScope
(  nixpkgs
// nixpkgs.haskellPackages
// nixpkgs.python27Packages
// self
);

  self = {
canonicalFilepath = callPkg ./canonical-filepath {} ;
filestore = callPkg ./filestore  {} ;
gitit = callPkg ./gitit  {} ;
igv   = callPkg ./igv{} ;
igvtools  = callPkg ./igvtools   {} ;
indentparser  = callPkg ./indentparser   {} ;
jeffkb= callPkg ./jeffkb {} ;
jeffwiki  = callPkg ./jeffwiki   {} ;
ncbi-blast= callPkg ./ncbi-blast {} ;
rPackages = callPkg ./r-modules  {} ;
scan2pdf  = callPkg ./scan2pdf   {} ;
scripts   = callPkg ./scripts{} ;
tarql = callPkg ./tarql  {} ;
tasktree  = callPkg ./tasktree   {} ;
tsync = callPkg ./tsync  {} ;
  };

  in (nixpkgs // self)

I add that to my NIX_PATH so I can `import mypkgs` anywhere to get nixpkgs
overridden with the stuff I'm working on.
Jeff

On Tue, 28 Apr 2015 22:11:57 +0200
Ertugrul Söylemez ert...@gmx.de wrote:

 I believe Peter's message 87mw5qvj9x@write-only.cryp.to could
 answer my question.  I will give it a try.
 
  Hello fellow Haskellers,
 
  I have a bunch of local Haskell packages, mostly libraries.  The package
  X lives in the directory `ertes-src/X/main`.  There are lots of direct
  and indirect dependencies between them.  My current solution is ad hoc
  and rather ugly.  I'm using the following hand-crafted `shell.nix` file
  in every project:
 
  { pkgs ? import nixpkgs {} }:
 
  let inherit (pkgs.haskellngPackages) callPackage;
 
  extPkg = path: deps:
  (callPackage (import path) deps).override (args: args // {
  mkDerivation = expr:
  args.mkDerivation (expr // {
  src = pkgs.fetchdarcs { url = path; };
  });
  });
 
  thisPkg = callPackage (import ./devel.nix) {
  direct-dep1 = extPkg ertes-src/dep1/main {
  indirect-dep1 = ...;
  indirect-dep2 = ...;
  };
  direct-dep2 = extPkg ertes-src/dep2/main {};
  };
 
  in thisPkg.env
 
  Do not pay too much attention to the `extPkg` function.  It just works
  around cabal2nix' lack of support for Darcs URLs.
 
  My question is:  Is there a nicer and more principled way to solve this?
  Ideally I could simply add all of my local packages in some way to my
  `~/.nixpkgs/config.nix`.  Then they could just depend on each other
  regularly and I wouldn't need any shell.nix hackery.  I'm guessing that
  I need to override haskellngPackages in some way or perhaps create my
  own using some override.
 
 
  Greets,
  Ertugrul
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] buildPythonPackage: add src to PYTHONPATH before build?

2015-04-22 Thread Jeffrey David Johnson
I'm trying to package a python application (https://github.com/dagraham/etm-tk).
I made an initial package with python2nix, but when I try to install it I get:

installing ‘python2.7-etm’
these derivations will be built:
  /nix/store/a1xn163ms6rg3w9k901lr6fga4lawqx9-python2.7-etm.drv
building path(s) ‘/nix/store/bncc469m7v8r5i11ak9my9dxdjvm6cpg-python2.7-etm’
unpacking sources
unpacking source archive 
/nix/store/jdhl79isbzapyyz6vlh22i03m9lbc00w-etm-tk-7b6ba79
source root is etm-tk-7b6ba79
patching sources
configuring
building
Traceback (most recent call last):
  File setup.py, line 3, in module
from etmTk.v import version
ImportError: No module named etmTk.v
builder for ‘/nix/store/a1xn163ms6rg3w9k901lr6fga4lawqx9-python2.7-etm.drv’ 
failed with exit code 1
error: build of ‘/nix/store/a1xn163ms6rg3w9k901lr6fga4lawqx9-python2.7-etm.drv’ 
failed

How should I handle the setup.py importing a module from inside the package?
I imagine there's a hook somewhere where I could add it to the PYTHONPATH?
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What am I doing wrong with ssh-substitutor-hosts?

2015-04-07 Thread Jeffrey David Johnson
Wow I feel silly. Thanks for pointing out the misspelling!
Now I get this error though:

download-via-ssh: /bin/sh: line 0: exec: bash: not found
download-via-ssh: ssh_exchange_identification: Connection closed by remote host
download-via-ssh: error: unexpected end-of-file
error: substituter ‘download-via-ssh’ died unexpectedly

If I ssh in manually bash is found fine.
Jeff

On Tue, 07 Apr 2015 11:45:12 +0200
Eelco Dolstra eelco.dols...@logicblox.com wrote:

 Hi,
 
 On 02/04/15 20:56, Jeffrey David Johnson wrote:
 
  I've got two computers with nixos, and I can ssh between them without a
  password.  But if I do a nixos-rebuild with `--option ssh-substitutor-hosts
  hostname` they still just download everything from cache.nixos.org. 
 
 It's *substituter*, not substitutor.
 
 Also, make sure you're root or a user listed in ‘trusted-users’ in nix.conf.
 
 -- 
 Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] What am I doing wrong with ssh-substitutor-hosts?

2015-04-02 Thread Jeffrey David Johnson
I've got two computers with nixos, and I can ssh between them without a
password.  But if I do a nixos-rebuild with `--option ssh-substitutor-hosts
hostname` they still just download everything from cache.nixos.org.  I think
I have the sshServe set up in my configuration.nix:

# nixServeKeys are loaded from another file keys.nix,
# and are all the same ones used for regular ssh access
nix.sshServe = { enable = true; keys = nixServeKeys; };

Is there a setting I'm missing somewhere?
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] [***SPAM***] git:// repositories in nixpkgs

2015-03-27 Thread Jeffrey David Johnson
At least on github there's always an equivalent https:// url right?

On Fri, 27 Mar 2015 12:49:04 -0400
Shea Levy s...@shealevy.com wrote:

 fetchurl has a concept of multiple urls and mirrors, I’m not sure if fetchgit 
 does but it would be nice for this use case. git:// should be preferred when 
 it is usable, but if it’s not fetchgit could fall back to an alternatively 
 specified URL.
 
  On Mar 27, 2015, at 12:40 PM, Serge Kosyrev _deepf...@feelingofgreen.ru 
  wrote:
  
  Good day, folks!
  
  What is the stance on git:// repositories in nixpkgs?
  
  They are generally unavailable from behind corporate firewalls.
  
  One package employing this is grub, as of current master.
  
  -- 
  regards,
  Серёга Косырев
  ___
  nix-dev mailing list
  nix-dev@lists.science.uu.nl
  http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Getting started with nix-build

2015-03-24 Thread Jeffrey David Johnson
Yeah I'd like to know this too. I suspect there's a flag for it but not sure 
what it would be called.

Also if you're building the latext nixpkgs from github hydra might not have 
cought up yet. I think standard practice is to stay a few commits back so can 
get binaries. I asked a semi-related question a couple days ago and Jonothan 
Glines showed me this script for checking out the latest commit that's made it 
to the unstable channel:

git branch myBranch `curl -sI http://nixos.org/channels/nixos-unstable/ | grep 
Location | perl -n -e'/([0-9a-f]{7})\/\s*$/  print $1'`

I haven't tried it yet but looks like it might be what you want.
Jeff

On Tue, 24 Mar 2015 09:49:11 +
Oliver Matthews o...@codersoffortune.net wrote:

 So, I'm attempting to add a plex package. I've followed the instructions in 
 the nixpkgs manual (and cross-checked with contributing to nixpkgs on the 
 wiki). It's all fine up until I run nix-build -A - it's going to attempt to 
 build my package, but also goodly chunks of the full OS starting with glibc. 
 I could understand this if I'd specified versions of libraries not in what 
 hydra is currently building, but I've not. I suspect I'm either invoking 
 nixbuild wrong (nix-build -K --dry-run -A plex-media-server from 
 ~/src/nixpkgs) or I'm missing the nix equivalent of build-essential. Or I'm 
 missing part of the point entirely, but I would have expected the docs 
 (somewhere) to warn that attempting to run nix-build will attempt to compile 
 a full toolchain from scratch (which requires a fair amount of diskspace and 
 time).
 
 Regards,
 Oliver
 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


  1   2   >