gnome-calculator: add 3.12.1 version and cleanup expr

This commit is contained in:
Luca Bruno 2014-05-18 23:29:03 +02:00
parent 73fe63f13e
commit d558e5c090

View File

@ -3,27 +3,27 @@
, itstool, gnome3, librsvg, gdk_pixbuf }:
stdenv.mkDerivation rec {
name = "gnome-calculator-3.10.2";
name = "gnome-calculator-3.12.1";
src = fetchurl {
url = "mirror://gnome/sources/gnome-calculator/3.10/${name}.tar.xz";
sha256 = "0gkddnk9x76895xrz0ps4yny36w62fhi459gwmxqqb9kx5934n1f";
url = "mirror://gnome/sources/gnome-calculator/3.12/${name}.tar.xz";
sha256 = "15a75bbe19f6d2280d864f0504f6fc5b1f148fea9738b5548b64b7b8c0c64740";
};
NIX_CFLAGS_COMPILE = "-I${gnome3.glib}/include/gio-unix-2.0";
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
propagatedBuildInputs = [ gdk_pixbuf gnome3.gnome_icon_theme librsvg
hicolor_icon_theme gnome3.gnome_icon_theme_symbolic ];
buildInputs = [ bash pkgconfig gtk3 glib intltool itstool
libxml2 gnome3.gtksourceview
gdk_pixbuf gnome3.gnome_icon_theme librsvg
hicolor_icon_theme gnome3.gnome_icon_theme_symbolic
gnome3.gsettings_desktop_schemas makeWrapper ];
preFixup = ''
wrapProgram "$out/bin/gnome-calculator" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
--prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
'';
meta = with stdenv.lib; {