From 4229053cb0a8d63dd03c4bf2853b519532663f08 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Thu, 24 Apr 2014 20:07:01 +0200 Subject: [PATCH] gnome-photos: new package Photos is an application to access, organize and share your photos with GNOME 3 https://wiki.gnome.org/Apps/Photos --- .../services/x11/desktop-managers/gnome3.nix | 1 + .../gnome-3/apps/gnome-photos/default.nix | 44 +++++++++++++++++++ pkgs/desktops/gnome-3/default.nix | 2 + 3 files changed, 47 insertions(+) create mode 100644 pkgs/desktops/gnome-3/apps/gnome-photos/default.nix diff --git a/nixos/modules/services/x11/desktop-managers/gnome3.nix b/nixos/modules/services/x11/desktop-managers/gnome3.nix index 1a8af58ee722..f14bce04caaf 100644 --- a/nixos/modules/services/x11/desktop-managers/gnome3.nix +++ b/nixos/modules/services/x11/desktop-managers/gnome3.nix @@ -134,6 +134,7 @@ in { gnome3.gedit gnome3.gnome-music gnome3.gnome-tweak-tool + gnome3.gnome-photos ] config.environment.gnome3.excludePackages); # Needed for themes and backgrounds diff --git a/pkgs/desktops/gnome-3/apps/gnome-photos/default.nix b/pkgs/desktops/gnome-3/apps/gnome-photos/default.nix new file mode 100644 index 000000000000..68d4e3690f9a --- /dev/null +++ b/pkgs/desktops/gnome-3/apps/gnome-photos/default.nix @@ -0,0 +1,44 @@ +{ stdenv, intltool, fetchurl, exempi, libxml2 +, pkgconfig, gtk3, glib, hicolor_icon_theme +, makeWrapper, itstool, gegl, babl, lcms2 +, desktop_file_utils, gmp +, gnome3, librsvg, gdk_pixbuf, libexif }: + +stdenv.mkDerivation rec { + name = "gnome-photos-3.10.2"; + + src = fetchurl { + url = "mirror://gnome/sources/gnome-photos/3.10/${name}.tar.xz"; + sha256 = "820503c26a0f829682dd46653e8f0850ac687aba42728ac74350ba8406e80975"; + }; + + doCheck = true; + + propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ]; + + NIX_CFLAGS_COMPILE = "-I${gnome3.glib}/include/gio-unix-2.0"; + + buildInputs = [ pkgconfig gtk3 glib intltool itstool gegl babl + gnome3.gsettings_desktop_schemas makeWrapper gmp + gdk_pixbuf gnome3.gnome_icon_theme librsvg exempi + gnome3.gfbgraph gnome3.grilo-plugins gnome3.grilo + gnome3.gnome_online_accounts gnome3.gnome_desktop + lcms2 libexif gnome3.tracker libxml2 desktop_file_utils + hicolor_icon_theme gnome3.gnome_icon_theme_symbolic ]; + + preFixup = '' + wrapProgram "$out/bin/gnome-photos" \ + --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ + --prefix GRL_PLUGIN_PATH : "${gnome3.grilo-plugins}/lib/grilo-0.2" \ + --prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" + rm $out/share/icons/hicolor/icon-theme.cache + ''; + + meta = with stdenv.lib; { + homepage = https://wiki.gnome.org/Apps/Photos; + description = "Photos is an application to access, organize and share your photos with GNOME 3"; + maintainers = with maintainers; [ lethalman ]; + license = licenses.gpl2; + platforms = platforms.linux; + }; +} diff --git a/pkgs/desktops/gnome-3/default.nix b/pkgs/desktops/gnome-3/default.nix index 164fb9b27f1f..0aaf9d9dd11f 100644 --- a/pkgs/desktops/gnome-3/default.nix +++ b/pkgs/desktops/gnome-3/default.nix @@ -165,6 +165,8 @@ rec { gnome-music = callPackage ./apps/gnome-music { }; + gnome-photos = callPackage ./apps/gnome-photos { }; + # scrollkeeper replacement rarian = callPackage ./desktop/rarian { };