[Nix-dev] nix-shell NetworkManager

Sergey Mironov grrwlf at gmail.com
Sun Feb 16 20:08:40 CET 2014


2014-02-16 22:44 GMT+04:00 Sergey Mironov <grrwlf at gmail.com>:
> Hi! I tried debug a nasty NetworkManager "(32) insufficient
> privileges" problem by building my own hacked version of the package.
> I called nix-shell and tried to build the sources. Both patchPhase and
> configurePhase run without problems, but buildPhase stoppes with an
> error saying
>
> /nix/store/k4bh0a5rffwa9xhxfzld1fvr0z628klz-dbus-glib-0.100.2/include/dbus-1.0/dbus/dbus-glib.h:28:30:
> fatal error: dbus/dbus-shared.h: No such file or directory
>
>
> That is strange because nix-shell set the NIX_CFLAGS_COMPILE variable
> correctly (it contains
> -I/nix/store/k4bh0a5rffwa9xhxfzld1fvr0z628klz-dbus-glib-0.100.2/include
> -I/nix/store/mv8dsy1q29ph6hdk6c96f252ww89z27m-dbus-libs-1.6.14/include
> among others)
>
> What may go wrong? Who are in charge of reading the NIX_CFLAGS_COMPILE?
>
> Regards,
> Sergey

I think I need to clarify my previous letter: In order to hack
NetworkManager, I start nix-shell and then call the pases directly,
like
$ patchPahse
$ configurePhase
$ buildPhase
...
/nix/store/k4bh0a5rffwa9xhxfzld1fvr0z628klz-dbus-glib-0.100.2/include/dbus-1.0/dbus/dbus-glib.h:28:30:
fatal error: dbus/dbus-shared.h: No such file or directory
$ echo $NIX_CFLAGS_COMPILE
-Ithis -Ithat -I/nix/store/k4bh0a5rffwa9xhxfzld1fvr0z628klz-dbus-glib-0.100.2/include
...

Regards,
Sergey


More information about the nix-dev mailing list