[Nix-dev] difficulties in making glade derivation
adam vogt
vogt.adam at gmail.com
Tue Nov 18 05:25:44 CET 2008
I'm trying to make a derivation for glade, but icons such as
'widget-gtk-frame' are missing.
Also, when I try to install this as not root, I then get a collision
(when having gnomeicontheme imported into the derivation)
$ nix-env -i glade
installing `glade-3.4.0'
building path(s)
`/nix/store/3q543myiqsy4jmvd10z7d6mssfrgzjbr-user-environment'
Collission between
`/nix/store/xx9za75y2nxrbngk2kjdm1zg3zr4jg9y-evince-2.23.4/share/icons/hicolor/icon-theme.cache'
and `/nix/store/4czgddr9gbwf68wd7kywiw1kccdbd3wr-glade-3.4.0/share/icons/hicolor/icon-theme.cache'.
Suggested solution: use `nix-env --set-flag priority NUMBER PKGNAME'
to change the priority of one of the conflicting packages.
builder for `/nix/store/5dwvvy1mrh024w0fqr2rkz3j2sg02la5-user-environment.drv'
failed with exit code 2
error: build of
`/nix/store/5dwvvy1mrh024w0fqr2rkz3j2sg02la5-user-environment.drv'
failed
Is the solution to change the priority of one package (does that mean
that I can't have both evince and glade at the same time?),
Secondly, some important icons are missing, such as
'widget-gtk-frame', so the buttons in the right panel are not helpful.
Is there a way to have the propagatedBuildInputs automatically be
added to the standard build inputs, or are there some other functions
I should look into?
Here is what I did:
# all-packages.nix
glade = import ../development/tools/misc/glade {
inherit fetchurl stdenv perl perlXMLParser libxml2 pkgconfig gettext;
inherit (gtkLibs) glib pango atk gtk;
inherit (gnome) gnomeicontheme;
};
# default.nix
{stdenv, gnomeicontheme, fetchurl, gtk, perl, perlXMLParser,
pkgconfig, glib, pango, atk, gettext, libxml2}:
stdenv.mkDerivation {
name = "glade-3.4.0";
src = fetchurl {
url = http://ftp.gnome.org/pub/GNOME/sources/glade3/3.4/glade3-3.4.0.tar.gz;
sha256 =
"3ec582cc181448d99ca31c5d931f307725b75bd2c06c180e60457e2f2730ad80";
};
propagatedBuildInputs = [gnomeicontheme perl perlXMLParser pkgconfig
gtk libxml2 gettext];
}
Thanks
More information about the nix-dev
mailing list