[Nix-dev] Pls help with installation of gtk-qt-engine on NixOS

Christian Wagner liawagner at yahoo.com
Wed Jun 6 00:58:40 CEST 2007


I installed NixOS, after trying out Nix for a while on Debian Etch. I really
like the unique concept of Nix and NixOS! I was able to get KDE working and
still have a lot of questions after reading the brilliant thesis and the
documentation. I would be grateful, if somebody could help this NixOS
beginner.

I built a simple NixOS gkt-based package called Transmission-0.72, which
works  well. Noticing how ugly the Gtk2 apps look under KDE, I then tried to
make a package from gtk-qt-engine-0.7 for KDE, which compiled fine, but
failed in the install step with an error:

mkdir: cannot create directory
`/nix/store/yz24...-gtk+-2.8.20/share/gtk-qt-engine': Permission denied

On Debian, gtk-qt-engine installs in /usr/lib/gtk-2.0/2.4.0/engines, and
apparently the installer tries to do something similar here. As the nix-store
of gtk2 is read only, the gtk-qt-engine obviously has to go somewhere else.

How do you usually solve problems like this, where one application wants to
install parts of itself into the directory tree of another application? Do
any of the build-support scripts apply to this?


=== Below is the nix expression used to build the package ===

{stdenv, fetchurl, kdelibs, perl, expat, pkgconfig, cairo, libjpeg, glib,
gtk, atk, pango, libbonobo, libart_lgpl, libIDL, libX11, libXext, qt}:

stdenv.mkDerivation {
  name = "gtkqtengine-0.7";

  src = fetchurl {
    url = http://gtk-qt.ecs.soton.ac.uk/files/0.7/gtk-qt-engine-0.7.tar.bz2;
    md5 = "27ca211621f38c45b1c4c9e9ef1f84b0";
  };

  KDEDIR = kdelibs;

  configureFlags = "
    --without-arts";

  buildInputs = [kdelibs perl expat pkgconfig cairo libjpeg glib gtk atk
pango libbonobo libart_lgpl libIDL libX11 libXext qt];

  meta = {
    description = "theme engine using Qt for GTK+ 2.x from within KDE";
  };
}

===

Please point out all the glaring omissions in this nix-expression ;-)


Blessings,

Christian

 


       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433



More information about the nix-dev mailing list