[Nix-commits] [NixOS/nixpkgs] fe1f56: groonga: 7.0.0 -> 7.0.3

2017-06-02 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: fe1f560fefc5510dd3d649893e440b62432b4c60
  
https://github.com/NixOS/nixpkgs/commit/fe1f560fefc5510dd3d649893e440b62432b4c60
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

  Changed paths:
M pkgs/servers/search/groonga/default.nix

  Log Message:
  ---
  groonga: 7.0.0 -> 7.0.3


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


[Nix-commits] [NixOS/nixpkgs] edaf76: albert: 0.11.1 -> 0.11.3

2017-06-02 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: edaf76a99db739a04fb043678b2fcde422e2da71
  
https://github.com/NixOS/nixpkgs/commit/edaf76a99db739a04fb043678b2fcde422e2da71
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-06-02 (Fri, 02 Jun 2017)

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

  Log Message:
  ---
  albert: 0.11.1 -> 0.11.3


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


[Nix-commits] [NixOS/nixpkgs] a4eb0d: varnish: 5.0.0 -> 5.1.2

2017-05-17 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: a4eb0dc8159f882154639c986d4ffabc61b64900
  
https://github.com/NixOS/nixpkgs/commit/a4eb0dc8159f882154639c986d4ffabc61b64900
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
M pkgs/servers/varnish/default.nix

  Log Message:
  ---
  varnish: 5.0.0 -> 5.1.2


  Commit: 5b30f246cb6f0fa772734bceb4363595040fe55e
  
https://github.com/NixOS/nixpkgs/commit/5b30f246cb6f0fa772734bceb4363595040fe55e
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-05-17 (Wed, 17 May 2017)

  Changed paths:
M nixos/modules/services/web-servers/varnish/default.nix

  Log Message:
  ---
  varnish module: remove unneeded gcc runtime dependency


Compare: https://github.com/NixOS/nixpkgs/compare/4b9c08929500...5b30f246cb6f___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


Re: [Nix-dev] If anyone is using VIM and BYOBU (or Screen or Tmux) in 256 colors - would you please send me your configuration file?

2017-05-15 Thread Eric Sagnes
For tmux, having the following in your ~/.tmux.conf should be enough:

```
set -g default-terminal "screen-256color"
```

Or running tmux with the `-2` flag should force tmux to use 256 colors:

```
$ tmux -2
```

On Mon, May 15, 2017 at 09:28:21PM +0900, Yasuaki Kudo wrote:
> I just can't get VIM to work in 256 colors in any terminal duplexer, I don't
> know what to do.   At least, when I use Byobu from NIXOS, I can run some
> 256-color confirmation script and see that it's enabled.   However, if I
> launch VIM, it doesn't work in 256 colors.   Exiting Byobu, VIM does work in
> 256 colors.
> 
>  
> 
> My version is as follows:
> 
> 17.03.1013.bc11395603 (Gorilla)
> 
>  
> 
> Cheers
> 
> Yasu
> 
>  
> 

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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Nixos wiki project

2017-05-10 Thread Eric Sagnes
For the record, in attempt to overcome the linguistic barrier, there is a wiki
in Japanese (also on github) managed by the Tokyo NixOS meetup members:

  https://github.com/Tokyo-NixOS/Tokyo-NixOS-Meetup-Wiki/wiki

Any Japanese speaker is welcome to add or edit content.
New content requests via issues are also welcomed.

Cheers,

On Wed, May 10, 2017 at 07:56:57AM +0100, Mic92 wrote:
> As the official wiki is now finally part of the history: 
> https://nixos.org/nixos/wiki.html,
> we have started our own community wiki:
> 
>   https://github.com/nixos-users/wiki/wiki
> 
> It is at the moment editable by every GitHub user and
> we use our IRC channel #krebs to review and track changes.
> 
> We invite you to dump your knowledge and useful snippets,
> if you found out something cool about Nix/NixOS.
> 
> Cheers Mic92.
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev

-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 92bb3e: i3: fix runtime dependencies

2017-05-09 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 92bb3e8b9bcbffe37c2e1c0efe467cdd018d6f14
  
https://github.com/NixOS/nixpkgs/commit/92bb3e8b9bcbffe37c2e1c0efe467cdd018d6f14
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
M nixos/modules/services/x11/window-managers/i3.nix
M pkgs/applications/window-managers/i3/default.nix

  Log Message:
  ---
  i3: fix runtime dependencies

Fixes #25633.


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


[Nix-commits] [NixOS/nixpkgs] add75b: j4-dmenu-desktop: 2.14 -> 2.15 (#24119)

2017-03-20 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: add75b63c8bd8afc0060757c1aa77ec4282add12
  
https://github.com/NixOS/nixpkgs/commit/add75b63c8bd8afc0060757c1aa77ec4282add12
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-03-21 (Tue, 21 Mar 2017)

  Changed paths:
M pkgs/applications/misc/j4-dmenu-desktop/default.nix

  Log Message:
  ---
  j4-dmenu-desktop: 2.14 -> 2.15 (#24119)


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


[Nix-commits] [NixOS/nixpkgs] 45f3a1: styx and themes: 0.5.0 -> 0.6.0

2017-02-26 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 45f3a17785bc3a2effecb36de90d7d6a125d1b9a
  
https://github.com/NixOS/nixpkgs/commit/45f3a17785bc3a2effecb36de90d7d6a125d1b9a
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-02-26 (Sun, 26 Feb 2017)

  Changed paths:
M pkgs/applications/misc/styx/default.nix
M pkgs/applications/misc/styx/themes.nix

  Log Message:
  ---
  styx and themes: 0.5.0 -> 0.6.0


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


[Nix-commits] [NixOS/nixpkgs] b4d8ed: linkchecker: fix darwin build

2017-02-26 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b4d8eddf48b471008822a033624ef59f8bfaa495
  
https://github.com/NixOS/nixpkgs/commit/b4d8eddf48b471008822a033624ef59f8bfaa495
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-02-26 (Sun, 26 Feb 2017)

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

  Log Message:
  ---
  linkchecker: fix darwin build


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


[Nix-commits] [NixOS/nixpkgs] e3f18e: parsimonious: 0.6.2 -> 0.7.0

2017-02-26 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: e3f18ec9a39cfec367d9340a89d3e0081c97f9e3
  
https://github.com/NixOS/nixpkgs/commit/e3f18ec9a39cfec367d9340a89d3e0081c97f9e3
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-02-26 (Sun, 26 Feb 2017)

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

  Log Message:
  ---
  parsimonious: 0.6.2 -> 0.7.0


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


[Nix-commits] [NixOS/nixpkgs] 979d20: buildRebar3: fix buildPhase & cleanup (#22744)

2017-02-18 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 979d20794d8651d7ac5c86ad37b68eacbadc5cc1
  
https://github.com/NixOS/nixpkgs/commit/979d20794d8651d7ac5c86ad37b68eacbadc5cc1
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-02-18 (Sat, 18 Feb 2017)

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

  Log Message:
  ---
  buildRebar3: fix buildPhase & cleanup (#22744)


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


[Nix-commits] [NixOS/nixpkgs] 44bf5b: qutebrowser: fix wrapper

2017-02-08 Thread Eric Sagnes
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 44bf5b2ba59a7dc23b4aeb97380b7c2003994ffe
  
https://github.com/NixOS/nixpkgs/commit/44bf5b2ba59a7dc23b4aeb97380b7c2003994ffe
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2017-02-09 (Thu, 09 Feb 2017)

  Changed paths:
M pkgs/applications/networking/browsers/qutebrowser/default.nix

  Log Message:
  ---
  qutebrowser: fix wrapper

(cherry picked from commit 76f742341cf440d2e890914b3c15b201916ba1da)

Fixes #22550.


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


[Nix-commits] [NixOS/nixpkgs] 2e2a0a: Merge pull request #20257 from expipiplus1/haskell...

2016-11-23 Thread Eric Sagnes
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2e2a0abcfde75d1f2103a2dbcd57b2c425c6b000
  
https://github.com/NixOS/nixpkgs/commit/2e2a0abcfde75d1f2103a2dbcd57b2c425c6b000
  Author: Peter Simons <sim...@cryp.to>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
M doc/languages-frameworks/haskell.md

  Log Message:
  ---
  Merge pull request #20257 from expipiplus1/haskell-doc-typo

fix documentation typo in doc/languages-frameworks/haskell.md
(cherry picked from commit 0a685cf8ea13ce0eb91b2a05d03186073ffaf73f)


  Commit: c4630613a4b30f8d524e3ee2438ed46ea4945eb9
  
https://github.com/NixOS/nixpkgs/commit/c4630613a4b30f8d524e3ee2438ed46ea4945eb9
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
M doc/manual.xml
A doc/reviewing-contributions.xml

  Log Message:
  ---
  manual: add section: reviewing contributions (#20626)

(cherry picked from commit 2b1d67a275a49bac3264cdfc0c0a5e2c540c9a34)


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


[Nix-commits] [NixOS/nixpkgs] 2b1d67: manual: reviewing contributions nixos -> nixpkgs (...

2016-11-22 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2b1d67a275a49bac3264cdfc0c0a5e2c540c9a34
  
https://github.com/NixOS/nixpkgs/commit/2b1d67a275a49bac3264cdfc0c0a5e2c540c9a34
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-22 (Tue, 22 Nov 2016)

  Changed paths:
M doc/manual.xml
A doc/reviewing-contributions.xml
M nixos/doc/manual/development/development.xml
R nixos/doc/manual/development/reviewing-contributions.xml

  Log Message:
  ---
  manual: reviewing contributions nixos -> nixpkgs (#20626)


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


[Nix-commits] [NixOS/nixpkgs] cf2654: either type: improve merge function

2016-11-08 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: cf2654b2e0dedd31c6ec14458953c85530db8cec
  
https://github.com/NixOS/nixpkgs/commit/cf2654b2e0dedd31c6ec14458953c85530db8cec
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-08 (Tue, 08 Nov 2016)

  Changed paths:
M lib/types.nix

  Log Message:
  ---
  either type: improve merge function


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


[Nix-commits] [NixOS/nixpkgs] e14de5: module system: extensible option types

2016-11-05 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: e14de56613fc8e42fb6249031efe9e7abbb65286
  
https://github.com/NixOS/nixpkgs/commit/e14de56613fc8e42fb6249031efe9e7abbb65286
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-06 (Sun, 06 Nov 2016)

  Changed paths:
M lib/modules.nix
M lib/options.nix
M lib/types.nix
M nixos/doc/manual/development/option-declarations.xml
M nixos/doc/manual/development/option-types.xml
M nixos/doc/manual/release-notes/rl-1703.xml
M nixos/modules/installer/tools/nixos-option.sh

  Log Message:
  ---
  module system: extensible option types


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


[Nix-commits] [NixOS/nixpkgs] 1fe1cd: types: loeOf -> listOf

2016-11-05 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1fe1cdecb24de63be577a2df538da03bbe96cd1d
  
https://github.com/NixOS/nixpkgs/commit/1fe1cdecb24de63be577a2df538da03bbe96cd1d
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-05 (Sat, 05 Nov 2016)

  Changed paths:
M nixos/doc/manual/development/option-types.xml
M nixos/modules/config/shells-environment.nix
M nixos/modules/config/system-environment.nix
M nixos/modules/services/misc/taskserver/default.nix

  Log Message:
  ---
  types: loeOf -> listOf


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


[Nix-commits] [NixOS/nixpkgs] 7fd38d: znc module: optionSet -> submodule (#20096)

2016-11-02 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7fd38dc8b32d12236c7b82f401d21dbd9d62e9fd
  
https://github.com/NixOS/nixpkgs/commit/7fd38dc8b32d12236c7b82f401d21dbd9d62e9fd
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

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

  Log Message:
  ---
  znc module: optionSet -> submodule (#20096)


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


[Nix-commits] [NixOS/nixpkgs] 5d6eaa: screenfetch: add bc dependency (#20097)

2016-11-02 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5d6eaaa179ed03426734c08a24deb2523c945459
  
https://github.com/NixOS/nixpkgs/commit/5d6eaaa179ed03426734c08a24deb2523c945459
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

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

  Log Message:
  ---
  screenfetch: add bc dependency (#20097)


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


[Nix-commits] [NixOS/nixpkgs] 7668d3: styx: 0.2.0 -> 0.3.1 (#20118)

2016-11-02 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 7668d3e69bd546a16738c6490cfe02b1f9d4e80b
  
https://github.com/NixOS/nixpkgs/commit/7668d3e69bd546a16738c6490cfe02b1f9d4e80b
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

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

  Log Message:
  ---
  styx: 0.2.0 -> 0.3.1 (#20118)


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


[Nix-commits] [NixOS/nixpkgs] 3b42bf: groonga: 6.0.9 -> 6.1.0 (#20119)

2016-11-02 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 3b42bfa77e11e4618523702601c948ac358a6748
  
https://github.com/NixOS/nixpkgs/commit/3b42bfa77e11e4618523702601c948ac358a6748
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
M pkgs/servers/search/groonga/default.nix

  Log Message:
  ---
  groonga: 6.0.9 -> 6.1.0 (#20119)

release notes: http://groonga.org/en/blog/2016/10/29/groonga-6.1.0.html


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


[Nix-commits] [NixOS/nixpkgs] 0bd263: wireguard: add module

2016-10-06 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 0bd263ecc3adf3e2bc60293436244d9a8f58966d
  
https://github.com/NixOS/nixpkgs/commit/0bd263ecc3adf3e2bc60293436244d9a8f58966d
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-10-06 (Thu, 06 Oct 2016)

  Changed paths:
M nixos/modules/module-list.nix
A nixos/modules/services/networking/wireguard.nix

  Log Message:
  ---
  wireguard: add module

fixes #17933


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


[Nix-commits] [NixOS/nixpkgs] c02b9b: cadvisor test: fix (#18671)

2016-09-20 Thread Eric Sagnes
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: c02b9b93f6bff1dcebdb7b7148e405aec6e5df66
  
https://github.com/NixOS/nixpkgs/commit/c02b9b93f6bff1dcebdb7b7148e405aec6e5df66
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-20 (Tue, 20 Sep 2016)

  Changed paths:
M nixos/modules/services/databases/influxdb.nix
M nixos/modules/services/monitoring/cadvisor.nix
M nixos/tests/cadvisor.nix
M nixos/tests/influxdb.nix

  Log Message:
  ---
  cadvisor test: fix (#18671)

* influxdb module: add postStart

* cadvisor module: increase TimeoutStartSec

Under high load, the cadvisor module can take longer than the default 90
seconds to start. This change should hopefully fix the test on Hydra.

(cherry picked from commit 2d2c311304a674d1eb8fbe6c53f719d9ae51e76e)


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


[Nix-commits] [NixOS/nixpkgs] 2d2c31: cadvisor test: fix (#18671)

2016-09-16 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 2d2c311304a674d1eb8fbe6c53f719d9ae51e76e
  
https://github.com/NixOS/nixpkgs/commit/2d2c311304a674d1eb8fbe6c53f719d9ae51e76e
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
M nixos/modules/services/databases/influxdb.nix
M nixos/modules/services/monitoring/cadvisor.nix
M nixos/tests/cadvisor.nix
M nixos/tests/influxdb.nix

  Log Message:
  ---
  cadvisor test: fix (#18671)

* influxdb module: add postStart

* cadvisor module: increase TimeoutStartSec

Under high load, the cadvisor module can take longer than the default 90
seconds to start. This change should hopefully fix the test on Hydra.


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


[Nix-commits] [NixOS/nixpkgs] 5e81d4: pythonPackages.mathics: Fix install

2016-09-16 Thread Eric Sagnes
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5e81d453df3ac7a8a1f63da1d7f24086d9156f43
  
https://github.com/NixOS/nixpkgs/commit/5e81d453df3ac7a8a1f63da1d7f24086d9156f43
  Author: Lancelot SIX <l...@lancelotsix.com>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

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

  Log Message:
  ---
  pythonPackages.mathics: Fix install

This fixes the broken test nixos/tests/mathics.nix

(cherry picked from commit 9d83af68d840fd37563f25613c43e3d6899bc030)
Signed-off-by: Domen Kožar <do...@dev.si>


  Commit: ca3764556709851005b9d4cfa954efcae2ea3e1c
  
https://github.com/NixOS/nixpkgs/commit/ca3764556709851005b9d4cfa954efcae2ea3e1c
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
M pkgs/servers/monitoring/cadvisor/default.nix

  Log Message:
  ---
  cadvisor: 0.10.1 -> 0.23.8

(cherry picked from commit fe54db902779f350b08c4ab601e178d8d9a18c6c)
Signed-off-by: Domen Kožar <do...@dev.si>


  Commit: 0c7ba1597089b93e686281502b3a9b4599cd2bce
  
https://github.com/NixOS/nixpkgs/commit/0c7ba1597089b93e686281502b3a9b4599cd2bce
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-16 (Fri, 16 Sep 2016)

  Changed paths:
M nixos/tests/cadvisor.nix

  Log Message:
  ---
  cadvisor: fix test

(cherry picked from commit db387a6f0d2dee8e74dd150e175f06983646dad5)
Signed-off-by: Domen Kožar <do...@dev.si>


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


[Nix-commits] [NixOS/nixpkgs] b32252: NixOS manual: add module option types doc (#18525)

2016-09-12 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: b32252ddfa530ff67e297ff6ba9e5cb0f91a767a
  
https://github.com/NixOS/nixpkgs/commit/b32252ddfa530ff67e297ff6ba9e5cb0f91a767a
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-13 (Tue, 13 Sep 2016)

  Changed paths:
M nixos/doc/manual/development/option-declarations.xml
A nixos/doc/manual/development/option-types.xml
M nixos/doc/manual/development/writing-modules.xml

  Log Message:
  ---
  NixOS manual: add module option types doc (#18525)


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


[Nix-commits] [NixOS/nixpkgs] e3bdf6: nixos: unbreak influxdb test (due to new API)

2016-09-08 Thread Eric Sagnes
  Branch: refs/heads/release-16.09
  Home:   https://github.com/NixOS/nixpkgs
  Commit: e3bdf6bd1f512a7e00cde45a8571151cefcb2ba4
  
https://github.com/NixOS/nixpkgs/commit/e3bdf6bd1f512a7e00cde45a8571151cefcb2ba4
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-08 (Thu, 08 Sep 2016)

  Changed paths:
M nixos/tests/influxdb.nix

  Log Message:
  ---
  nixos: unbreak influxdb test (due to new API)

Data from the documentation example[1] was used.

[1] https://docs.influxdata.com/influxdb/v1.0/guides/writing_data/

[Bjørn: change commit message.]

(cherry picked from commit f39f829441710a754842590fd49b67a85e0d4eab)


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


[Nix-commits] [NixOS/nixpkgs] f39f82: nixos: unbreak influxdb test (due to new API)

2016-09-08 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f39f829441710a754842590fd49b67a85e0d4eab
  
https://github.com/NixOS/nixpkgs/commit/f39f829441710a754842590fd49b67a85e0d4eab
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-09-08 (Thu, 08 Sep 2016)

  Changed paths:
M nixos/tests/influxdb.nix

  Log Message:
  ---
  nixos: unbreak influxdb test (due to new API)

Data from the documentation example[1] was used.

[1] https://docs.influxdata.com/influxdb/v1.0/guides/writing_data/

[Bjørn: change commit message.]


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


[Nix-commits] [NixOS/nixpkgs] aa8e66: nixos doc: add modules meta-attributes (#18078)

2016-08-29 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: aa8e663b6e6f6e0c47000ab509cbe7e0f35a8aad
  
https://github.com/NixOS/nixpkgs/commit/aa8e663b6e6f6e0c47000ab509cbe7e0f35a8aad
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-08-29 (Mon, 29 Aug 2016)

  Changed paths:
A nixos/doc/manual/development/meta-attributes.xml
M nixos/doc/manual/development/writing-modules.xml

  Log Message:
  ---
  nixos doc: add modules meta-attributes (#18078)


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


[Nix-commits] [NixOS/hydra] dedcb7: module: add default to buildMachinesFiles (#372)

2016-08-20 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/hydra
  Commit: dedcb76bedbb0c2fb43e18a5b7e58f3fcf2db0d6
  
https://github.com/NixOS/hydra/commit/dedcb76bedbb0c2fb43e18a5b7e58f3fcf2db0d6
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-08-20 (Sat, 20 Aug 2016)

  Changed paths:
M hydra-module.nix

  Log Message:
  ---
  module: add default to buildMachinesFiles (#372)


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


[Nix-commits] [NixOS/nixpkgs] 4271b6: fcitx-engines.table-other: fix build for cmake 3.6...

2016-08-14 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 4271b6d510193240a8bdebc606bbeab757c32822
  
https://github.com/NixOS/nixpkgs/commit/4271b6d510193240a8bdebc606bbeab757c32822
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-08-14 (Sun, 14 Aug 2016)

  Changed paths:
M pkgs/tools/inputmethods/fcitx-engines/fcitx-table-other/default.nix

  Log Message:
  ---
  fcitx-engines.table-other: fix build for cmake 3.6 (#17721)


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


[Nix-commits] [NixOS/nixpkgs] f0fef4: wireguard-unstable: 2016-07-22 -> 2016-08-08 (#177...

2016-08-14 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: f0fef4defb266af7fa1f24ad081a2407f62655da
  
https://github.com/NixOS/nixpkgs/commit/f0fef4defb266af7fa1f24ad081a2407f62655da
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-08-14 (Sun, 14 Aug 2016)

  Changed paths:
M pkgs/os-specific/linux/wireguard/default.nix

  Log Message:
  ---
  wireguard-unstable: 2016-07-22 -> 2016-08-08 (#17727)


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


[Nix-commits] [NixOS/nixpkgs] d64529: wireguard: 20160708 -> 2016-07-22 (#17362)

2016-07-31 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d6452987fb1af2aece6367c9d8d98ce1993ecc79
  
https://github.com/NixOS/nixpkgs/commit/d6452987fb1af2aece6367c9d8d98ce1993ecc79
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-07-31 (Sun, 31 Jul 2016)

  Changed paths:
M pkgs/os-specific/linux/wireguard/default.nix

  Log Message:
  ---
  wireguard: 20160708 -> 2016-07-22 (#17362)


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


[Nix-commits] [NixOS/nixpkgs] c6f99a: wireguard: split module and tools (#16883)

2016-07-13 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: c6f99a3a92f6ba21bd32f68efb186776df80a737
  
https://github.com/NixOS/nixpkgs/commit/c6f99a3a92f6ba21bd32f68efb186776df80a737
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-07-13 (Wed, 13 Jul 2016)

  Changed paths:
M pkgs/os-specific/linux/wireguard/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  wireguard: split module and tools (#16883)


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


[Nix-commits] [NixOS/nixpkgs] 1b4128: wireguard: init at 20160708 (#16856)

2016-07-11 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1b41283eb38094410faa70eded5215b809aa38ab
  
https://github.com/NixOS/nixpkgs/commit/1b41283eb38094410faa70eded5215b809aa38ab
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-07-11 (Mon, 11 Jul 2016)

  Changed paths:
A pkgs/os-specific/linux/wireguard/default.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  wireguard: init at 20160708 (#16856)


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


[Nix-commits] [NixOS/nixpkgs] 1349cd: fcitx: refactor (#16858)

2016-07-11 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 1349cd4e8dac7d18e92e176e72d49bad9bc90472
  
https://github.com/NixOS/nixpkgs/commit/1349cd4e8dac7d18e92e176e72d49bad9bc90472
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-07-11 (Mon, 11 Jul 2016)

  Changed paths:
M nixos/modules/i18n/input-method/fcitx.nix
M pkgs/tools/inputmethods/fcitx/default.nix
A pkgs/tools/inputmethods/fcitx/unwrapped.nix
M pkgs/top-level/all-packages.nix

  Log Message:
  ---
  fcitx: refactor (#16858)


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


[Nix-commits] [NixOS/nixpkgs] d5c61f: php: add meta.platforms

2016-06-22 Thread Eric Sagnes
  Branch: refs/heads/release-16.03
  Home:   https://github.com/NixOS/nixpkgs
  Commit: d5c61f3e15a943babb083214bb34304834f721aa
  
https://github.com/NixOS/nixpkgs/commit/d5c61f3e15a943babb083214bb34304834f721aa
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-06-22 (Wed, 22 Jun 2016)

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

  Log Message:
  ---
  php: add meta.platforms


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


[Nix-commits] [NixOS/nixpkgs] 96a4e1: nixpkgs manual: cleanup (#15611)

2016-05-22 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 96a4e1f80d1692965d3c4eb8152c00cc64b3216a
  
https://github.com/NixOS/nixpkgs/commit/96a4e1f80d1692965d3c4eb8152c00cc64b3216a
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-05-22 (Sun, 22 May 2016)

  Changed paths:
R doc/beam-users-guide.xml
M doc/default.nix
R doc/haskell-users-guide.md
A doc/languages-frameworks/beam.xml
A doc/languages-frameworks/haskell.md
M doc/languages-frameworks/index.xml
M doc/manual.xml

  Log Message:
  ---
  nixpkgs manual: cleanup (#15611)


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


[Nix-commits] [NixOS/nixpkgs] dcd472: uim: enable fep (#15355)

2016-05-16 Thread Eric Sagnes
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: dcd472809517c322e449b9a1741af60451f259cb
  
https://github.com/NixOS/nixpkgs/commit/dcd472809517c322e449b9a1741af60451f259cb
  Author: Eric Sagnes <eric.sag...@gmail.com>
  Date:   2016-05-17 (Tue, 17 May 2016)

  Changed paths:
M pkgs/tools/inputmethods/uim/default.nix

  Log Message:
  ---
  uim: enable fep (#15355)


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


Re: [Nix-dev] Upgrade from 15.09 to 16.03 with NixOps

2016-04-21 Thread Eric Sagnes
> The expressions are evaluated from the coordinator, so either you upgrade
> the channel there or you check out nixpkgs somewhere and set
> `NIX_PATH=nixpkgs=/path/to/your/clone` before running nixops.

It is also possible to use `-I nixpkgs=` and point directly to the
channel you want to use:

nixops deploy -d DEPLOYMENT -I 
nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-16.03.tar.gz

On Wed, Apr 20, 2016 at 09:42:37PM +, Wout Mertens wrote:
> The expressions are evaluated from the coordinator, so either you upgrade
> the channel there or you check out nixpkgs somewhere and set
> `NIX_PATH=nixpkgs=/path/to/your/clone` before running nixops.
> 
> On Wed, Apr 20, 2016 at 1:52 PM Teo Klestrup <teo...@gmail.com> wrote:
> 
> > I believe the channels are taken from the coordinator, so when the
> > coordinator is upgraded then the other machines should be, too.
> > On 18 Apr 2016 19:20, "4levels" <4lev...@gmail.com> wrote:
> >
> >> Hi Nix'ers,
> >>
> >> This is an Nix Ops related question.
> >>
> >> How can I specify which channel to use inside the nix expressions (*.nix
> >> files) for nixops?
> >>
> >> Thanks in advance!
> >>
> >> 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
> >
> -- 
> 
> Wout.
> (typed on mobile, excuse terseness)

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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-14 Thread Eric Sagnes
> Maybe this should be added to the standard library?

There is a sort function in the builtins [1], and one in Nix in the list
functions [2].

[1] http://nixos.org/nix/manual/#ssec-builtins
[2] https://github.com/NixOS/nixpkgs/blob/master/lib/lists.nix#L298

On Fri, Apr 15, 2016 at 02:53:49PM +1000, Roger Qiu wrote:
> Maybe this should be added to the standard library?
> On 15/04/2016 12:36 PM, "Eric Sagnes" <eric.sag...@gmail.com> wrote:
> 
> > Sorry, I just noticed that my example is wrong because it is missing
> > recursion.
> > The `in low ++ [x] ++ high;` should be `in qs low ++ [x] ++ qs high;`.
> >
> > For fun, I added it to rosetta code [1] :)
> >
> > [1] http://rosettacode.org/wiki/Sorting_algorithms/Quicksort#Nix
> >
> > On Wed, Apr 13, 2016 at 04:01:59PM +0200, Matthias Beyer wrote:
> > > Ah, okay... there was my fault. Thank you!
> > >
> > > On 13-04-2016 22:08:08, Eric Sagnes wrote:
> > > > The following seems to work:
> > > >
> > > > ```
> > > > let
> > > >   qs = l:
> > > > if l == [] then []
> > > > else
> > > >   with builtins;
> > > >   let x  = head l;
> > > >   xs = tail l;
> > > >   low  = filter (a: a < x)  xs;
> > > >   high = filter (a: a >= x) xs;
> > > >   in low ++ [x] ++ high;
> > > > in
> > > >   qs [3 4 1 2]
> > > > ```
> > > >
> > > > I think you get infinite recursion because `xs` in the else branch is
> > > > refering to the whole list and not the tail.
> > > >
> > > > On Wed, Apr 13, 2016 at 02:39:22PM +0200, Matthias Beyer wrote:
> > > > > Hi,
> > > > >
> > > > > I struggle implementing quicksort in the nix expression language...
> > maybe one of
> > > > > you gurus can help me? Here's what I have so far:
> > > > >
> > > > > let
> > > > > len= xs: builtins.length xs;
> > > > > fst= xs: builtins.head xs;
> > > > > lower  = x: xs: builtins.filter (a: a < x) xs;
> > > > > higher = x: xs: builtins.filter (a: a >= x) xs;
> > > > >
> > > > > qs = xs:
> > > > > if (0 == (len xs)) then []
> > > > > else (qs (lower (fst xs) xs)) ++ (fst xs) ++ (qs (higher
> > (fst xs) xs));
> > > > > in
> > > > > qs [3 4 1 2]
> > > > >
> > > > > Any ideas why I'm getting a stackoverflow due to infinite recursion?
> > > > >
> > > > > --
> > > > > 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
> > > >
> > > >
> > > > --
> > > > Eric Sagnes
> > > > サニエ エリック
> > >
> > > --
> > > Mit freundlichen Grüßen,
> > > Kind regards,
> > > Matthias Beyer
> > >
> > > Proudly sent with mutt.
> > > Happily signed with gnupg.
> >
> >
> >
> > --
> > Eric Sagnes
> > サニエ エリック
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >

-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-14 Thread Eric Sagnes
Sorry, I just noticed that my example is wrong because it is missing
recursion. 
The `in low ++ [x] ++ high;` should be `in qs low ++ [x] ++ qs high;`.

For fun, I added it to rosetta code [1] :)

[1] http://rosettacode.org/wiki/Sorting_algorithms/Quicksort#Nix

On Wed, Apr 13, 2016 at 04:01:59PM +0200, Matthias Beyer wrote:
> Ah, okay... there was my fault. Thank you!
> 
> On 13-04-2016 22:08:08, Eric Sagnes wrote:
> > The following seems to work:
> > 
> > ```
> > let
> >   qs = l:
> > if l == [] then []
> > else
> >   with builtins;
> >   let x  = head l;
> >   xs = tail l;
> >   low  = filter (a: a < x)  xs;
> >   high = filter (a: a >= x) xs;
> >   in low ++ [x] ++ high;
> > in
> >   qs [3 4 1 2]
> > ```
> > 
> > I think you get infinite recursion because `xs` in the else branch is 
> > refering to the whole list and not the tail.
> > 
> > On Wed, Apr 13, 2016 at 02:39:22PM +0200, Matthias Beyer wrote:
> > > Hi,
> > > 
> > > I struggle implementing quicksort in the nix expression language... maybe 
> > > one of
> > > you gurus can help me? Here's what I have so far:
> > > 
> > > let
> > > len= xs: builtins.length xs;
> > > fst= xs: builtins.head xs;
> > > lower  = x: xs: builtins.filter (a: a < x) xs;
> > > higher = x: xs: builtins.filter (a: a >= x) xs;
> > > 
> > > qs = xs:
> > > if (0 == (len xs)) then []
> > > else (qs (lower (fst xs) xs)) ++ (fst xs) ++ (qs (higher (fst 
> > > xs) xs));
> > > in
> > > qs [3 4 1 2]
> > > 
> > > Any ideas why I'm getting a stackoverflow due to infinite recursion?
> > > 
> > > -- 
> > > 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
> > 
> > 
> > -- 
> > Eric Sagnes
> > サニエ エリック
> 
> -- 
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
> 
> Proudly sent with mutt.
> Happily signed with gnupg.



-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Trying to implement quicksort in nix...

2016-04-13 Thread Eric Sagnes
The following seems to work:

```
let
  qs = l:
if l == [] then []
else
  with builtins;
  let x  = head l;
  xs = tail l;
  low  = filter (a: a < x)  xs;
  high = filter (a: a >= x) xs;
  in low ++ [x] ++ high;
in
  qs [3 4 1 2]
```

I think you get infinite recursion because `xs` in the else branch is 
refering to the whole list and not the tail.

On Wed, Apr 13, 2016 at 02:39:22PM +0200, Matthias Beyer wrote:
> Hi,
> 
> I struggle implementing quicksort in the nix expression language... maybe one 
> of
> you gurus can help me? Here's what I have so far:
> 
> let
> len= xs: builtins.length xs;
> fst= xs: builtins.head xs;
> lower  = x: xs: builtins.filter (a: a < x) xs;
> higher = x: xs: builtins.filter (a: a >= x) xs;
> 
> qs = xs:
> if (0 == (len xs)) then []
> else (qs (lower (fst xs) xs)) ++ (fst xs) ++ (qs (higher (fst xs) 
> xs));
> in
> qs [3 4 1 2]
> 
> Any ideas why I'm getting a stackoverflow due to infinite recursion?
> 
> -- 
> 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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Import remote packages in NixOps/NixOS

2016-03-08 Thread Eric Sagnes
Thank you, it works perfectly with the `{}` at the end of the import!

On Tue, Mar 08, 2016 at 05:24:02PM +0100, Rok Garbas wrote:
> Hi,
> 
> On Tue, Mar 8, 2016 at 6:42 AM, Eric Sagnes <eric.sag...@gmail.com> wrote:
> > It is possible to import foreign modules in NixOps by doing:
> >
> > ```
> > {
> >   network.description = "Web server";
> >
> >   webserver = { config, pkgs, ... }:
> > let
> >   myModuleSrc = (import  {}).fetchFromGitHub {
> >   owner  = "me";
> >   repo   = "myModule";
> >   rev= "v1.0";
> >   sha256 = "";
> >   };
> > in
> > {
> >   imports = [ "${myModuleSrc}/module.nix" ];
> >   services.myModule.enable = true;
> > };
> > }
> > ```
> >
> > Presupposing that the remote package provides a nix build expression,
> > is it possible to directly import it in a similar way?
> > Pseudo code that is not working:
> >
> > ```
> > {
> >   network.description = "Web server";
> >
> >   webserver = { config, pkgs, ... }:
> > let
> >   myPackageSrc = (import  {}).fetchFromGitHub {
> >   owner  = "me";
> >   repo   = "myPackage";
> >   rev= "v1.0";
> >   sha256 = "";
> >   };
> > in
> > {
> >   environment.systemPackages = [
> > (import "${myPackageSrc}/release.nix")
> >   ];
> >
> > };
> > }
> > ```
> >
> > (The above complains about coercing a function to a string.)
> >
> 
> 
> you can also just use builtins.fetchFromTarball.
> 
> for above you probably will want to do
> 
>   (import "${myPackagesSrc}/release.nix" { ... })
> 
> 
> -- 
> Rok Garbas - https://.garbas.si

-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Import remote packages in NixOps/NixOS

2016-03-07 Thread Eric Sagnes
It is possible to import foreign modules in NixOps by doing:

```
{
  network.description = "Web server";

  webserver = { config, pkgs, ... }:
let
  myModuleSrc = (import  {}).fetchFromGitHub {
  owner  = "me";
  repo   = "myModule";
  rev= "v1.0";
  sha256 = "";
  };
in
{ 
  imports = [ "${myModuleSrc}/module.nix" ]; 
  services.myModule.enable = true;
};
}
```

Presupposing that the remote package provides a nix build expression,
is it possible to directly import it in a similar way?
Pseudo code that is not working:

```
{
  network.description = "Web server";

  webserver = { config, pkgs, ... }:
let
  myPackageSrc = (import  {}).fetchFromGitHub {
  owner  = "me";
  repo   = "myPackage";
  rev= "v1.0";
  sha256 = "";
  };
in
{ 
  environment.systemPackages = [
(import "${myPackageSrc}/release.nix")
  ];

};
}
```

(The above complains about coercing a function to a string.)

Cheers,
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Call for input method PR review

2016-02-21 Thread Eric Sagnes
There are quite a lot of international fonts available in nixpkgs.
The few I use are IPAFont (Japanese) and baekmuk (Korean) and they look
very decent.

For other languages, there is the noto font that self advert as
"Beautiful and free fonts for all languages" also available.

Fonts are easy to package, and in case you find a font not available yet
in nixpkgs that should be in, just add an issue.

The best part with fonts in NixOS is that they can be configured in
configuration.nix with `fonts.fonts` and `fonts.fontconfig`.

On Mon, Feb 22, 2016 at 02:10:58PM +1000, Raahul Kumar wrote:
> Looking forward to this, but I assume Nixos probably doesn't package any
> decent fonts for languages outside of English.
> 
> Aloha,
> RK.
> 
> On Mon, Feb 22, 2016 at 12:24 PM, Yasuaki Kudo <y...@yasuaki.com> wrote:
> 
> > Many thanks in advance, looking fward to it!  Yasuaki :-)
> >
> > > On Feb 22, 2016, at 11:14, 宋文武 <iyzs...@member.fsf.org> wrote:
> > >
> > > Eric Sagnes <eric.sag...@gmail.com> writes:
> > >
> > >> Hi,
> > >>
> > >> The PR to improve the state of input methods [1] in NixOS is ready for
> > review.
> > >> Input methods are a way to input characters/symbols that are not
> > >> available on the keyboard, see wikipedia for more details [2].
> > >>
> > >> Input methods being a very important feature for non alphabetical
> > >> languages (Chinese, Korean, Japanese, Hindi, Arabic, ...),
> > >> it could be nice to have this PR merged for 16.03.
> > > Agree, this indeed low the barrier to NixOS for CJK folks.
> > >
> > > Merged, thanks!
> > > ___
> > > 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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Call for input method PR review

2016-02-19 Thread Eric Sagnes
Hi,

The PR to improve the state of input methods [1] in NixOS is ready for review.
Input methods are a way to input characters/symbols that are not available on 
the keyboard, see wikipedia for more details [2].

Input methods being a very important feature for non alphabetical languages 
(Chinese, Korean, Japanese, Hindi, Arabic, ...),
it could be nice to have this PR merged for 16.03.

Please consider test/review the PR if you would like to see multi-language 
support in NixOS improved.

The Testing section of the PR [1] description give basic instructions on how to 
test.
The approach is to rebase the branch on current nixos-unstable to avoid lot of 
rebuilds,
but that trigger a few merge conflicts (that should be trivial to fix).

Note for LaTeX users, the table-other engine for fcitx provide basic support 
for LaTeX symbols input.

Cheers,

[1] https://github.com/NixOS/nixpkgs/pull/11254
[2] https://en.wikipedia.org/wiki/Input_method
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] [Event] NixOS at Open Source Conference 2016 Tokyo Spring

2016-02-07 Thread Eric Sagnes
Hi,

Just to let you know that there will be a NixOS users group booth at the Open 
Source Conference 2016 Tokyo Spring on February 26 and 27.
We will have a Nix/NixOS introduction talk (in japanese) on the 26 from 15:15 
to 16:00 in room 506.
There will be a few goodies at the booth, mainly stickers and Install CDs, and 
a machine to play with NixOS.
It is not a very big conference, but many other open source communities will 
there too.
The conference venue is Meisei university (明星大学) that is fairly far from 
central Tokyo (about 1h by train from Shinjuku). 
There is no entrance fee, and there will be an optional party on the 26 after 
the conference (about 200 participants) with drinks and food that will cost 
1000 yens (500 yens for students).
Please contact me in case you have questions or need more information.

Conference homepage(Japanese): http://www.ospn.jp/osc2016-spring/
Party reservation page(Japanese): 
https://www.ospn.jp/osc2016-spring/modules/eguide/event.php?eid=1

By the way, we are holding a monthly NixOS meetup in central Tokyo central 
(Kayabacho).
The meetup is in English and/or Japanese depending on the attendees.
We mainly do basic things like presenting/studying NixOS internals and 
troubleshooting. 
The next one is on February 18th and we plan to talk about Hydra.
We also compile the issues/questions the attendees had in a dedicated wiki in 
japanese, so if you are a Japanese speaker, please have a check and let me know 
if there are things missing or any mistakes.

Meetup page: http://www.meetup.com/ja-JP/Tokyo-NixOS-Meetup/
Japanese Wiki: https://github.com/Tokyo-NixOS/Tokyo-NixOS-Meetup-Wiki/wiki

Last, in case any of you is planning to visit Tokyo and would like to meet 
local nixers, please contact me or drop a message on the meetup page!

Cheers,
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Problem setting a systemd service using dbus

2016-01-30 Thread Eric Sagnes
Hi,

I am having trouble setting a systemd service for a program that requires dbus.
At first it complained that it couldn't find `dbus-launch`, but adding 
`pkgs.dbus_daemon` to the service `path` fixed that.
But now it is complaining that DBUS_SESSION_BUS_ADDRESS is not set and that X11 
is not initialized (the last line).

```
1月 30 16:34:54 alpha fcitx[14131]: (WARN-14131 
/tmp/nix-build-fcitx-4.2.9.drv-0/fcitx-4.2.9/src/module/dbus/dbusstuff.c:188) 
Without DISPLAY or DBUS_SESSION_BUS_ADDRESS session bus will not work
1月 30 16:34:54 alpha fcitx[14131]: (ERROR-14131 
/tmp/nix-build-fcitx-4.2.9.drv-0/fcitx-4.2.9/src/module/notificationitem/notificationitem.c:187)
 DBus Not initialized
1月 30 16:44:15 alpha fcitx[14131]: (ERROR-14131 
/tmp/nix-build-fcitx-4.2.9.drv-0/fcitx-4.2.9/src/ui/kimpanel/kimpanel.c:317) 
DBus Not initialized
1月 30 16:44:15 alpha fcitx[14131]: (ERROR-14131 
/tmp/nix-build-fcitx-4.2.9.drv-0/fcitx-4.2.9/src/lib/fcitx/ui.c:165) no usable 
user interface.
1月 30 16:44:15 alpha fcitx[14131]: (FATAL-14131 
/tmp/nix-build-fcitx-4.2.9.drv-0/fcitx-4.2.9/src/frontend/xim/xim.c:134) 
X11が初期化されていません
```

Here the unit relevant settings:

```
  path= [ pkgs.dbus_daemon ];
  after   = [ "display-manager.service" ];
  wantedBy= [ "graphical.target" ];
```

The unit is loaded and active but the program is not appearing in the systray 
as it should, probably because it cannot find X11 and dbus.

Does someone knows how to address this problem?

-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] NixOS modules: restrict the values of a `types.listOf x`

2016-01-21 Thread Eric Sagnes
Hi,

I would like to force an option of type `types.listOf packages` to allow only a 
certain list of packages.
Something like `types.someOf packages [ pkgs.pluginA pkgs.pluginB pkgs.pluginC 
]`.

So that if a user set `myModule.plugins = [ pkgs.pluginA pkgs.firefox ]`, it 
gives an error like 
"Invalid value `pkgs.firefox` for `myModule.plugins. Values should be some of [ 
pkgs.pluginA pkgs.pluginB pkgs.pluginC ]";

Is there a way to achieve this?

-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS modules: restrict the values of a `types.listOf x`

2016-01-21 Thread Eric Sagnes
Following the previous email,
As I found nothing doing that in lib.types, I played a little with nix-repl and 
made a PR adding this functionality

https://github.com/NixOS/nixpkgs/pull/12534

It was the first time I seriously used nix-repl and it is really nice.
Thanks for making a such useful tool!

On Fri, Jan 22, 2016 at 01:31:37PM +0900, Eric Sagnes wrote:
> Hi,
> 
> I would like to force an option of type `types.listOf packages` to allow only 
> a certain list of packages.
> Something like `types.someOf packages [ pkgs.pluginA pkgs.pluginB 
> pkgs.pluginC ]`.
> 
> So that if a user set `myModule.plugins = [ pkgs.pluginA pkgs.firefox ]`, it 
> gives an error like 
> "Invalid value `pkgs.firefox` for `myModule.plugins. Values should be some of 
> [ pkgs.pluginA pkgs.pluginB pkgs.pluginC ]";
> 
> Is there a way to achieve this?
> 
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Dealing with missing sources

2015-12-17 Thread Eric Sagnes
Hi,

I am currently working on Hydra aborted jobs, and for a few packages the 
sources totally disappeared.

An example of this is the directfb package. The site http://www.directfb.org/
returns server not found. (there is even a news on phoronix regarding that [1])
It doesn't look like a temporary failure as the news is from end of August.

What would be the best way to deal with such cases?

I can think of:

1/ mark the package as broken until upstream reappear.
2/ get the source from another place (phoronix comments mentions 
archive.org)
3/ As some packages in nixpkgs have http://tarballs.nixos.org/ as source,
download the latest source archive and upload it there.

1 is not a real solution as upstream might never reappear, 2 seems a little 
fragile as the new source is not official and could fail so 3 seems the best 
solution.
But I couldn't find any instructions on how to put files in 
http://tarballs.nixos.org/ in the available resources.

What would be the best way to deal with such problems?

[1] https://www.phoronix.com/scan.php?page=news_item=DirectFB-Is-It-Gone
[2] https://web.archive.org/web/*/http://www.directfb.org/
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Regarding the unstable channel

2015-12-14 Thread Eric Sagnes
Hi,

I am using the unstable channel and recently encoutered some issues to update 
the system with `nixos-rebuild`, to list a few:

- flashplayer source not found (PR #11675)
- udevil not building (PR #11702)
- signing-party source not found (PR #11703)

All these issues have in common that the binary substitute was not available 
and they were triggered during source building.
As I understand it, a channel is updated when *all* the packages have been
built and the binary cache is available [1].

I totally understand that issues are expected when using the something labelled 
unstable, but it might confuse some less technical users, or worse give a bad 
impression to people that are trying NixOS.

This problem has no severe consequences as the system stays in a stable 
state, but it is a little unpleasing when trying to update the system with a
a local dev branch rebased on the current unstable and get update failures. 
(maybe this is more a development workflow problem?)

I am not familiar with hydra so I don't know what is possible to improve 
the situation. 
But for example, could it be possible to update the unstable channel when none 
or only a few jobs fail?
Also, I have no idea if it is technically possible, but having an automatic 
weekly digest on the ML with some hydra evaluations statistics and a list of 
"newly failing jobs" could be a way to bring attention on potential issues.

Cheers,
Eric

[1] http://nixos.org/nixos/manual/index.html#sec-upgrading
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Improving Nix Containers

2015-11-10 Thread Eric Sagnes
Dear mailing list,

There are a few PR on nixpkgs introducing some exciting new features to nix 
containers that are inactive for some time.

Quicklist:

#3021 Improvements for declarative nixos containers [1]
Brings unique unit per container, new network options and other improvements.
Looks almost ready to merge (conflicts with master).

#7993 nixos-container: support user-defined extra binds [2]
Brings shared folders between host and containers.
There is a consideration about RequireMountsFor, but #3021 unique unit per 
container could help.

#6208 IPv6 containers and NAT [3]
Brings ipv6 containers.
There is a consideration about forward ports option parsing and it conflicts 
with master.

It is such a waste to let these PR slowly dying as they seem so close to merge.

I hope this message can help to bring some light back on these PR and identify 
the potential remaining issues.

Best regards,
Eric

[1] https://github.com/NixOS/nixpkgs/pull/3021
[2] https://github.com/NixOS/nixpkgs/pull/7993
[3] https://github.com/NixOS/nixpkgs/pull/6208
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What license does the content of the nixos wiki and the manuals have?

2015-09-30 Thread Eric Sagnes
Hi,

While editing a page in the current wiki I found a page mentioning 
the copyright used:
https://nixos.org/wiki/Nix_Wiki:Copyrights
(The page is linked from the edition interface of the wiki)

Quoting below:

---
Right now we don't have a final choice about the license.

For now when contributing to the wiki you agree that your content may be
relicensed to whatever license is choosen by the nix community.
Subscribe to the mailinglist to stay up to date. 
---

I am not a lawyer but this sounds legit enough to avoid deleting pages and
anonymous contributions.


On Fri, Sep 25, 2015 at 01:50:54PM +0300, Kirill Elagin wrote:
> I’d like to also point out another problem.
> In case some of contributors do not agree to the new terms, how are we
> going to delete their contributions? My understanding is that simply
> deleting the content in question from the page is not enough, it’s wiki
> actually. We’ll have to see how, for example, Wikipedia deals with this
> kind of issues, I’m sure they often have to remove copyrighted content.
> 
> That said, I’m pretty sure other projects also had to deal with changing
> the licence of their docs, so we can learn from their experience instead of
> inventing something new.
> 
> On Fri, Sep 25, 2015 at 10:28 AM, Joachim Schiele <j...@lastlog.de> wrote:
> 
> > two problems i see here:
> > - text can't be covered by GPL thus they created CC
> > - some edits in the wiki are anonymous (whom to ask?)
> >
> > i like that we are adressing this issue now. it is very important.
> >
> > i'd go for CC BY SA 3.0
> > https://creativecommons.org/licenses/by-sa/3.0/
> > as IMHO this fits the other licenses pretty well
> >
> > On 25.09.2015 03:48, stewart mackenzie wrote:
> > > According to my understanding:
> > >
> > > * 1st agree on a license for the wiki.
> > > * we need to get all wiki contributors to agree on said license.
> > > * we'll need a written statement from all wiki contributors, could be
> > > something simple like "I agree to publish my contributions to the nixos
> > > wiki under the X license" these statements could be on a new mailing
> > > list thread. It'll be mundane receiving these mails but it's needed..
> > >
> > > (longerterm strategy)
> > > * The Nixos Foundation could use selected parts of the C4.1(
> > > http://rfc.zeromq.org/spec:22) particularly the licensing bits to create
> > > a nixos contributors 'contract'. It /should/ be difficult but not
> > > impossible to change the license of wiki, nix{pkgs,os,} as this prevents
> > > vendor lockins / foundation / consortium clusterfuck takeovers where
> > > dishonest agents could for example purchase the copyright to a codebase.
> > > i.e. what happened to Berkeleydb and oracle.
> > > * so far all the contribution copyrights to nix{os,pkgs} belong to the
> > > contributors and not the nixos foundation. It is preferable (IMHO) that
> > > copyright remain in the contributors hands and not the nixos foundation.
> > > Foundations can be corrupted, this prevents sillybuggers happening in
> > > foundations.
> > >
> > > Personally, i'd prefer the whole nix{os,pkgs} to be a license like gpl3
> > > or mpl2. These licenses create prevent an org like redhat form forking
> > > and sublicensing.
> > >
> > > I am not a lawyer.
> > >
> > > There are treasures of untold wealth in nixos let's at least properly
> > > protect them.
> > >
> > > On 25 Sep 2015 01:52, "Vladimír Čunát" <vcu...@gmail.com
> > > <mailto:vcu...@gmail.com>> wrote:
> > >
> > > On 09/24/2015 05:24 PM, Domen Kožar wrote:
> > > > I'm all for permissive creative commons license.
> > >
> > > It might be good to have the same license for wiki and nix{pkgs,os,}
> > > docs, allowing us to move content around freely.
> > >
> > > I'm no lawyer, too, but I think there's also the issue of the
> > copyright
> > > holder, which might be the foundation, for example. And the question
> > of
> > > "asking everyone" seems rather difficult; moreover, I'm not sure what
> > > kind of approval is needed (I'm afraid a paper-written one in some
> > > jurisdictions).
> > >
> > >
> > > Vladimir
> > >
> > >
> > >
> > > ___
> > > nix-dev mailing list
> > > nix-dev@lists.science.uu.nl <mailto:nix-dev@lists.science.uu.nl>
> > > 

Re: [Nix-dev] NixOS-Wiki alternative. Was: What license does the content of the nixos wiki and the manuals have?

2015-09-25 Thread Eric Sagnes
y are not tracked in git.
> I had to do some nasty hacks for this.
> 
> The templates cannot be used to generate, for example, warning
> blocks:
> 
> { warning_block "Do not install this in User env" }
> 
> (Just an example, not the actual markup for templates)
> The above is _not_ possible with gitit. Kinda dealbreaker for me.
> 
> There are few plugins for gitit. I failed installing even
> the simplest of them using nixos tools.
> 
> Also, gitit is not actively maintained. There is an attempt to
> rewrite gitit (called gitit2 actually) which is even less
> maintained.
> 
> Running not-that-well-maintained software is ... problematic at
> least.
> 
> gollum
> --
> 
> Powering the github wiki, relatively actively maintained... Good
> idea I thought. But:
> 
> - No templates
> - No Plugins
> - Not even custom style (you can do it, but I couldn't find
>   documentation about it)
> 
> Also, gollum is great for single-user use. I use it locally to
> keep some notes. It works great. But I fear distributing it and
> merging around. It is just not the way it is supposed to work, I
> think.
> 
> And, of course, it is rather complicated to keep track of where
> things are actually stored. You can mess up really bad (I already
> did) by just naming a _folder_ like a _file_.
> 
> All in all, it did not _feel_ that good using it.
> 
> 
> So these were my options on wikis with git as backend. There are no
> others (well, there is a perl-thing, I didn't test this one,
> actually).
> 
> Sadly, I couldn't satisfy myself with these options.
> 
> So, an idea came up - why not using static pages for all of this? If you
> want to do contributions via git, you can use github. If one want to
> host it, one can use github pages and build it with travis-ci. These
> things are documented and they _work_ for other people, so why not for
> a wiki?
> 
> To be able to build pages with travis-ci and github pages, one needs a
> static site compiler. I used a static site compiler which is actively
> maintained and developed and actually supported by github, because
> they use the same for github pages: Jekyll.
> 
> I cannot build the page itself with github pages, because they do not
> allow plugins. But one can build with travis and push to the
> github-pages branch, there's a lot of documentation about it.
> 
> Things like plugins, custom themes, templates and all this stuff are
> supported (more or less) out of the box.
> 
> I started to write this as a template for a wiki and I plan to fork it
> and create a wiki for nixos out of it.
> 
> Well, enough talking, here is the codebase:
> 
> https://github.com/matthiasbeyer/wiki.template/tree/transform-to-jekyll
> 
> (branch "transform-to-jekyll" because I actually started it with
> "nanoc", but jekyll is a much better option)
> 
> The idea of the template is that one can fork it, delete the content
> which is in the wiki right now (documentation on how to use it) and
> start putting content in it. Everything else has to work out of
> the box.
> 
> I used a jekyll-site template as you can see in the commit history.
> 
> I'm not finished yet, some things are missing by now:
> 
> - Non-Markdown pages (textile, for example) Don't know whether
>   this is possible or needed.
> 
> - Some plugins are included as source files, not as gems. Pull
>   requests to the actual plugins are pending and I hope I can
>   integrate them as gems asap.
> 
> - Latex-Formulas (not tested yet). Not required for a nixos wiki,
>   I think.
> 
> - Style is not finished yet. I'm not a designer, though I think it
>   looks rather pleasent for my limited designing skills.
> 
> I'm not sure whether I want to have a discussion about it yet, but as
> Eelco mentioned quitting the old wiki and creating a new one, I had to
> post this to the mailing list.
> 
> I hope we can have a calm and objective discussion about this now.
> I'm able to argue with people, but I don't like cursing, fighting or
> anything. Keep it objective, please! I'm rather confident I will do
> this, whether the nixos community agrees or not, but I would really
> love to have a collaborating atmosphere about this, so we can pull
> this together and cooperate.
> 
> -- 
> 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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Byobu session-selector broken, referencing /usr/bin/python

2015-09-15 Thread Eric Sagnes

> Fortunately, there is an easy way to do it by using the substituteInPlace[1] 
> helper
> during the fixup phase[2].

Update, actually the fixup phase is smart enough to patch the files
automatically if you pass python in the buildInputs.
Nix keeps impressing me!

On Tue, Sep 15, 2015 at 08:58:55AM +0900, Yasuaki Kudo wrote:
> corrected typos
> 
> > On Sep 15, 2015, at 08:56, Yasu <y...@yasuaki.com> wrote:
> > 
> > Hi,
> > 
> > I'm a newbie nixos user and trying byobu version 5.87.
> > 
> > I noticed that if I open a byobu session (using tmux as the backend, the 
> > default configuration) , abruptly disconnect the SSH session, log back in 
> > and execute byobu again, I get the following error.
> > 
> > /home/yasu/.nix-profile/bin/byobu-select-session: 
> > /nix/store/0xcd1mkrjzpc2d215q8bi20zral1c05n-byobu-5.87/lib/byobu/include/select-session.py:
> >  /usr/bin/python: bad interpreter: No such file or directory
> > 
> > What shoud I do to fix this?
> > 
> > Reards,
> > Yasu
> > Tokyo
> > 
> > 
> > ___
> > 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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Byobu session-selector broken, referencing /usr/bin/pythong

2015-09-14 Thread Eric Sagnes
Hi,

Static executables paths in scripts have to be fixed in nix.

Fortunately, there is an easy way to do it by using the substituteInPlace[1] 
helper
during the fixup phase[2].

issue: https://github.com/NixOS/nixpkgs/issues/9865
PR:https://github.com/NixOS/nixpkgs/pull/9866

Cheers,

[1] http://nixos.org/nixpkgs/manual/#ssec-stdenv-functions
[2] http://nixos.org/nixpkgs/manual/#ssec-fixup-phase

On Tue, Sep 15, 2015 at 08:56:28AM +0900, Yasu wrote:
> Hi,
> 
> I'm a newbie nixos user and trying byobu version 5.87.
> 
> I noticed that if I open a byobu session (using tmux as the backend, the 
> default configuration) , abruptly disconnect the SSH session, log back in and 
> type tmux again, I get the following error.
> 
> /home/yasu/.nix-profile/bin/byobu-select-session: 
> /nix/store/0xcd1mkrjzpc2d215q8bi20zral1c05n-byobu-5.87/lib/byobu/include/select-session.py:
>  /usr/bin/python: bad interpreter: No such file or directory
> 
> What shoud I do to fix this?
> 
> Reards,
> Yasu
> Tokyo
> 
> 
> 

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


-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] NixOS Wikipedia Page

2015-09-08 Thread Eric Sagnes
Hi,

I was surprised that there was no NixOS wikipedia page yet,
so I added a basic one: https://en.wikipedia.org/wiki/NixOS

For now the content is very basic and mostly copied from http://nixos.org/about 

It needs more information and references,
so if you have a few minuts to waste please help improving it!

Cheers,
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Custom packages and build-support functions

2015-09-02 Thread Eric Sagnes
It worked, thanks!

On Wed, Sep 02, 2015 at 06:50:16AM +, Kirill Elagin wrote:
> `buildPecl` is defined in `top-level/php-packages.nix`, which is imported
> in `top-level/all-packages.nix` as `phpPackages`. So try replacing
> `buildPecl` with `phpPackages.buildPecl`.
> 
> On Wed, Sep 2, 2015 at 8:08 AM Eric Sagnes <eric.sag...@gmail.com> wrote:
> 
> > Hi,
> >
> > While trying to add the image magick php extension to a container as a
> > custom package[1]
> > with the following separate nix expression:
> >
> > 
> > with import  {};
> > buildPecl {
> >   version = "3.1.2";
> >   name = "imagick-${version}";
> >   sha256 = "14vclf2pqcgf3w8nzqbdw0b9v30q898344c84jdbw2sa62n6k1sj";
> >   configureFlags = "--with-imagick=${pkgs.imagemagick}";
> > }
> > 
> >
> > I got the following error
> > error: undefined variable ‘buildPecl’ at /etc/nixos/imagick-pecl.nix:2:1
> >
> > How can build-support functions be imported and used in custom packages?
> >
> > Cheers,
> >
> > [1]
> > https://nixos.org/nixos/manual/sec-package-management.html#sec-custom-packages
> > ___
> > 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] Understanding runtime dependencies

2015-09-02 Thread Eric Sagnes
Hi,
When calling ImageMagick `Wand-config` program, I get the following error:


Wand-config --libs  

[~/R]
/run/current-system/sw/bin/Wand-config: line 53: pkg-config: command not found


>From what I understand (still new to Nix), runtime dependencies are declared 
>with `buildInputs`.
And the nix expression for imagemagick has `pkgconfig` in the `buildInputs`[1],
so I am a little puzzled on how my system can have ImageMagick without 
pkgconfig.

In case it matters, ImageMagick was installed globally with configuration.nix 
and nix-rebuild using the unstable channel.

Cheers,

[1] 
https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/graphics/ImageMagick/default.nix
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Understanding runtime dependencies

2015-09-02 Thread Eric Sagnes
Thanks for the detailed explanation!
I sent a pull-request that should fix it.

On Wed, Sep 02, 2015 at 09:48:01AM +, Kirill Elagin wrote:
> The problem here is that `Wand-config` is just a plain dumb shell script.
> And it does invoke `pkg-config`.
> As you might imagine, whenever you run a shell script and it, in turn, runs
> a command, what happens is exactly the same as when you run run that
> command yourself: it is being looked up in $PATH, etc.
> 
> You installed imagemagick, and its tools (including `Wand-config`) were
> added to your $PATH. It needed pkg-config during the build process, so
> pkg-config was in `buildInputs` and as a result, it _was_ added to $PATH
> during the build. But now it is not in your $PATH, that’s why `Wand-config`
> fails.
> 
> Long story short, that is an issue with imagemagick packaging. All the
> references to `pkg-config` should have been replaced with absolute paths
> somewhere during the build process. If you feel like fixing this, something
> like this
> <https://github.com/NixOS/nixpkgs/blob/d4681bf62672083f92545e02e00b8cf040247e8d/pkgs/build-support/dotnetbuildhelpers/default.nix#L15>
> should be done. In the `postPatch` phase, probably.
> 
> On Wed, Sep 2, 2015 at 12:26 PM Eric Sagnes <eric.sag...@gmail.com> wrote:
> 
> > Hi,
> > When calling ImageMagick `Wand-config` program, I get the following error:
> >
> > 
> > Wand-config --libs
> >
> >   [~/R]
> > /run/current-system/sw/bin/Wand-config: line 53: pkg-config: command not
> > found
> > 
> >
> > >From what I understand (still new to Nix), runtime dependencies are
> > declared with `buildInputs`.
> > And the nix expression for imagemagick has `pkgconfig` in the
> > `buildInputs`[1],
> > so I am a little puzzled on how my system can have ImageMagick without
> > pkgconfig.
> >
> > In case it matters, ImageMagick was installed globally with
> > configuration.nix and nix-rebuild using the unstable channel.
> >
> > Cheers,
> >
> > [1]
> > https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/graphics/ImageMagick/default.nix
> > ___
> > 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] Custom packages and build-support functions

2015-09-01 Thread Eric Sagnes
Hi,

While trying to add the image magick php extension to a container as a custom 
package[1]
with the following separate nix expression:


with import  {}; 
buildPecl {
  version = "3.1.2";
  name = "imagick-${version}";
  sha256 = "14vclf2pqcgf3w8nzqbdw0b9v30q898344c84jdbw2sa62n6k1sj";
  configureFlags = "--with-imagick=${pkgs.imagemagick}";
}


I got the following error
error: undefined variable ‘buildPecl’ at /etc/nixos/imagick-pecl.nix:2:1

How can build-support functions be imported and used in custom packages?

Cheers,

[1] 
https://nixos.org/nixos/manual/sec-package-management.html#sec-custom-packages
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Problems setting Japanese input method

2015-06-26 Thread Eric Sagnes
Hello,

I am having some hard time making Japanese input working in Nixos.

I tried:

1. fcitx + anthy (via fcitx-with-plugin package)

- Working in Xterm.
- Not working in applications like firefox, terminator, konsole, etc.

.xprofile:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx


2. uim + anthy

- Working in Xterm, but typed text before validation is garbled, eg: $$$* 
  candidate window and text after validation is displayed fine.
- Not working in applications like firefox, terminator, konsole, etc.

.xprofile:
export GTK_IM_MODULE=uim
export QT_IM_MODULE=uim
export XMODIFIERS=@im=uim


3. ibus + anthy

- for some reason, Anthy is not listed in ibus available input methods list.

.xprofile:
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus


I noticed that there is a mozc package in nixpkgs and by looking at its 
contents 
it seems that it could be used with ibus.
But like anthy, mozc is missing from ibus input method lists.

Any help would be greatly appreciated!
-- 
Eric Sagnes
サニエ エリック
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev