Re: [Nix-dev] Too many open issues

2016-07-22 Thread Paul Dufresne
I did triaging in the past in a big distro.
What was frustrating was that I had the feeling that most bugs were
fixed by themselves (like if they were
rediscovered and fix upstream, or care about when developers
encounters them by themselves).

Thinking about it, I have come to the conclusion that it is probably
part of how teams organize like:
-documenters
-bug triagers
-developers
etc.

I think it would help to organize around subject:
-administrating tools
--cloud
--other
-games
-desktops
--kde
--gnome-shell
--mate
--cinnamon
--other
-printing
-audio/video
-office software
-science
--astronomy
--medical
--electronic
--other
-other

Developers are likely to prefer to organize around programming languages.
I guess it is ok to let them aggregate by programming language, but
that way, should be
kept less important than the previous category I think.

So it is important that bug triagers, documentation, etc. are on the
same teams as developers that have
access to infrastructure, and that suggestions can become real changes.

I believe that to achieve this, a forum is a much better place than a
mailing list.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Trying to compile and run mono gtk example but problem install gtksharp2

2015-03-26 Thread Paul Dufresne
Thanks a lot to took the time to investigate this.
I have tried your suggested default.nix and it works, and I am happy with it.
Would not have been able without your help!
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Trying to compile and run mono gtk example but problem install gtksharp2

2015-03-24 Thread Paul Dufresne
I am trying to compile the GTK example on:
http://www.mono-project.com/docs/getting-started/mono-basics/

Soon I discovered that I need to have gtk-sharp v.2 in my environment.

Searching gtk-sharp on https://nixos.org/nixos/packages.html
I concluded that I should have:

In my configuration.nix I have:
   environment.systemPackages = with pkgs; [
 gtksharp2
 wget
 firefoxWrapper
 ...

on nixos-rebuild switch I get undefined variable gtksharp2.

I found that
   environment.systemPackages = with pkgs; [
 gtk-sharp
 wget
 firefoxWrapper
do seems to work, but when
[nix-shell:~/mycs]$ mono helloGtk.exe

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly
'gtk-sharp, Version=2.12.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException:
Could not load file or assembly 'gtk-sharp, Version=2.12.0.0,
Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its
dependencies.
File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f'

[nix-shell:~/mycs]$

So I guess it is gtksharp v.1... not sure.

I am using:
[root@nixos:/home/paul/mycs]# nix-channel --list
nixos https://nixos.org/channels/nixos-unstable

and [root@nixos:/home/paul/mycs]# ls
/etc/nixos/nixpkgs/pkgs/development/libraries/gtk-sharp-2/
builder.sh  default.nix

[root@nixos:/home/paul/mycs]#

I did try to add gtk-sharp-2 inenvironment.systemPackages = with pkgs; [

but that too did not worked.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Xlib.h not found on go get -v github.com/veandco/go-sdl2/sdl

2015-03-19 Thread Paul Dufresne
2015-03-19 4:43 GMT-04:00 Domen Kožar do...@dev.si:
 Try to create a shell with Xlib headers:

 $ nix-shell -p xorg.libX11
Yes, this works, thanks a lot!

More precisely:
[guest@nixos:~]$ nix-shell -p xorg.libX11 SDL2 SDL2_gfx SDL2_image
SDL2_mixer SDL2_net
[nix-shell:~]$ go get -v github.com/veandco/go-sdl2/sdl{,_mixer,_image,_ttf}
github.com/veandco/go-sdl2/sdl_mixer
github.com/veandco/go-sdl2/sdl_image
github.com/veandco/go-sdl2/sdl_ttf
# github.com/veandco/go-sdl2/sdl_ttf
In file included from go/src/github.com/veandco/go-sdl2/sdl_ttf/sdl_ttf.go:7:0:
sdl_ttf_wrapper.h:4:22: fatal error: SDL_ttf.h: No such file or directory
  #include SDL_ttf.h
  ^
compilation terminated.

[nix-shell:~]$ go get -v github.com/veandco/go-sdl2/sdl{,_mixer,_image}
[guest@nixos:~]$ go install github.com/dufresnep/sdl2test

[guest@nixos:~]$ sdl2test

So, once the go get is done (without SDL2_ttf that we don't seems to
have but that is optional anyway), my test program did compiled and
run outside of nix-shell, which is really what I wanted.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Xlib.h not found on go get -v github.com/veandco/go-sdl2/sdl

2015-03-18 Thread Paul Dufresne
Well, I am mostly user-level in NixOS.
I modify my /etc/nixos/configuration.nix then #nixos-rebuild -switch

I am learning GO.
I have been able to get ncurses to work in go.

I was now trying with SDL:
[guest@nixos:~]$ go get -v github.com/veandco/go-sdl2/sdl{,_mixer,_image,_ttf}
github.com/veandco/go-sdl2/sdl
# github.com/veandco/go-sdl2/sdl
In file included from go/src/github.com/veandco/go-sdl2/sdl/syswm.go:9:0:
/nix/store/0lryp5ww28x21l74mmh42gnv6xdp45bw-SDL2-2.0.3/include/SDL2/SDL_syswm.h:70:22:
fatal error: X11/Xlib.h: No such file or directory
 #include X11/Xlib.h
  ^
compilation terminated.

[guest@nixos:~]$

Well, I can vaguely understand I should build this, with a nix
expression giving me go and Xlib as a dependency.
But, although I did read about nix expressions, I never really wrote any.

In my configuration.nix I have:
   environment.systemPackages = with pkgs; [
 wget
 firefoxWrapper
 wineUnstable
 winetricks
 go
 xlibs.libX11
 SDL2
 SDL2_gfx
 SDL2_image
 SDL2_mixer
 SDL2_net
 dmd
 mercurial
 git
 pkgconfig
 gcc
 ...

[guest@nixos:~]$ ls -l $GOPATH
total 12
drwxr-xr-x 2 guest users 4096 Mar 17 23:46 bin
drwxr-xr-x 3 guest users 4096 Mar 17 23:26 pkg
drwxr-xr-x 4 guest users 4096 Mar 17 23:19 src

[guest@nixos:~]$ echo $GOPATH
/home/guest/go

[guest@nixos:~]$

Don't know if there is some package I can add to my
environment.systemPackages... or if I need some sophisticated nix
expression.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] cannot build a new CD on 32 bits NixOS

2014-03-04 Thread Paul Dufresne
I am trying to follow instructions on:
https://nixos.org/wiki/Creating_a_Nix_OS_live_CD

So this is on a freshly cloned Nixpkgs from your project.

I have added pkgs.rpPPPoE and pkgs.wvdial to .../modules/profiles/base.nis.

Then:
$ nix-build -A iso_graphical $NIXREPOS/nixos/release.nix

Resulted in:
...

fetching path `/nix/store/8h8mravvbcm09rhybxq7hi4459lkssg8-stdenv'...

*** Downloading
‘http://cache.nixos.org/nar/1l7inppqw13wb5b7ir21v7ivnvlcdsb4mpikx8k36iyf0wzxysgr.nar.xz’
to ‘/nix/store/8h8mravvbcm09rhybxq7hi4459lkssg8-stdenv’...
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100  7980  100  79800 0  52166  0 --:--:-- --:--:-- --:--:-- 54657

fetching path `/nix/store/45zqdclcxh32srikgcmmrhzrxlxq60rm-stdenv'...

*** Downloading
‘http://cache.nixos.org/nar/0djmd44hznrahc5caz7rj07gqqh4jz8266vlyrdy68qpr0irjdgv.nar.xz’
to ‘/nix/store/45zqdclcxh32srikgcmmrhzrxlxq60rm-stdenv’...
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100  7980  100  79800 0  50531  0 --:--:-- --:--:-- --:--:-- 53557

building path(s) `/nix/store/2bx1mnzpvmkdip6vhbwk2w6h9ybff5v7-empty'
error: a `x86_64-linux' is required to build
`/nix/store/yw81fs9q3kgqlk1xx2d3mpmrv2xr1hkc-empty.drv', but I am a
`i686-linux'

I was not aware of this limitation.
Also more over frustrating that this problem occur while building an
*EMPTY* driver.

Is it a real limitation of NixOS... or a transient problem with empty.drv?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] cannot build a new CD on 32 bits NixOS

2014-03-04 Thread Paul Dufresne
Trying to investigate a bit more:

[demo@nixos:~/paulnixos/pkgs]$ cat
/nix/store/yw81fs9q3kgqlk1xx2d3mpmrv2xr1hkc-empty.drv
Derive([(out,/nix/store/2bx1mnzpvmkdip6vhbwk2w6h9ybff5v7-empty,,)],[(/nix/store/3prbp8w4aj0sb5fjbwykphqx79fiw2a8-bash-4.2-p45.drv,[out]),(/nix/store/rdc4zsbqnv79cmdd9pzk12j3cflmsbs8-stdenv.drv,[out])],[/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh],x86_64-linux,/nix/store/qw7vn33jcv1yfsfdw19ic5r2jlqk68w3-bash-4.2-p45/bin/bash,[-e,/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh],[(buildCommand,mkdir
-p 
$out),(buildInputs,),(builder,/nix/store/qw7vn33jcv1yfsfdw19ic5r2jlqk68w3-bash-4.2-p45/bin/bash),(name,empty),(nativeBuildInputs,),(out,/nix/store/2bx1mnzpvmkdip6vhbwk2w6h9ybff5v7-empty),(propagatedBuildInputs,),(propagatedNativeBuildInputs,),(stdenv,/nix/store/8h8mravvbcm09rhybxq7hi4459lkssg8-stdenv),(system,x86_64-linux),(userHook,)])
[demo@nixos:~/paulnixos/pkgs]$
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] RP-PPPoE should be fixed a bit then included on the CD(DVD)

2014-03-01 Thread Paul Dufresne
I use an old ADSL modem that does not connect itself to my ISP nor
does lend IP address.
So I need to use RP-PPPoE to connect and deconnect from Internet.

Using nixos-env -iA nixos.pkgs.rp-pppoe is not an option as it try to
connect to Internet to download the sources.

I have been able to test RP-PPPoE under VMWARE (3.10).

First, pppose-setup seems to auto-diagnose a good installation by
checking for /etc/ppp/pppoe.conf file.
And on NixOS it does not exist as it is in the store.
pppoe-status seems to do about the same.

pppoe-setup have made a pppoe.conf file, with user option in
lowercase, but it seems to need to be uppercase to work.

There does not seems to have NixOS options for RP-PPPOE but wvdial
options seems to be there.
Less than one year ago I was still using an external 56k modem... so
installing wvdial on the CD(DVD)
would seems like a good idea to me, even if I would not be surprised
some would disagree.

I think it is important to have the packages that allows to connect to
Internet on the CD/DVD.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] pppd is unable to open the /etc/ppp device

2011-12-03 Thread Paul Dufresne
I did not really test NixOS lately, but normaly /etc/ppp is rather
where to find configuration files. The device is usualy /dev/ttyS0
(for the first serial RS232-C connector) or /dev/ttyS1 (for the second
one). Or even /dev/ttyS2 or /dev/ttyS3 for the third and fourth in
some cases (mostly internal one).
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] pppd is unable to open the /dev/ppp device

2011-12-03 Thread Paul Dufresne
Well, serial lines are not PlugPlay like PCI bus.
So, AsFarAsIKnow, the Linux kernel does not generate any UDEV event
for serial lines. (Like it does for most other devices).

I guess, most people would use WinModems that necessitate to compile
their own modules, which in my experience, sometimes cares to create
/dev/ppp (by adding a UDEV rule I suppose). That said, I finaly get my
hand on some cheap external 56k modem which avoid me the painfull
process of module compilation... and I suspect it works less and less
because these modules would tend to not have any developers to update
them.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] pppd is unable to open the /dev/ppp device

2011-12-03 Thread Paul Dufresne
Well, I said the modem module was in my experience creating /dev/ppp
but now I remember it is rather /dev/modem.

Sure, /dev/ppp exist here, c type, major 108, minor 0. (using Arch
Linux right now)
But I don't know how it is created... oh wait:
Accordint to http://linmodems.technion.ac.il/archive-fourth/msg03622.html
it is created by the module ppp_generic.

I believe UDEV allows to give a specific name to the device, but that
the kernel would create it with default name, without any user mode
UDEV rules. Well, I have quite a fuzzy knowledge of UDEV, don't thrust
too much what I say.

So, if /dev/ppp is not there for you I would guess you don't have
ppp_generic listed in lsmod.

Now, I don't know how the module is suppose to be loaded under NixOS.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] pppd is unable to open the /dev/ppp device

2011-12-03 Thread Paul Dufresne
My wild guess would be that PPP is not activated in the Linux kernel
(networking devices section). Don't know it is by default... would not
be surprised if it would not be activated by default because most
people would use a router that would connect to the Internet, so that
most people would not have to use it.

2011/12/3, Paul Dufresne dufres...@gmail.com:
 Well, I said the modem module was in my experience creating /dev/ppp
 but now I remember it is rather /dev/modem.

 Sure, /dev/ppp exist here, c type, major 108, minor 0. (using Arch
 Linux right now)
 But I don't know how it is created... oh wait:
 Accordint to http://linmodems.technion.ac.il/archive-fourth/msg03622.html
 it is created by the module ppp_generic.

 I believe UDEV allows to give a specific name to the device, but that
 the kernel would create it with default name, without any user mode
 UDEV rules. Well, I have quite a fuzzy knowledge of UDEV, don't thrust
 too much what I say.

 So, if /dev/ppp is not there for you I would guess you don't have
 ppp_generic listed in lsmod.

 Now, I don't know how the module is suppose to be loaded under NixOS.

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


Re: [Nix-dev] Why Nix-0.16 so hungry on ressources (mem + cpu) ?

2011-10-27 Thread Paul Dufresne
Was using Nix-0.16.
With it, I was able to:
sudo nix-install-package --non-interactive --url
http://hydra.nixos.org/build/1463174/nix/pkg/nix-1.0pre29920-i686-linux.nixpkg
which is trunk nix. Or at least was not long ago.
It also shows the 56k connection was not so bad: did download
perl-5.10.1, gcc-4.5, etc.

Nix trunk seems to be quite similar to Nix-0.16 in term of memory
used, or the 'too much' nix-expressions evaluated.

CPU would be used at only about 6%, but 'waiting' about 90% according
to top. I guess this is caused by trashing due to the big 70% memory
used.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] libtool: link: unsupported hardcode properties while compiling nix-0.16

2011-10-25 Thread Paul Dufresne
I am trying to compile nixos-0.16 on Lubuntu 11.10.

First, ./configure seems to have not found that I needed g++, that I
then installed.

But now I get:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT sha1.lo
-MD -MP -MF .deps/sha1.Tpo -c sha1.c  -fPIC -DPIC -o .libs/sha1.o
mv -f .deps/sha1.Tpo .deps/sha1.Plo
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -g -O2 -MT sha256.lo -MD -MP -MF .deps/sha256.Tpo -c
-o sha256.lo sha256.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT
sha256.lo -MD -MP -MF .deps/sha256.Tpo -c sha256.c  -fPIC -DPIC -o
.libs/sha256.o
mv -f .deps/sha256.Tpo .deps/sha256.Plo
/bin/bash ../../libtool --tag=CXX   --mode=link g++ -Wall -I./..-o
libutil.la -rpath /usr/local/lib/nix util.lo hash.lo serialise.lo
archive.lo xml-writer.lo md5.lo sha1.lo sha256.lo
../boost/format/libformat.la
libtool: link: unsupported hardcode properties
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make[3]: *** [libutil.la] Erreur 1
make[3]: quittant le répertoire « /home/paul/nix-0.16/src/libutil »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/paul/nix-0.16/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/paul/nix-0.16 »
make: *** [all] Erreur 2
paul@Arcturus:~/nix-0.16$

Well, I expect you to tell me something that would avoid me to do what
libtool suggest me to do: See the libtool documentation (which I don't
even know what it does).
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] What if I am using a 56k modem?

2011-10-21 Thread Paul Dufresne
Hi... Looking a bit a the content of Minimal CD, I don't seems to find
pppd, chatscripts and/or wvdial.

Have they been 'packaged' for NixOS? (Sorry, 'packaged' is probably
not the word NixOS use).

Is it expected to be on minimal CD?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] kernel oops [aufs + squashfs] on nixos-graphical-0.1pre29826-i686-linux.iso

2011-10-14 Thread Paul Dufresne
paul@paul-P5GZ-MX:~$ dd if=/dev/cdrom | md5sum
164774618b05c3633124bf6ef793d5e8  -

What a nice trick to test if the image is burned ok!
It seems so, because I had:
paul@paul-P5GZ-MX:~$ md5sum
testNix/nixos-graphical-0.1pre29826-i686-linux.iso
164774618b05c3633124bf6ef793d5e8
testNix/nixos-graphical-0.1pre29826-i686-linux.iso

Now, I tested it under qemu. Painfully slow because my Celeron D 2.66
GHz does not have VT flag, so it goes without KVM.

But it did work! I was able to log in, and after that to start
xserver, and after waiting a long time, I had ever seen the first icon
of KDE loading: the disk.

But while booting under QEMU, some message told me it was running over
QEMU, and so was accessing data a bit differently. So somehow, that it
run under QEMU does not means it is fine.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev