nixpkgs-suyu/pkgs/applications/graphics/gthumb/default.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

2016-08-19 13:32:27 +02:00
{ stdenv, fetchurl, gnome3, itstool, libxml2, pkgconfig, intltool,
exiv2, libjpeg, libtiff, gstreamer, libraw, libsoup, libsecret,
libchamplain, librsvg, libwebp, json-glib, webkit, lcms2, bison,
flex, hicolor-icon-theme, wrapGAppsHook, shared-mime-info }:
2016-08-19 13:32:27 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "gthumb";
2018-01-25 14:51:11 +01:00
version = "${major}.0";
major = "3.6";
2016-08-19 13:32:27 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${major}/${name}.tar.xz";
2018-01-25 14:51:11 +01:00
sha256 = "1zc7myvnzgq7dawjg03rqvwfad7p938m20f25sfhv65jsfq8n928";
2016-08-19 13:32:27 +02:00
};
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
buildInputs = with gnome3;
[ itstool libxml2 intltool glib gtk gsettings-desktop-schemas dconf
2016-08-19 13:32:27 +02:00
exiv2 libjpeg libtiff gstreamer libraw libsoup libsecret libchamplain
librsvg libwebp json-glib webkit lcms2 bison flex hicolor-icon-theme defaultIconTheme ];
2016-08-19 13:32:27 +02:00
2016-10-11 11:55:42 +02:00
enableParallelBuilding = true;
2018-02-24 10:45:24 +01:00
preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
2018-02-24 10:45:24 +01:00
'';
2016-08-19 13:32:27 +02:00
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/gthumb;
description = "Image browser and viewer for GNOME";
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = [ maintainers.mimadrid ];
};
}