[Nix-dev] Installation of polkit fails

Ilja Honkonen ilja.honkonen at helsinki.fi
Sun Mar 18 09:41:46 CET 2012


>> Nix installation of polkit fails for me. I installed nix from today's
>> svn with:
>> ilja [ ~ ]$ l /usr/share/gir-1.0/
> Look at polkit configure flags. You need to explicitly tell it not to use
> gir (gobject introspection). Add to configureFlags.

Why not use the corresponding directory in nix store instead? I could 
install polkit by replacing the files GLib-2.0.gir, GObject-2.0.gir and 
Gio-2.0.gir in /usr/share/gir-1.0 with those from 
/home/ilja/Tiedostot/Ohjelmat/nix/store/yjcvw1rzn5ladfj230jfly24fvj2ns2a-gobject-introspection-0.10.8/share/gir-1.0 
for the duration of the installation. After polkit was installed I put 
back the originals and could continue installing grip.

I tried to get nix to do the above for me but didn't succeed. Changing 
INTROSPECTION_GIRDIR in polkit default.nix from $(out)/share/gir-1.0 to 
/home/ilja/Tiedostot/Ohjelmat/nix/store/yjcvw1rzn5ladfj230jfly24fvj2ns2a-gobject-introspection-0.10.8/share/gir-1.0 
didn't seem to do anything. Maybe the problem is that pkg-config in nix 
gives the /usr directory instead of the nix store dir, e.g.
~/.nix-profile/bin/pkg-config --variable=girdir gobject-introspection-1.0

prints
/usr/share/gir-1.0

instead of
/home/ilja/Tiedostot/Ohjelmat/nix/store/yjcvw1rzn5ladfj230jfly24fvj2ns2a-gobject-introspection-0.10.8/share/gir-1.0

Ilja


More information about the nix-dev mailing list