From 2c3dec3e2d55e382ada8dd37ce0993f877836f46 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Mon, 9 Aug 2021 14:51:21 +0800 Subject: [PATCH] pantheon.elementary-photos: fix translations --- .../pantheon/apps/elementary-photos/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/pantheon/apps/elementary-photos/default.nix b/pkgs/desktops/pantheon/apps/elementary-photos/default.nix index bced420dbc0a..897b62d2a381 100644 --- a/pkgs/desktops/pantheon/apps/elementary-photos/default.nix +++ b/pkgs/desktops/pantheon/apps/elementary-photos/default.nix @@ -1,5 +1,6 @@ { lib, stdenv , fetchFromGitHub +, fetchpatch , nix-update-script , pantheon , meson @@ -28,7 +29,6 @@ , webkitgtk , libwebp , appstream -, libunity , wrapGAppsHook , elementary-icon-theme }: @@ -46,6 +46,15 @@ stdenv.mkDerivation rec { sha256 = "1dql14k43rv3in451amiwv4z71hz3ailx67hd8gw1ka3yw12128p"; }; + patches = [ + # Upstream code not respecting our localedir + # https://github.com/elementary/photos/pull/629 + (fetchpatch { + url = "https://github.com/elementary/photos/commit/e5230a4305381734e93f1e3d1177da21a8a4121b.patch"; + sha256 = "1igqq51sj1sx6rl8yrw037jsgnaxfwzfs0m6pqzb9q4jvfdimzfi"; + }) + ]; + passthru = { updateScript = nix-update-script { attrPath = "pantheon.${pname}"; @@ -84,7 +93,6 @@ stdenv.mkDerivation rec { libraw librest libsoup - libunity libwebp scour sqlite