[Nix-commits] [NixOS/nixpkgs] d624b0: Add new package "shfmt"

2016-06-15 Thread Benjamin Staffin
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d624b02e1eff21580b93970f03459fe0246600bb
  
https://github.com/NixOS/nixpkgs/commit/d624b02e1eff21580b93970f03459fe0246600bb
  Author: Nahum Shalman 
  Date:   2016-06-16 (Thu, 16 Jun 2016)

  Changed paths:
A pkgs/tools/text/shfmt/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Add new package "shfmt"


  Commit: 52c7f863c23b6b07309a084014dd6904a566070a
  
https://github.com/NixOS/nixpkgs/commit/52c7f863c23b6b07309a084014dd6904a566070a
  Author: Benjamin Staffin 
  Date:   2016-06-16 (Thu, 16 Jun 2016)

  Changed paths:
A pkgs/tools/text/shfmt/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #16247 from cerana/shfmt

Add new package "shfmt"


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


[Nix-commits] [NixOS/nixpkgs] 098e85: riemann-dash: Wrap to keep bundler and sass out of...

2016-06-15 Thread Benjamin Staffin
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 098e8500d4b00066813f0c9dbbd49eadb87b8030
  
https://github.com/NixOS/nixpkgs/commit/098e8500d4b00066813f0c9dbbd49eadb87b8030
  Author: Benjamin Staffin 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/servers/monitoring/riemann-dash/default.nix

  Log Message:
  ---
  riemann-dash: Wrap to keep bundler and sass out of user env


  Commit: b6c6763dab660265bd033faf6adb4c05cbc49360
  
https://github.com/NixOS/nixpkgs/commit/b6c6763dab660265bd033faf6adb4c05cbc49360
  Author: Benjamin Staffin 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/servers/monitoring/riemann-dash/Gemfile
M pkgs/servers/monitoring/riemann-dash/Gemfile.lock
M pkgs/servers/monitoring/riemann-dash/gemset.nix

  Log Message:
  ---
  riemann-dash: 0.2.11 -> 0.2.12


  Commit: 7b21572b90fac73e0ed4950d3a894e2d00b42d19
  
https://github.com/NixOS/nixpkgs/commit/7b21572b90fac73e0ed4950d3a894e2d00b42d19
  Author: Benjamin Staffin 
  Date:   2016-06-16 (Thu, 16 Jun 2016)

  Changed paths:
M pkgs/servers/monitoring/riemann-dash/Gemfile
M pkgs/servers/monitoring/riemann-dash/Gemfile.lock
M pkgs/servers/monitoring/riemann-dash/default.nix
M pkgs/servers/monitoring/riemann-dash/gemset.nix

  Log Message:
  ---
  Merge pull request #16264 from benley/riemann-dash-0.2.12

riemann-dash: 0.2.11 -> 0.2.12


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


[Nix-commits] [NixOS/nixpkgs] 68689f: hiera-eyaml: init at 2.1.0

2016-06-15 Thread Benjamin Staffin
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 68689f4d8e1623578ae6ec4283c8914df2985b05
  
https://github.com/NixOS/nixpkgs/commit/68689f4d8e1623578ae6ec4283c8914df2985b05
  Author: Benjamin Staffin 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
A pkgs/tools/system/hiera-eyaml/Gemfile
A pkgs/tools/system/hiera-eyaml/Gemfile.lock
A pkgs/tools/system/hiera-eyaml/default.nix
A pkgs/tools/system/hiera-eyaml/gemset.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  hiera-eyaml: init at 2.1.0


  Commit: dfe4c447b1da0c3a1f7eed96a780ee8d9f1a7a87
  
https://github.com/NixOS/nixpkgs/commit/dfe4c447b1da0c3a1f7eed96a780ee8d9f1a7a87
  Author: Benjamin Staffin 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
A pkgs/tools/system/hiera-eyaml/Gemfile
A pkgs/tools/system/hiera-eyaml/Gemfile.lock
A pkgs/tools/system/hiera-eyaml/default.nix
A pkgs/tools/system/hiera-eyaml/gemset.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #16261 from benley/hiera-eyaml

hiera-eyaml: init at 2.1.0


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


[Nix-commits] [NixOS/nixpkgs] 84873b: cutee: init -> 0.4.2

2016-06-15 Thread zimbatm
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 84873b15ab83967a2a45f1390717be659b04dc1a
  
https://github.com/NixOS/nixpkgs/commit/84873b15ab83967a2a45f1390717be659b04dc1a
  Author: Michiel Leenaars 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

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

  Log Message:
  ---
  cutee: init -> 0.4.2


  Commit: ac92273faab57442f58dbaa0068aad7725e5ed8b
  
https://github.com/NixOS/nixpkgs/commit/ac92273faab57442f58dbaa0068aad7725e5ed8b
  Author: zimbatm 
  Date:   2016-06-16 (Thu, 16 Jun 2016)

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

  Log Message:
  ---
  Merge pull request #16257 from leenaars/cutee

cutee: init -> 0.4.2


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


Re: [Nix-dev] mix bundlerEnv and python3.buildEnv

2016-06-15 Thread Daniel Hlynskyi
Reason why patchShebangs doesn't work here is because `python` executable
is not accessible in the environment. Instead python is called `python3`.
So if your script used #!/usr/bin/env python3, your first example would had
worked as expected.

I think this is bug with nixpkgs python environment, python should be
accessible via `python` if it's unambiguous.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] gitFetchPrivate on NixOS

2016-06-15 Thread zimbatm
I believe you could run nix-prefetch-git to pre-populate the store but I
don't know if it's still possible, the derivation might not match exactly
anymore. Also it's only really useful for developer machines, on a CI you
still want it to have access to the repo isn't it?

On Wed, 15 Jun 2016 at 13:42 Ashley Gillman  wrote:

> Thanks Zimbatm,
>
> Actually I don't think the issue is the socket (yet). For example, I get
> exactly the same error when just calling `nix-shell -I
> ssh-config-file=$HOME/.ssh/config`. The current "wall" I think is either
> that config file or the referenced id_rsa file, but the error indicates its
> the config file itself. I have tried `chmod o+rw` on the file, and with
> group (`chmod g+rw` and `chgrp`ing to nixbld), but to no avail.
>
> I should mention also, I do not have my heart set on gitFetchPrivate. If
> there is another way to access a remote (BitBucket) server requiring
> credentials, that would be great. Although pulling each manually and using
> a local file path is not preferred.
>
> Cheers,
> Ash
>
> On Wed, Jun 15, 2016 at 10:07 PM, zimbatm  wrote:
>
>> Hi,
>>
>> Yes the difference is that the build user is nixbld[1-9]. Also the SSH
>> agent doesn't allow other users to access to the socket.
>>
>> Sorry I don't know the solution. You could maybe build a bridge on the
>> socket using `socat` to hide the caller's user.
>>
>> On Wed, 15 Jun 2016, 11:57 Ashely Gillman,  wrote:
>>
>>> Hi all,
>>> I have been attempting to use gitFetchPrivate to fetch from a private
>>> bitbucket repo over SSH, on both Ubuntu running Nix and on NixOS. I am able
>>> to get the setup working on Ubuntu.
>>>
>>> - Set up SSH-Agent the usual way.
>>> - Ensure that `git clone 
>>> ssh://g...@bitbucket.domain.com://.git`
>>> works, it does
>>> - Use `nix-shell -I ssh-config-file=$HOME/.ssh/config -I
>>> ssh-auth-sock=$SSH_AUTH_SOCK`, with a local shell.nix specifying
>>> requirements
>>>
>>> However, I am unable to repeat the process on a NixOS machine.
>>>
>>> gil@gil-nixos:~/proj/pylx $ git clone ssh://git@bitbucket.
>>> :7999/~/milx-view.git
>>> 
>>>
>>> gil@gil-nixos:~/proj/pylx $ nix-shell -I
>>> ssh-config-file=$HOME/.ssh/config -I ssh-auth-sock=$SSH_AUTH_SOCK
>>> these derivations will be built:
>>>   /nix/store/48cz61di3gf6fpkydgri74h5i2s8qh3h-vtk-qvtk-5.10.1.drv
>>>   /nix/store/pcj22pnchg10bq63a32jcc53l75cy8z1-boost-1.59.0.drv
>>>   /nix/store/sb7xc3pan2h7n1qdh94ynblb9cv12a3p-milx-view-585a819.drv
>>>   /nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv
>>> building path(s)
>>> ‘/nix/store/603gs7mcgpf7cnyv3k2bkxk1kbj4smbq-boost-1.59.0’,
>>> ‘/nix/store/q26zzdzy5zngyxyah8fhqmnqwbmz4gl4-boost-1.59.0-lib’,
>>> ‘/nix/store/zggqsmrh9l70yrcdagmgqjmv8i6a9rls-boost-1.59.0-dev’
>>> building path(s)
>>> ‘/nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819’
>>> building path(s)
>>> ‘/nix/store/j70pal3svpcip7xv21bxf5xy2c4chl84-vtk-qvtk-5.10.1’
>>> exporting ssh://git@bitbucket.:7999/~/milx-view.git
>>> (rev 585a8195804) into
>>> /nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819
>>> Initialized empty Git repository in
>>> /nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819/.git/
>>> Can't open user config file /home/gil/.ssh/config: Permission denied
>>> fatal: Could not read from remote repository.
>>>
>>> Please make sure you have the correct access rights
>>> and the repository exists.
>>> unpacking sources
>>> unpacking source archive
>>> /nix/store/cdz3wd9r8vlnp193kv091pal401mg9kc-boost_1_59_0.tar.bz2
>>> Can't open user config file /home/gil/.ssh/config: Permission denied
>>> fatal: Could not read from remote repository.
>>>
>>> Please make sure you have the correct access rights
>>> and the repository exists.
>>> Unable to checkout 585a8195804 from ssh://git@bitbucket.
>>> :7999/~/milx-view.git.
>>> builder for
>>> ‘/nix/store/sb7xc3pan2h7n1qdh94ynblb9cv12a3p-milx-view-585a819.drv’ failed
>>> with exit code 1
>>> cannot build derivation
>>> ‘/nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv’: 1 dependencies
>>> couldn't be built
>>> error: build of
>>> ‘/nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv’ failed
>>> /run/current-system/sw/bin/nix-shell: failed to build all
>>> dependencies
>>>
>>> With the relevant line being:
>>> Can't open user config file /home/gil/.ssh/config: Permission denied
>>>
>>> Probably a nixbld user is trying to access this? I am not actually sure
>>> if my nixpkgs are built by my user or by nixbld. How can I tell? `cat
>>> /etc/passwd` indicates that the nixbld users exist.
>>>
>>> I have attempted to follow instructions for setting up gitFetchPrivate
>>> for multi-user installations (but again, not even sure this is what I have
>>> - I just installed the simplest way), but to no avail (although the
>>> instructions are somewhat unclear).
>>>
>>> Thanks for any help,
>>> Ashley Gillman (Ash)
>>>

Re: [Nix-dev] Running nix-build on Circle CI

2016-06-15 Thread zimbatm
Also you might want to use nixpkgs-unstable instead if it's running on
Ubuntu.

On Wed, 15 Jun 2016 at 21:33 Kamil Chmielewski  wrote:

> It works.
> Awesome, thx!
>
>
> --
> Kamil
>
> 2016-06-15 22:27 GMT+02:00 Daniel Hlynskyi :
>
>> Have you tried
>> nix-channel --add https://nixos.org/channels/nixos-unstab
>> le nixpkgs
>> ?
>>
>
> ___
> 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] On the sad state of remote-builds for the end-user

2016-06-15 Thread zimbatm
Aha, all my machines are running NixOS so that's probably your issue. My
guess is that you first need the nix-daemon to be running on the build
machine for all of this to work.

On Wed, 15 Jun 2016 at 14:16 Matthias Beyer  wrote:

> On 15-06-2016 11:10:09, zimbatm wrote:
> > my build machine is currently down but I used to have something like
> this:
> > HOWTO remote builds
> >
> >- client: your laptop
> >- build machine: the server that has tons of CPU
> >
> > On the build machine, install your client’s ssh public in the
> > /root/.ssh/authorized_keys.
>
> Is your build machine a nixos machine or a non-nixos with nix installed?
> If the
> latter: How did you install nix? I assume as root user, right?
>
> >
> > On the client add something like this in your configuration.nix:
> >
> > {
> >   networking.extraHosts = ''
> > # FIX THE IP HERE
> > 192.168.0.8 my-build-machine
> >   '';
> >   nix.maxJobs = 1; # set to 0 to force remote building
> >   nix.distributedBuilds = true;
> >   nix.buildMachines = [
> > { hostName = "my-build-machine"; # I have the hostname in my
> extraHosts
> >   maxJobs = 6; # set to number of CPUs
> >   sshKey = "/home/myuser/.ssh/id_ecdsa";
> >   sshUser = "root";
> >   system = "x86_64-linux";
> > }
> >   ];
> > }
> >
> > Apply the config. You should be good to.
> > Missing things
> >
> > In cases where the laptop is on another network you want to disable the
> > distributed build. Especially if maxJobs = 0 you could end up in a
> > situation where you can’t build the new configuration because of that.
> I’m
> > sure there is a command-line or environment variable to change that
> config
> > at runtime but I don’t know how to switch this.
>
> That's the point: I don't want to disable it on commandline if I have to,
> but to
> enable it on commandline if I have the possibility to do distributed
> builds.
> I played around with ` --option` and setting configuration
> there,
> but I failed to get it working. I did not install nix on the remote
> machine as
> root, though. That might be the point.
>
> --
> 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] 519673: wpa_supplicant: start after wireless interfaces

2016-06-15 Thread Benno Fünfstück
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 519673e7145ea1e54afc54bc501b53bab226c94b
  
https://github.com/NixOS/nixpkgs/commit/519673e7145ea1e54afc54bc501b53bab226c94b
  Author: Benno Fünfstück 
  Date:   2016-06-16 (Thu, 16 Jun 2016)

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

  Log Message:
  ---
  wpa_supplicant: start after wireless interfaces

wpa_supplicant fails to start if the wireless interfaces aren't ready yet,
so we need to add a system ordering directive here to start wpa_supplicant
after the interfaces are ready. Note that Requires= is not enough since
it does not imply ordering.


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


[Nix-commits] [NixOS/nixpkgs] 41d523: gnome-breeze: init

2016-06-15 Thread Benno Fünfstück
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 41d523a8bc91767a47cdcede69037a3989cbf5aa
  
https://github.com/NixOS/nixpkgs/commit/41d523a8bc91767a47cdcede69037a3989cbf5aa
  Author: Benno Fünfstück 
  Date:   2016-06-16 (Thu, 16 Jun 2016)

  Changed paths:
A pkgs/misc/themes/gnome-breeze/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gnome-breeze: init


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


[Nix-commits] [NixOS/nixpkgs] 7e2129: perl-W3C-LinkChecker: fix build

2016-06-15 Thread Robert Helgesson
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7e21290079930c8c1ec174ff6c786187796cc188
  
https://github.com/NixOS/nixpkgs/commit/7e21290079930c8c1ec174ff6c786187796cc188
  Author: Robert Helgesson 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

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

  Log Message:
  ---
  perl-W3C-LinkChecker: fix build

Build failed due to missing `docdev` result, fixed by setting explicit
`outputs` field. Also add license and clean up run-time dependencies.


  Commit: 9bbac1f4eac3a880607d3ba6990fcb00fd031611
  
https://github.com/NixOS/nixpkgs/commit/9bbac1f4eac3a880607d3ba6990fcb00fd031611
  Author: Robert Helgesson 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

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

  Log Message:
  ---
  perl-HTTP-Message: 6.06 -> 6.11


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


Re: [Nix-dev] Set date/time manually

2016-06-15 Thread Bjørn Forsman
On 15 June 2016 at 00:02, Eike  wrote:
[...]
> It's strange, the date command works here fine, too. At work I'm running
> nixos in a vm, maybe this makes a difference….

FWIW, I'm running NixOS on a physical machine (non-VM).

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


[Nix-commits] [NixOS/nixpkgs] 9ff913: nix-prefetch-git: fix bash evaluation order depend...

2016-06-15 Thread Benno Fünfstück
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9ff91371d040941c347b95dc7ea081a9c6aa4d0e
  
https://github.com/NixOS/nixpkgs/commit/9ff91371d040941c347b95dc7ea081a9c6aa4d0e
  Author: Benno Fünfstück 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/build-support/fetchgit/nix-prefetch-git

  Log Message:
  ---
  nix-prefetch-git: fix bash evaluation order dependency


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


Re: [Nix-dev] Running nix-build on Circle CI

2016-06-15 Thread Kamil Chmielewski
It works.
Awesome, thx!


--
Kamil

2016-06-15 22:27 GMT+02:00 Daniel Hlynskyi :

> Have you tried
> nix-channel --add https://nixos.org/channels/nixos-unstab
> le nixpkgs
> ?
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Running nix-build on Circle CI

2016-06-15 Thread Daniel Hlynskyi
Have you tried
nix-channel --add https://nixos.org/channels/nixos-unstab
le nixpkgs
?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Set date/time manually

2016-06-15 Thread Eike


Bjørn Forsman  writes:

> On 15 June 2016 at 16:36, Eike  wrote:
>>
>> sorry, I meant to write `sudo date +%Y%m%d -s "20180210`.
>>
> Your command works for me. ("date" returns the new date.) But for
> testing purposes, I'd have a look at faketime instead: nix-env -iA
> nixos.libfaketime.

It's strange, the date command works here fine, too. At work I'm running
nixos in a vm, maybe this makes a difference…. But thanks for mentioning
libfaketime, I didn't know about it and it is exactly what I need.

Thanks and regards
Eike

-- 
gpg: AD7AC35E
finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Merge attribute sets recursively

2016-06-15 Thread 4levels
Hi Daniel,

Thanks for the pointer, I'll get on with it and report back here ;-)

On Wed, Jun 15, 2016, 21:33 Daniel Hlynskyi  wrote:

> Does lib.recursiveUpdate do the job?
> 15 черв. 2016 7:52 пп, користувач "4levels" <4lev...@gmail.com> написав:
>
>> Hi Nix Devs,
>>
>> I'm still struggling to achieve the following:
>>
>> I have an attribute set which is 2 levels deep nested and has a variable
>> number of subsets, like this:
>>
>> channels = {
>>   myallocator = {
>> "1" = {
>>   username = "demo1";
>> };
>> "2" = {
>>   username = "demo2";
>> };
>> ...
>>   };
>> };
>>
>> I want to add some more attributes to each final level so the resulting
>> set would be something like (where uri and timeout are added to each
>> subset)
>>
>> channels = {
>>   myallocator = {
>> "1" = {
>>   username = "demo1";
>>   uri = "https://api.myallocator.com";;
>>   timeout = "60";
>> };
>> "2" = {
>>   username = "demo2";
>>   uri = "https://api.myallocator.com";;
>>   timeout = "60";
>> };
>> ...
>>   };
>> };
>>
>> How can I achieve this?
>>
>> Thank you in advance!
>>
>> Kind regards,
>>
>>
>> Erik
>>
>>
>>
>>
>> ___
>> 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] Merge attribute sets recursively

2016-06-15 Thread Daniel Hlynskyi
Does lib.recursiveUpdate do the job?
15 черв. 2016 7:52 пп, користувач "4levels" <4lev...@gmail.com> написав:

> Hi Nix Devs,
>
> I'm still struggling to achieve the following:
>
> I have an attribute set which is 2 levels deep nested and has a variable
> number of subsets, like this:
>
> channels = {
>   myallocator = {
> "1" = {
>   username = "demo1";
> };
> "2" = {
>   username = "demo2";
> };
> ...
>   };
> };
>
> I want to add some more attributes to each final level so the resulting
> set would be something like (where uri and timeout are added to each
> subset)
>
> channels = {
>   myallocator = {
> "1" = {
>   username = "demo1";
>   uri = "https://api.myallocator.com";;
>   timeout = "60";
> };
> "2" = {
>   username = "demo2";
>   uri = "https://api.myallocator.com";;
>   timeout = "60";
> };
> ...
>   };
> };
>
> How can I achieve this?
>
> Thank you in advance!
>
> Kind regards,
>
>
> Erik
>
>
>
>
> ___
> 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] 70b0f3: rakudo: 2016.01 -> 2016.04

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 70b0f3128d4b9aa72467ae52bba86f9c431457ed
  
https://github.com/NixOS/nixpkgs/commit/70b0f3128d4b9aa72467ae52bba86f9c431457ed
  Author: Rahul Gopinath 
  Date:   2016-06-09 (Thu, 09 Jun 2016)

  Changed paths:
M pkgs/development/interpreters/rakudo/default.nix

  Log Message:
  ---
  rakudo: 2016.01 -> 2016.04

Updating Rakudo (Perl 6 compiler) to 2016.04


  Commit: a689df205a0f61aaefb666f7ffeb6a90d4d6af6f
  
https://github.com/NixOS/nixpkgs/commit/a689df205a0f61aaefb666f7ffeb6a90d4d6af6f
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/interpreters/rakudo/default.nix

  Log Message:
  ---
  Merge pull request #16050 from vrthra/rakudo

rakudo: 2016.01 -> 2016.04


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


[Nix-dev] Running nix-build on Circle CI

2016-06-15 Thread Kamil Chmielewski
Hi,

I want to use nix-build as a build tool for go2nix. After bad experience I
have with Travis that fails for many nixpkgs PRs I choose Circle CI.
Everything worked fine when I not needed any special nixpkgs branch or
channel with these simple steps:

- sudo mkdir -p /nix
- sudo chown ubuntu /nix
- curl https://nixos.org/nix/install | sh
- echo "source ~/.nix-profile/etc/profile.d/nix.sh" >> ~/.circlerc
- nix-build

But after a recent changes in buildGoPackage I need to use unstable channel
now. I tried to add few lines before nix-build like:

- nix-channel --add https://nixos.org/channels/nixos-unstable
- nix-channel --update
- nix-env -u

but id doesn't change anything in build result that is saying it can't find
buildGoPackage https://circleci.com/gh/kamilchm/go2nix/30

What else can I do?

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


[Nix-commits] [NixOS/nixpkgs] 9b01ad: rebol: init at 3-alpha

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 9b01ad3ce8da52f093b0724f01571d2e4a2b59a1
  
https://github.com/NixOS/nixpkgs/commit/9b01ad3ce8da52f093b0724f01571d2e4a2b59a1
  Author: Rahul Gopinath 
  Date:   2016-06-12 (Sun, 12 Jun 2016)

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

  Log Message:
  ---
  rebol: init at 3-alpha

Rebol is a cross-platform data exchange language and a multi-paradigm dynamic
programming language for network communications and distributed computing.


  Commit: cdcc1b1c53dc285c1c10a58b75a8ba8d6cc46597
  
https://github.com/NixOS/nixpkgs/commit/cdcc1b1c53dc285c1c10a58b75a8ba8d6cc46597
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

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

  Log Message:
  ---
  Merge pull request #16102 from vrthra/rebol

rebol: init at 3-alpha


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


[Nix-commits] [NixOS/nixpkgs] ac4903: gmsh: init at 2.12.0

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: ac4903284c75f8cae746f538dee7f8d43dda8e76
  
https://github.com/NixOS/nixpkgs/commit/ac4903284c75f8cae746f538dee7f8d43dda8e76
  Author: Christopher Lübbemeier 
  Date:   2016-06-09 (Thu, 09 Jun 2016)

  Changed paths:
A pkgs/applications/science/math/gmsh/CMakeLists.txt.patch
A pkgs/applications/science/math/gmsh/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  gmsh: init at 2.12.0


  Commit: 46edcd668f0e63b6c8efc171289d66cb5e824b6a
  
https://github.com/NixOS/nixpkgs/commit/46edcd668f0e63b6c8efc171289d66cb5e824b6a
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
A pkgs/applications/science/math/gmsh/CMakeLists.txt.patch
A pkgs/applications/science/math/gmsh/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #16095 from christopher-l/gmsh

gmsh: init at 2.12.0


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


[Nix-commits] [NixOS/nixpkgs] b89d4a: unicon: init at 11.7

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b89d4a3a61fe4a7d70c18336e18411da1bdc5b84
  
https://github.com/NixOS/nixpkgs/commit/b89d4a3a61fe4a7d70c18336e18411da1bdc5b84
  Author: Rahul Gopinath 
  Date:   2016-06-09 (Thu, 09 Jun 2016)

  Changed paths:
A pkgs/development/interpreters/unicon-lang/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  unicon: init at 11.7

Unicon is a very high level goal-directed, object-oriented, general purpose
applications language


  Commit: df5a43929ffd663cc3209ee5c2d338295bb44379
  
https://github.com/NixOS/nixpkgs/commit/df5a43929ffd663cc3209ee5c2d338295bb44379
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
A pkgs/development/interpreters/unicon-lang/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #16100 from vrthra/unicon

unicon: init at 11.7


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


[Nix-commits] [NixOS/nixpkgs] 2e61bd: beamPackages: add the ability to override phases

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2e61bd72a161d2f739049d407d6f8d8e0f933f92
  
https://github.com/NixOS/nixpkgs/commit/2e61bd72a161d2f739049d407d6f8d8e0f933f92
  Author: Eric Merritt 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/beam-modules/build-erlang-mk.nix
M pkgs/development/beam-modules/build-mix.nix
M pkgs/development/beam-modules/build-rebar3.nix

  Log Message:
  ---
  beamPackages: add the ability to override phases


  Commit: de4013367349b38ca44ea59805640b76a2f01102
  
https://github.com/NixOS/nixpkgs/commit/de4013367349b38ca44ea59805640b76a2f01102
  Author: Eric Merritt 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/beam-modules/fetch-hex.nix

  Log Message:
  ---
  beamPackages: point to new cdn for tarballs


  Commit: b1cd08246fa51d3b018ae92f1e58a79844e44859
  
https://github.com/NixOS/nixpkgs/commit/b1cd08246fa51d3b018ae92f1e58a79844e44859
  Author: Eric Merritt 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/beam-modules/build-erlang-mk.nix
M pkgs/development/beam-modules/build-mix.nix
M pkgs/development/beam-modules/build-rebar3.nix
M pkgs/development/interpreters/elixir/default.nix
M pkgs/development/interpreters/erlang/R16.nix
M pkgs/development/interpreters/erlang/R17.nix
M pkgs/development/interpreters/erlang/R18.nix
M pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap

  Log Message:
  ---
  beamPackages: turn on debug_info for beam packages

This allows you to turn on debug infor for all the beam packages in the
system with a single change at the top level. This is required for
debugging and dialyzer work. It also allows you to switch it on on a
package by package basis.


  Commit: 346fb6c3baa08542093d6f66027f2cb5c8d967b9
  
https://github.com/NixOS/nixpkgs/commit/346fb6c3baa08542093d6f66027f2cb5c8d967b9
  Author: Eric Merritt 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/beam-modules/hex-registry-snapshot.nix

  Log Message:
  ---
  beamPackages: update registry snapshot to d58a937


  Commit: 864a0816c468a9de91377dea7bfd6b5115669a9d
  
https://github.com/NixOS/nixpkgs/commit/864a0816c468a9de91377dea7bfd6b5115669a9d
  Author: Eric Merritt 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
R pkgs/development/tools/build-managers/rebar3/registrySnapshot.nix

  Log Message:
  ---
  rebar3: remove no longer needed registrySnapshot.nix


  Commit: eeed6411ce6f1b9a6028dc1f521f35643bfd5901
  
https://github.com/NixOS/nixpkgs/commit/eeed6411ce6f1b9a6028dc1f521f35643bfd5901
  Author: Eric Merritt 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/beam-modules/hex-packages.nix

  Log Message:
  ---
  beamPackages: update packages from Hex.pm

Pull in the latest package set from hex


  Commit: 605c08d2238e3fa42f5a898ee54cf234084dcd1a
  
https://github.com/NixOS/nixpkgs/commit/605c08d2238e3fa42f5a898ee54cf234084dcd1a
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/beam-modules/build-erlang-mk.nix
M pkgs/development/beam-modules/build-mix.nix
M pkgs/development/beam-modules/build-rebar3.nix
M pkgs/development/beam-modules/fetch-hex.nix
M pkgs/development/beam-modules/hex-packages.nix
M pkgs/development/beam-modules/hex-registry-snapshot.nix
M pkgs/development/interpreters/elixir/default.nix
M pkgs/development/interpreters/erlang/R16.nix
M pkgs/development/interpreters/erlang/R17.nix
M pkgs/development/interpreters/erlang/R18.nix
M pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap
R pkgs/development/tools/build-managers/rebar3/registrySnapshot.nix

  Log Message:
  ---
  Merge pull request #16122 from ericbmerritt/feature/beam-package-improvements

Feature/beam package improvements


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


[Nix-commits] [NixOS/nixpkgs] f771bf: font-manager: git-2016-03-02 -> 2016-06-04

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f771bf9239e42d1bcd19cc3991f5e66b3c4f453f
  
https://github.com/NixOS/nixpkgs/commit/f771bf9239e42d1bcd19cc3991f5e66b3c4f453f
  Author: José Romildo Malaquias 
  Date:   2016-06-12 (Sun, 12 Jun 2016)

  Changed paths:
M pkgs/applications/misc/font-manager/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  font-manager: git-2016-03-02 -> 2016-06-04


  Commit: d353301b32a89df0da120c65f10d3bb81ed887e4
  
https://github.com/NixOS/nixpkgs/commit/d353301b32a89df0da120c65f10d3bb81ed887e4
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/applications/misc/font-manager/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #16165 from romildo/upd.fontmanager

font-manager: git-2016-03-02 -> 2016-06-04


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


[Nix-commits] [NixOS/nixpkgs] e265f5: neovim: fix neovim on darwin - requires libmpack

2016-06-15 Thread Arseniy Seroka
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: e265f583952c959529666cb5691d002b2b627095
  
https://github.com/NixOS/nixpkgs/commit/e265f583952c959529666cb5691d002b2b627095
  Author: Colton Padden 
  Date:   2016-06-13 (Mon, 13 Jun 2016)

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

  Log Message:
  ---
  neovim: fix neovim on darwin - requires libmpack


  Commit: 91c9410b2e156a499507cefe38093c0bdde306a5
  
https://github.com/NixOS/nixpkgs/commit/91c9410b2e156a499507cefe38093c0bdde306a5
  Author: Arseniy Seroka 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

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

  Log Message:
  ---
  Merge pull request #16214 from cmpadden/neovim-darwin-fixes

neovim: fix neovim on darwin (requires libmpack)


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


[Nix-commits] [NixOS/nixpkgs] d56850: e2tools: init -> 0.0.16

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d56850dd49eddf1a934f017333d406acd806abec
  
https://github.com/NixOS/nixpkgs/commit/d56850dd49eddf1a934f017333d406acd806abec
  Author: Michiel Leenaars 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
A pkgs/tools/filesystems/e2tools/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  e2tools: init -> 0.0.16


  Commit: 05c4ddb0dbe04e540d5daaa2be3de55ece96d4d2
  
https://github.com/NixOS/nixpkgs/commit/05c4ddb0dbe04e540d5daaa2be3de55ece96d4d2
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
A pkgs/tools/filesystems/e2tools/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  Merge pull request #16246 from leenaars/e2tools

e2tools: init -> 0.0.16


Compare: https://github.com/NixOS/nixpkgs/compare/637ec46fcca0...05c4ddb0dbe0___
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


[Nix-dev] Merge attribute sets recursively

2016-06-15 Thread 4levels
Hi Nix Devs,

I'm still struggling to achieve the following:

I have an attribute set which is 2 levels deep nested and has a variable
number of subsets, like this:

channels = {
  myallocator = {
"1" = {
  username = "demo1";
};
"2" = {
  username = "demo2";
};
...
  };
};

I want to add some more attributes to each final level so the resulting set
would be something like (where uri and timeout are added to each subset)

channels = {
  myallocator = {
"1" = {
  username = "demo1";
  uri = "https://api.myallocator.com";;
  timeout = "60";
};
"2" = {
  username = "demo2";
  uri = "https://api.myallocator.com";;
  timeout = "60";
};
...
  };
};

How can I achieve this?

Thank you in advance!

Kind regards,


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


[Nix-commits] [NixOS/nixpkgs] 370cc4: libxfce4ui: use nativeBuildInputs for dependencies...

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 370cc4f44ff65dc0b58a19f523cabd9b6c1a5e0b
  
https://github.com/NixOS/nixpkgs/commit/370cc4f44ff65dc0b58a19f523cabd9b6c1a5e0b
  Author: José Romildo Malaquias 
  Date:   2016-06-14 (Tue, 14 Jun 2016)

  Changed paths:
M pkgs/desktops/xfce/core/libxfce4ui.nix

  Log Message:
  ---
  libxfce4ui: use nativeBuildInputs for dependencies not needed at runtime


  Commit: e72d29020c37a8630cd70073eac4d687631d0791
  
https://github.com/NixOS/nixpkgs/commit/e72d29020c37a8630cd70073eac4d687631d0791
  Author: José Romildo Malaquias 
  Date:   2016-06-14 (Tue, 14 Jun 2016)

  Changed paths:
M pkgs/desktops/xfce/core/libxfce4ui.nix

  Log Message:
  ---
  libxfce4ui: add libICE and libSM as propagated build inputs


  Commit: 637ec46fcca0066d384471722067d4483420a3c0
  
https://github.com/NixOS/nixpkgs/commit/637ec46fcca0066d384471722067d4483420a3c0
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/desktops/xfce/core/libxfce4ui.nix

  Log Message:
  ---
  Merge pull request #16227 from romildo/upd.xfce

libxfce4ui: add libICE and libSM as propagated build inputs


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


[Nix-commits] [NixOS/nixpkgs] b422df: crrcsim: 0.9.12 -> 0.9.13

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b422df0e990ac85ca34c19aabc1f6bf2e45dc600
  
https://github.com/NixOS/nixpkgs/commit/b422df0e990ac85ca34c19aabc1f6bf2e45dc600
  Author: Ambroz Bizjak 
  Date:   2016-06-14 (Tue, 14 Jun 2016)

  Changed paths:
M pkgs/games/crrcsim/default.nix

  Log Message:
  ---
  crrcsim: 0.9.12 -> 0.9.13


  Commit: 88db78f8ff5be2a78aef63929e6a7cf6d017196a
  
https://github.com/NixOS/nixpkgs/commit/88db78f8ff5be2a78aef63929e6a7cf6d017196a
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/games/crrcsim/default.nix

  Log Message:
  ---
  Merge pull request #16233 from ambrop72/ccrcsim

crrcsim: 0.9.12 -> 0.9.13


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


[Nix-commits] [NixOS/nixpkgs] f3d202: buildkite-agent: 2.1.8 ~> 2.1.13

2016-06-15 Thread Joachim Fasting
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f3d202150cd0ac594be6c2b0ba962cb871eabcef
  
https://github.com/NixOS/nixpkgs/commit/f3d202150cd0ac594be6c2b0ba962cb871eabcef
  Author: Paweł Pacana 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/tools/continuous-integration/buildkite-agent/default.nix

  Log Message:
  ---
  buildkite-agent: 2.1.8 ~> 2.1.13


  Commit: 7b08c5cb3a64bbc316543d5451c660ec342c0a96
  
https://github.com/NixOS/nixpkgs/commit/7b08c5cb3a64bbc316543d5451c660ec342c0a96
  Author: Joachim Fasting 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/tools/continuous-integration/buildkite-agent/default.nix

  Log Message:
  ---
  Merge pull request #16242 from arkency/buildkite-agent-2.1.13

buildkite-agent: 2.1.8 ~> 2.1.13


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


[Nix-commits] [NixOS/nixpkgs] 3868ca: haskell: generic-stack-builder sets an env var

2016-06-15 Thread Peter Simons
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 3868cad8325ceffd4a6afe1037107043bc34c878
  
https://github.com/NixOS/nixpkgs/commit/3868cad8325ceffd4a6afe1037107043bc34c878
  Author: YPares 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/haskell-modules/generic-stack-builder.nix

  Log Message:
  ---
  haskell: generic-stack-builder sets an env var

generic-stack-builder was not setting STACK_PLATFORM_VARIANT="nix".
This is required by stack when handling its haskell packages database
snapshot. Stack must keep separated packages built with its own GHC
and those built with GHC from Nixpkgs.


  Commit: 7c09b6c3efcfa4f29050308fbd148f586d7d6b57
  
https://github.com/NixOS/nixpkgs/commit/7c09b6c3efcfa4f29050308fbd148f586d7d6b57
  Author: Peter Simons 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/haskell-modules/generic-stack-builder.nix

  Log Message:
  ---
  Merge pull request #16250 from YPares/master

haskell: generic-stack-builder was missing an env var


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


[Nix-commits] [NixOS/nixpkgs] 8d3df9: git: 2.8.3 -> 2.9.0

2016-06-15 Thread Peter Simons
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 8d3df9f6c4a89dbcbb69c51cb861128d66f532e4
  
https://github.com/NixOS/nixpkgs/commit/8d3df9f6c4a89dbcbb69c51cb861128d66f532e4
  Author: Nathan Zadoks 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/applications/version-management/git-and-tools/git/default.nix

  Log Message:
  ---
  git: 2.8.3 -> 2.9.0


  Commit: ae854ce14f208eda4ededf25f77d47d82367118d
  
https://github.com/NixOS/nixpkgs/commit/ae854ce14f208eda4ededf25f77d47d82367118d
  Author: Peter Simons 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/applications/version-management/git-and-tools/git/default.nix

  Log Message:
  ---
  Merge pull request #16249 from nathan7/git-2.9.0

git: 2.8.3 -> 2.9.0


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


Re: [Nix-dev] hydra and nixos versions/commits at hydra.nixos.org

2016-06-15 Thread Colin Putney
On Wed, Jun 15, 2016 at 3:40 AM, Domen Kožar  wrote:

> Hydra NixOS module and package are now available on nixpkgs master.
> There's one bug I need to fix, then I'll backport these changes to 16.03.
>
> Meanwhile, I used following commit on 16.03 before I moved to the fork
> using some improvements:
> https://github.com/snabblab/snabblab-nixos/commit/20a3fe6e9cf9e0da2a855bd1df9ce7ebad434951
>
> Official releases will for now be pinned git revisions on nixpkgs,
> hopefully that will suffice for most of us.
>

Hooray! Thank you so much to all the people that contributed to this.

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


Re: [Nix-dev] Set date/time manually

2016-06-15 Thread Bjørn Forsman
On 15 June 2016 at 16:36, Eike  wrote:
>
> sorry, I meant to write `sudo date +%Y%m%d -s "20180210`.
>
> Eike  writes:
>
>> Hello NixOS experts,
>>
>> I want to test applications if they would work some time in the future
>> and so I thought to change the date using timedatectl. But it says that
>> it is not possible to use it on NixOS. The date command also doesn't
>> seem to work: the date/time is not changed after doing for example `sudo
>> date +%Y%m%d "20180210"`.
>>
>> How can I temporarily set the system time some value?

Your command works for me. ("date" returns the new date.) But for
testing purposes, I'd have a look at faketime instead: nix-env -iA
nixos.libfaketime.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Set date/time manually

2016-06-15 Thread Eike

sorry, I meant to write `sudo date +%Y%m%d -s "20180210`.

Eike  writes:

> Hello NixOS experts,
>
> I want to test applications if they would work some time in the future
> and so I thought to change the date using timedatectl. But it says that
> it is not possible to use it on NixOS. The date command also doesn't
> seem to work: the date/time is not changed after doing for example `sudo
> date +%Y%m%d "20180210"`.
>
> How can I temporarily set the system time some value?
>
> Thanks for your advice
> Eike
> ___
> 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] Set date/time manually

2016-06-15 Thread Eike

Hello NixOS experts,

I want to test applications if they would work some time in the future
and so I thought to change the date using timedatectl. But it says that
it is not possible to use it on NixOS. The date command also doesn't
seem to work: the date/time is not changed after doing for example `sudo
date +%Y%m%d "20180210"`.

How can I temporarily set the system time some value?

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


[Nix-commits] [NixOS/nixpkgs] 285aee: protobuf3_0: 3.0.0-beta-2 -> 3.0.0-beta-3.1

2016-06-15 Thread zimbatm
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 285aee3c1212a9b47d20644f846d0be6e3f16163
  
https://github.com/NixOS/nixpkgs/commit/285aee3c1212a9b47d20644f846d0be6e3f16163
  Author: zimbatm 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/development/libraries/protobuf/3.0.nix

  Log Message:
  ---
  protobuf3_0: 3.0.0-beta-2 -> 3.0.0-beta-3.1


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


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


Re: [Nix-dev] On the sad state of remote-builds for the end-user

2016-06-15 Thread Matthias Beyer
On 15-06-2016 11:10:09, zimbatm wrote:
> my build machine is currently down but I used to have something like this:
> HOWTO remote builds
> 
>- client: your laptop
>- build machine: the server that has tons of CPU
> 
> On the build machine, install your client’s ssh public in the
> /root/.ssh/authorized_keys.

Is your build machine a nixos machine or a non-nixos with nix installed? If the
latter: How did you install nix? I assume as root user, right?

> 
> On the client add something like this in your configuration.nix:
> 
> {
>   networking.extraHosts = ''
> # FIX THE IP HERE
> 192.168.0.8 my-build-machine
>   '';
>   nix.maxJobs = 1; # set to 0 to force remote building
>   nix.distributedBuilds = true;
>   nix.buildMachines = [
> { hostName = "my-build-machine"; # I have the hostname in my extraHosts
>   maxJobs = 6; # set to number of CPUs
>   sshKey = "/home/myuser/.ssh/id_ecdsa";
>   sshUser = "root";
>   system = "x86_64-linux";
> }
>   ];
> }
> 
> Apply the config. You should be good to.
> Missing things
> 
> In cases where the laptop is on another network you want to disable the
> distributed build. Especially if maxJobs = 0 you could end up in a
> situation where you can’t build the new configuration because of that. I’m
> sure there is a command-line or environment variable to change that config
> at runtime but I don’t know how to switch this.

That's the point: I don't want to disable it on commandline if I have to, but to
enable it on commandline if I have the possibility to do distributed builds.
I played around with ` --option` and setting configuration there,
but I failed to get it working. I did not install nix on the remote machine as
root, though. That might be the point.

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


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


Re: [Nix-dev] Raspberry-Pi NixOS

2016-06-15 Thread Lluís Batlle i Rossell
Go ahead.

I use nixos in the pi2 since pre-15.09. Now with 16.03.

On Wed, Jun 15, 2016 at 02:26:51PM +0200, Bas van Dijk wrote:
> I'm also really interested in getting NixOS to run on Raspberry-Pi 2/3. At
> LumiGuide we have many Raspberry Pi's deployed in the field running Debian.
> It would be great to replace that with NixOS like all our other machines.
> Op 15 jun. 2016 2:01 p.m. schreef "Matthias Beyer" :
> 
> > Hi viric,
> > Hi dezgeg,
> >
> > I just found the wiki page on nixos on the raspberry[0], where you two are
> > referenced as creators.
> >
> > May I ask whether this is still present? I plan on buying a Raspberry Pi
> > model
> > B, 3rd generation and build a small handheld linux terminal (see [1]) with
> > it,
> > but I really want to run nixos on it and be able to deploy software for it
> > from
> > my other devices (mainly because of recompilation times - or are there a
> > nixpkgs
> > substitutes for ARM available?).
> >
> > So my question is basically: Is this article still relevant to the current
> > situation, as the article is almost one year old?
> >
> > Of course I will document my experience and share it with the NixOS
> > community
> > after I created the device.
> >
> > [0]: https://nixos.org/wiki/Raspberry_Pi_2
> > [1]:
> > http://makezine.com/projects/build-raspberry-pi-powered-linux-laptop-that-fits-your-pocket/
> >
> > --
> > 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
> >
> >

-- 
(Escriu-me xifrat si saps PGP / Write ciphered if you know PGP)
PGP key D4831A8A - https://emailselfdefense.fsf.org/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 7102c3: cura: Fix breakage due to numpy change. (#16234)

2016-06-15 Thread Ambroz Bizjak
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7102c3c0c4eea385f5f2d7b52dab37ba46216356
  
https://github.com/NixOS/nixpkgs/commit/7102c3c0c4eea385f5f2d7b52dab37ba46216356
  Author: Ambroz Bizjak 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

  Changed paths:
M pkgs/applications/misc/cura/default.nix
A pkgs/applications/misc/cura/numpy-cast.patch

  Log Message:
  ---
  cura: Fix breakage due to numpy change. (#16234)

Upstream bug report: https://github.com/daid/Cura/issues/1461


___
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 Bas van Dijk
I'm also really interested in getting NixOS to run on Raspberry-Pi 2/3. At
LumiGuide we have many Raspberry Pi's deployed in the field running Debian.
It would be great to replace that with NixOS like all our other machines.
Op 15 jun. 2016 2:01 p.m. schreef "Matthias Beyer" :

> Hi viric,
> Hi dezgeg,
>
> I just found the wiki page on nixos on the raspberry[0], where you two are
> referenced as creators.
>
> May I ask whether this is still present? I plan on buying a Raspberry Pi
> model
> B, 3rd generation and build a small handheld linux terminal (see [1]) with
> it,
> but I really want to run nixos on it and be able to deploy software for it
> from
> my other devices (mainly because of recompilation times - or are there a
> nixpkgs
> substitutes for ARM available?).
>
> So my question is basically: Is this article still relevant to the current
> situation, as the article is almost one year old?
>
> Of course I will document my experience and share it with the NixOS
> community
> after I created the device.
>
> [0]: https://nixos.org/wiki/Raspberry_Pi_2
> [1]:
> http://makezine.com/projects/build-raspberry-pi-powered-linux-laptop-that-fits-your-pocket/
>
> --
> 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-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Raspberry-Pi NixOS

2016-06-15 Thread Lluís Batlle i Rossell
I don't know about the article... but I still use a pi2 as my main home
server, with nixos, with 16.03.

On Wed, Jun 15, 2016 at 02:01:06PM +0200, Matthias Beyer wrote:
> Hi viric,
> Hi dezgeg,
> 
> I just found the wiki page on nixos on the raspberry[0], where you two are
> referenced as creators.
> 
> May I ask whether this is still present? I plan on buying a Raspberry Pi model
> B, 3rd generation and build a small handheld linux terminal (see [1]) with it,
> but I really want to run nixos on it and be able to deploy software for it 
> from
> my other devices (mainly because of recompilation times - or are there a 
> nixpkgs
> substitutes for ARM available?).
> 
> So my question is basically: Is this article still relevant to the current
> situation, as the article is almost one year old?
> 
> Of course I will document my experience and share it with the NixOS community
> after I created the device.
> 
> [0]: https://nixos.org/wiki/Raspberry_Pi_2
> [1]: 
> http://makezine.com/projects/build-raspberry-pi-powered-linux-laptop-that-fits-your-pocket/
> 
> -- 
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
> 
> Proudly sent with mutt.
> Happily signed with gnupg.



-- 
(Escriu-me xifrat si saps PGP / Write ciphered if you know PGP)
PGP key D4831A8A - https://emailselfdefense.fsf.org/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] gitFetchPrivate on NixOS

2016-06-15 Thread zimbatm
Hi,

Yes the difference is that the build user is nixbld[1-9]. Also the SSH
agent doesn't allow other users to access to the socket.

Sorry I don't know the solution. You could maybe build a bridge on the
socket using `socat` to hide the caller's user.

On Wed, 15 Jun 2016, 11:57 Ashely Gillman,  wrote:

> Hi all,
> I have been attempting to use gitFetchPrivate to fetch from a private
> bitbucket repo over SSH, on both Ubuntu running Nix and on NixOS. I am able
> to get the setup working on Ubuntu.
>
> - Set up SSH-Agent the usual way.
> - Ensure that `git clone 
> ssh://g...@bitbucket.domain.com://.git`
> works, it does
> - Use `nix-shell -I ssh-config-file=$HOME/.ssh/config -I
> ssh-auth-sock=$SSH_AUTH_SOCK`, with a local shell.nix specifying
> requirements
>
> However, I am unable to repeat the process on a NixOS machine.
>
> gil@gil-nixos:~/proj/pylx $ git clone ssh://git@bitbucket.
> :7999/~/milx-view.git
> 
>
> gil@gil-nixos:~/proj/pylx $ nix-shell -I
> ssh-config-file=$HOME/.ssh/config -I ssh-auth-sock=$SSH_AUTH_SOCK
> these derivations will be built:
>   /nix/store/48cz61di3gf6fpkydgri74h5i2s8qh3h-vtk-qvtk-5.10.1.drv
>   /nix/store/pcj22pnchg10bq63a32jcc53l75cy8z1-boost-1.59.0.drv
>   /nix/store/sb7xc3pan2h7n1qdh94ynblb9cv12a3p-milx-view-585a819.drv
>   /nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv
> building path(s)
> ‘/nix/store/603gs7mcgpf7cnyv3k2bkxk1kbj4smbq-boost-1.59.0’,
> ‘/nix/store/q26zzdzy5zngyxyah8fhqmnqwbmz4gl4-boost-1.59.0-lib’,
> ‘/nix/store/zggqsmrh9l70yrcdagmgqjmv8i6a9rls-boost-1.59.0-dev’
> building path(s)
> ‘/nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819’
> building path(s)
> ‘/nix/store/j70pal3svpcip7xv21bxf5xy2c4chl84-vtk-qvtk-5.10.1’
> exporting ssh://git@bitbucket.:7999/~/milx-view.git
> (rev 585a8195804) into
> /nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819
> Initialized empty Git repository in
> /nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819/.git/
> Can't open user config file /home/gil/.ssh/config: Permission denied
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
> unpacking sources
> unpacking source archive
> /nix/store/cdz3wd9r8vlnp193kv091pal401mg9kc-boost_1_59_0.tar.bz2
> Can't open user config file /home/gil/.ssh/config: Permission denied
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
> Unable to checkout 585a8195804 from ssh://git@bitbucket.
> :7999/~/milx-view.git.
> builder for
> ‘/nix/store/sb7xc3pan2h7n1qdh94ynblb9cv12a3p-milx-view-585a819.drv’ failed
> with exit code 1
> cannot build derivation
> ‘/nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv’: 1 dependencies
> couldn't be built
> error: build of
> ‘/nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv’ failed
> /run/current-system/sw/bin/nix-shell: failed to build all dependencies
>
> With the relevant line being:
> Can't open user config file /home/gil/.ssh/config: Permission denied
>
> Probably a nixbld user is trying to access this? I am not actually sure if
> my nixpkgs are built by my user or by nixbld. How can I tell? `cat
> /etc/passwd` indicates that the nixbld users exist.
>
> I have attempted to follow instructions for setting up gitFetchPrivate for
> multi-user installations (but again, not even sure this is what I have - I
> just installed the simplest way), but to no avail (although the
> instructions are somewhat unclear).
>
> Thanks for any help,
> Ashley Gillman (Ash)
> ___
> 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] Raspberry-Pi NixOS

2016-06-15 Thread Matthias Beyer
Hi viric,
Hi dezgeg,

I just found the wiki page on nixos on the raspberry[0], where you two are
referenced as creators.

May I ask whether this is still present? I plan on buying a Raspberry Pi model
B, 3rd generation and build a small handheld linux terminal (see [1]) with it,
but I really want to run nixos on it and be able to deploy software for it from
my other devices (mainly because of recompilation times - or are there a nixpkgs
substitutes for ARM available?).

So my question is basically: Is this article still relevant to the current
situation, as the article is almost one year old?

Of course I will document my experience and share it with the NixOS community
after I created the device.

[0]: https://nixos.org/wiki/Raspberry_Pi_2
[1]: 
http://makezine.com/projects/build-raspberry-pi-powered-linux-laptop-that-fits-your-pocket/

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


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


Re: [Nix-dev] On the sad state of remote-builds for the end-user

2016-06-15 Thread zimbatm
Hi,

my build machine is currently down but I used to have something like this:
HOWTO remote builds

   - client: your laptop
   - build machine: the server that has tons of CPU

On the build machine, install your client’s ssh public in the
/root/.ssh/authorized_keys.

On the client add something like this in your configuration.nix:

{
  networking.extraHosts = ''
# FIX THE IP HERE
192.168.0.8 my-build-machine
  '';
  nix.maxJobs = 1; # set to 0 to force remote building
  nix.distributedBuilds = true;
  nix.buildMachines = [
{ hostName = "my-build-machine"; # I have the hostname in my extraHosts
  maxJobs = 6; # set to number of CPUs
  sshKey = "/home/myuser/.ssh/id_ecdsa";
  sshUser = "root";
  system = "x86_64-linux";
}
  ];
}

Apply the config. You should be good to.
Missing things

In cases where the laptop is on another network you want to disable the
distributed build. Especially if maxJobs = 0 you could end up in a
situation where you can’t build the new configuration because of that. I’m
sure there is a command-line or environment variable to change that config
at runtime but I don’t know how to switch this.

In some cases transferring the sources and build results around actually
offsets the compilation time. I’m not really sure what we could do about
this.
​

On Wed, 15 Jun 2016 at 10:38 Matthias Beyer  wrote:

> Hi,
>
> thanks for remembering me on this thread. I didn't get a response on the
> question where to document this, though. :-(
>
> Overall, this whole feature (especially remote builds, but also closure
> import/export and so on) is not as good documented as it should be.
>
> On 15-06-2016 16:18:18, Brian McKenna wrote:
> > Hi Matthias,
> >
> > I remember a similar conversation we had a few months ago. If you use
> > sudo, you can skip the signature checking:
> >
> > https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg18560.html
> >
> > It's not ideal - but does this same method get you unstuck?
> >
> > On 14 June 2016 at 01:19, Matthias Beyer  wrote:
> > > Hi,
> > >
> > > I'm a bit angry right now because things do not just work.
> > >
> > > I tried for almost three hours now to build my system on a remote
> machine.
> > > It took 1 hour to build the packages (yesod, yesod-persistent and some
> more
> > > dependencies of yesod and git-annex, see #16210) and then I couldn't
> download
> > > them from the remote machine because of some signatures missing.
> > >
> > > I tried to use nix-serve, but again... signatures missing. I generated
> a
> > > keypair, did a nix-push to some directory, but then I couldn't
> download the
> > > packages because the private key wasn't in the right path or something
> like
> > > this. This is by the way completely undocumented (the manpage tells you
> > > something of a *sysconfdir* ... but leaves unspecified what that is) -
> only the
> > > error message will tell you that it is /etc/nix (which isn't present
> if you
> > > install nix on a non-nixos system... leading to more confusion). After
> putting
> > > the private key into this path it starts complaining about the rights
> of the
> > > file (either a "everyone is able to read this and that shouldn't be the
> > > case"-like error message or some "Cannot read key" because there are
> too few
> > > rights...) ... and again: completely undocumented what rights are
> sufficient
> > > (this time not even the error message tells you what rights are to be
> expected).
> > >
> > > Can someone please provide a tutorial on how to build packages or a
> whole system
> > > on another machine? I do not want to mess around with keys and such
> ... I just
> > > want to build my system/package on that other machine... I have access
> via SSH
> > > (key) and that's it.
> > >
> > > I really don't want to rebuild all this haskell stuff every two weeks
> on my
> > > notebook... I still wonder why it isn't available as binary
> substitute...
> > > someone on IRC pointed out that there were changes in the haskell
> > > infrastructure... I don't understand why that means that substitutes
> are no
> > > longer available (and I really do not want to have to understand it...
> I just
> > > want to _use_ it).
> > >
> > > Please don't feel offended by this mail. I'm just really frustrated
> right now.
> > >
> > > --
> > > 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
> > >
>
> --
> 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-dev mailing list
nix-dev

Re: [Nix-dev] Importing a .nix.gpg file?

2016-06-15 Thread Eelco Dolstra
Hi,

On 06/12/2016 12:34 PM, Michal Rus wrote:

> in my nixos-config, I’ve got wifi-passwords.nix.gpg (the rest of the
> config is publicly available), and what I’d like to do is:
> 
> import ./wifi-passwords.nix.gpg;
> 
> Or:
> 
> imports = [ ./wifi-passwords.nix.gpg ];
> 
> … somewhere in configuration.nix. And when issuing `nixos-rebuild
> switch`, GnuPG would be used to decrypt the file.
> 
> How can I achieve that? Was this discussed before (I can’t find any
> mentions)? May I post a feature request in an issue or will it be
> rejected?

I implemented this a while ago, but it's not in Nix master:
https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg17545.html

-- 
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] gitFetchPrivate on NixOS

2016-06-15 Thread Ashely Gillman
Hi all,
I have been attempting to use gitFetchPrivate to fetch from a private bitbucket 
repo over SSH, on both Ubuntu running Nix and on NixOS. I am able to get the 
setup working on Ubuntu.

- Set up SSH-Agent the usual way.
- Ensure that `git clone 
ssh://g...@bitbucket.domain.com://.git` works, it does
- Use `nix-shell -I ssh-config-file=$HOME/.ssh/config -I 
ssh-auth-sock=$SSH_AUTH_SOCK`, with a local shell.nix specifying requirements

However, I am unable to repeat the process on a NixOS machine.

gil@gil-nixos:~/proj/pylx $ git clone 
ssh://git@bitbucket.:7999/~/milx-view.git


gil@gil-nixos:~/proj/pylx $ nix-shell -I ssh-config-file=$HOME/.ssh/config 
-I ssh-auth-sock=$SSH_AUTH_SOCK
these derivations will be built:
  /nix/store/48cz61di3gf6fpkydgri74h5i2s8qh3h-vtk-qvtk-5.10.1.drv
  /nix/store/pcj22pnchg10bq63a32jcc53l75cy8z1-boost-1.59.0.drv
  /nix/store/sb7xc3pan2h7n1qdh94ynblb9cv12a3p-milx-view-585a819.drv
  /nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv
building path(s) 
‘/nix/store/603gs7mcgpf7cnyv3k2bkxk1kbj4smbq-boost-1.59.0’, 
‘/nix/store/q26zzdzy5zngyxyah8fhqmnqwbmz4gl4-boost-1.59.0-lib’, 
‘/nix/store/zggqsmrh9l70yrcdagmgqjmv8i6a9rls-boost-1.59.0-dev’
building path(s) 
‘/nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819’
building path(s) 
‘/nix/store/j70pal3svpcip7xv21bxf5xy2c4chl84-vtk-qvtk-5.10.1’
exporting ssh://git@bitbucket.:7999/~/milx-view.git (rev 
585a8195804) into /nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819
Initialized empty Git repository in 
/nix/store/ra27851hlszq1k0n9zfa14xwhxqvn8zs-milx-view-585a819/.git/
Can't open user config file /home/gil/.ssh/config: Permission denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
unpacking sources
unpacking source archive 
/nix/store/cdz3wd9r8vlnp193kv091pal401mg9kc-boost_1_59_0.tar.bz2
Can't open user config file /home/gil/.ssh/config: Permission denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Unable to checkout 585a8195804 from 
ssh://git@bitbucket.:7999/~/milx-view.git.
builder for 
‘/nix/store/sb7xc3pan2h7n1qdh94ynblb9cv12a3p-milx-view-585a819.drv’ failed with 
exit code 1
cannot build derivation 
‘/nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv’: 1 dependencies 
couldn't be built
error: build of ‘/nix/store/dzh8jzl90ghsl0l71p9v2zqzh9wn2ngb-milx-view.drv’ 
failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies

With the relevant line being:
Can't open user config file /home/gil/.ssh/config: Permission denied

Probably a nixbld user is trying to access this? I am not actually sure if my 
nixpkgs are built by my user or by nixbld. How can I tell? `cat /etc/passwd` 
indicates that the nixbld users exist.

I have attempted to follow instructions for setting up gitFetchPrivate for 
multi-user installations (but again, not even sure this is what I have - I just 
installed the simplest way), but to no avail (although the instructions are 
somewhat unclear).

Thanks for any help,
Ashley Gillman (Ash)
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Importing a .nix.gpg file?

2016-06-15 Thread Michal Rus
On Mon, 13 Jun 2016 12:56:37 +0200, Vladimír Čunát  wrote:

>> in my nixos-config, I’ve got wifi-passwords.nix.gpg (the rest of the
>> config is publicly available), and what I’d like to do is:
>
> Note that as it is now, any nix-produced results end up as
> world-readable in nix store. There's a WIP trying to change that:
> https://github.com/NixOS/nix/issues/8

That’s perfectly okay for me for them to be readable by local users. By
“publicly” I mean “on GitHub.” [1]

Should I write a feature request? Or shall we discuss this some more? =)

[1] 
https://github.com/michalrus/dotfiles/tree/e48cce8f9240a82a263ceca0cd9057b4203b8c96/.nixos-config.symlink/local

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


Re: [Nix-dev] hydra and nixos versions/commits at hydra.nixos.org

2016-06-15 Thread Domen Kožar
Hydra NixOS module and package are now available on nixpkgs master. There's
one bug I need to fix, then I'll backport these changes to 16.03.

Meanwhile, I used following commit on 16.03 before I moved to the fork
using some improvements:
https://github.com/snabblab/snabblab-nixos/commit/20a3fe6e9cf9e0da2a855bd1df9ce7ebad434951

Official releases will for now be pinned git revisions on nixpkgs,
hopefully that will suffice for most of us.



On Tue, Jun 14, 2016 at 4:21 PM, Tomas Hlavaty <
tomas.hlav...@knowledgetools.de> wrote:

> Hi,
>
> does somebody know, what hydra and nixos versions/commits are deployed
> at hydra.nixos.org?
>
> I am running hydra with nixos 15.09 and hydra
> 993647d1e3b43f1f9b7dc2ebce889b475d156bb9 but I would like to upgrade my
> local hydra machine to nixos 16.03.
>
> I can see that the last successful hydra build was
>
>   1258008 2016-04-15 hydraSrc → 177bf25
>   at https://hydra.nixos.org/jobset/hydra/master/evals?page=2
>
> but it would be nice to know what is actually used.
>
> Even better would be, if I could somehow find it out somewhere publicly
> accessible without having to ask each time.
>
> What is the status of the official hydra releases?
>
> Thank you,
>
> Tomas
> ___
> 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] On the sad state of remote-builds for the end-user

2016-06-15 Thread Matthias Beyer
Hi,

thanks for remembering me on this thread. I didn't get a response on the
question where to document this, though. :-(

Overall, this whole feature (especially remote builds, but also closure
import/export and so on) is not as good documented as it should be.

On 15-06-2016 16:18:18, Brian McKenna wrote:
> Hi Matthias,
> 
> I remember a similar conversation we had a few months ago. If you use
> sudo, you can skip the signature checking:
> 
> https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg18560.html
> 
> It's not ideal - but does this same method get you unstuck?
> 
> On 14 June 2016 at 01:19, Matthias Beyer  wrote:
> > Hi,
> >
> > I'm a bit angry right now because things do not just work.
> >
> > I tried for almost three hours now to build my system on a remote machine.
> > It took 1 hour to build the packages (yesod, yesod-persistent and some more
> > dependencies of yesod and git-annex, see #16210) and then I couldn't 
> > download
> > them from the remote machine because of some signatures missing.
> >
> > I tried to use nix-serve, but again... signatures missing. I generated a
> > keypair, did a nix-push to some directory, but then I couldn't download the
> > packages because the private key wasn't in the right path or something like
> > this. This is by the way completely undocumented (the manpage tells you
> > something of a *sysconfdir* ... but leaves unspecified what that is) - only 
> > the
> > error message will tell you that it is /etc/nix (which isn't present if you
> > install nix on a non-nixos system... leading to more confusion). After 
> > putting
> > the private key into this path it starts complaining about the rights of the
> > file (either a "everyone is able to read this and that shouldn't be the
> > case"-like error message or some "Cannot read key" because there are too few
> > rights...) ... and again: completely undocumented what rights are sufficient
> > (this time not even the error message tells you what rights are to be 
> > expected).
> >
> > Can someone please provide a tutorial on how to build packages or a whole 
> > system
> > on another machine? I do not want to mess around with keys and such ... I 
> > just
> > want to build my system/package on that other machine... I have access via 
> > SSH
> > (key) and that's it.
> >
> > I really don't want to rebuild all this haskell stuff every two weeks on my
> > notebook... I still wonder why it isn't available as binary substitute...
> > someone on IRC pointed out that there were changes in the haskell
> > infrastructure... I don't understand why that means that substitutes are no
> > longer available (and I really do not want to have to understand it... I 
> > just
> > want to _use_ it).
> >
> > Please don't feel offended by this mail. I'm just really frustrated right 
> > now.
> >
> > --
> > 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
> >

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


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


Re: [Nix-dev] emscripten toolchain on nixos

2016-06-15 Thread zimbatm
That's really cool! Hosting the repl on nixos.org would probably help with
adoption.

On Mon, 13 Jun 2016 at 11:38 Joachim Schiele  wrote:

> hey,
>
> paul & me, authors of nixcloud.io/tour, lately were doing a project for
> nl-net. one outcome was a nice 'hack' in order to get emscripten to work
> on nixos.
>
> the details are here:
> https://github.com/NixOS/nixpkgs/issues/15636
>
> this kind of gives us finaly the opportunity to create a emscripten
> based toolchain abstraction as we have it for c/c++/perl/python/...
> already.
>
> there is some example code how to use nix-shell to hack on projects
> using a simple Makefile featuring two environments:
> - nativeEnv
> - emEnv
>
> both environments are basically using the same code-base but one
> compiles native code, so when you are on x86 you can directly execute
> the c-program there. the emEnv will also use the c-program but compile
> it into javascript which only can be executed by a browser (or nodejs).
>
> interestingly this already works for jscon-c, xml.js and libz used as
> buildInputs. just see
> https://github.com/NixOS/nixpkgs/issues/15636#issuecomment-222681446
>
> the logical next step will be a emscripten based toolchain. who is in?
> please contact us.
>
> if anyone reading this also attends tuebix,
> http://www.tuebix.org/2016/programm_raumplan/ , we could arrange some
> hacking in the evening.
>
> regards,
> joachim
> ___
> 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] When creating a bridge interface, the bridge doesn't appear

2016-06-15 Thread zimbatm
Can you paste the content of the service?

Can you paste the list of units that nixos restarts after applying the
config?

According to
https://github.com/NixOS/nixpkgs/blob/928035378d82de9641adc60e188c3b9313667729/nixos/modules/tasks/network-interfaces-scripted.nix#L184
it should be started to satisfy network.target.

Or maybe you have `useNetworkd` enabled and then it's using another
mechanism.


The behavior might change if you enabled `useNetworkd` or not.
On Wed, 15 Jun 2016 at 07:12 Arnold Krille  wrote:

> did you define anything depending on the bridge? that is did you configure
> anything in networking.interfaces?
>
> - Arnold
>
> Am 15. Juni 2016 02:28:54 MESZ, schrieb Matthew Robbetts <
> wingfeath...@gmail.com>:
>
>> Hi list,
>> (I filed an issue at GitHub (
>> https://github.com/NixOS/nixpkgs/issues/16230), but realized that since
>> it’s probably a PEBKAC issue, the mailing list might be more suitable.
>> Sorry for the cross-post!)
>>
>>
>> I am configuring a new nixOS system. My machine has two ethernet
>> interfaces (enp3s0 and enp4s0) and one wireless interface (wlp5s0). I
>> want to bridge the wireless with one of the ethernets, so in my
>> configuration.nix I add:
>>
>> networking = {
>> ...
>> bridges.br0.interfaces = [ "enp4s0" "wlp5s0" ];
>> ...
>>
>> and run nixos-rebuild switch.
>>
>> I observe in the output that, among other things, a
>>
>> /nix/store/z18i1q0r4i2bn0vkpcz45d10nn0628nf-unit-br0-netdev.service/br0-netdev.service
>> is created. However, ifconfig does not show the new bridge interface.
>>
>> If I manually run:
>> systemctl start br0-netdev.service
>>
>> the bridge interface appears.
>>
>> Probably I am doing something wrong, but I would have expected the bridge
>> to appear immediately as a result of nixos-rebuild switch.
>> Anyone have an opinion?
>>
>>
>> Thanks,
>> Matt
>>
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
> ___
> 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] a221ff: makeself: header wasn't being patched correctly

2016-06-15 Thread Wout Mertens
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: a221ff5569cea8b0f8e7a9f7222ccc760034074e
  
https://github.com/NixOS/nixpkgs/commit/a221ff5569cea8b0f8e7a9f7222ccc760034074e
  Author: Matthew Bauer 
  Date:   2016-06-14 (Tue, 14 Jun 2016)

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

  Log Message:
  ---
  makeself: header wasn't being patched correctly


  Commit: 3bbdfe5df7693b01b35365a0796bb4e29f425167
  
https://github.com/NixOS/nixpkgs/commit/3bbdfe5df7693b01b35365a0796bb4e29f425167
  Author: Wout Mertens 
  Date:   2016-06-15 (Wed, 15 Jun 2016)

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

  Log Message:
  ---
  Merge pull request #16232 from matthewbauer/makeself-fix-header

makeself: header wasn't being patched correctly


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