@@ -1,11 +1,12 @@
11{ lib, stdenv
22, fetchFromGitHub
3+, fetchpatch
34, nix-update-script
45, pantheon
56, meson
67, ninja
78, pkg-config
8−, vala_0_52
9+, vala
910, desktop-file-utils
1011, gtk3
1112, libaccounts-glib
@@ -45,11 +46,14 @@ stdenv.mkDerivation rec {
4546 sha256 = "1zq9zfsc987vvrzadw9xqi3rlbi4jv2s82axkgy7ijm3ibi58ddc";
4647 };
4748
48− passthru = {
49− updateScript = nix-update-script {
50− attrPath = "pantheon.${pname}";
51− };
52− };
49+ patches = [
50+ # Fix build with vala 0.54
51+ # https://github.com/elementary/photos/pull/650
52+ (fetchpatch {
53+ url = "https://github.com/elementary/photos/commit/bc7feca8caa4c8fc076a759a2d36e26e93c75596.patch";
54+ sha256 = "sha256-iOHYKV7rSAuMm4ZhoJWjlpu96zlxwTosQe+z/iEVFR8=";
55+ })
56+ ];
5357
5458 nativeBuildInputs = [
5559 appstream
@@ -58,9 +62,7 @@ stdenv.mkDerivation rec {
5862 ninja
5963 pkg-config
6064 python3
61− # Does not build with vala 0.54
62− # https://github.com/elementary/photos/issues/638
63− vala_0_52
65+ vala
6466 wrapGAppsHook
6567 ];
6668
@@ -100,6 +102,12 @@ stdenv.mkDerivation rec {
100102 patchShebangs meson/post_install.py
101103 '';
102104
105+ passthru = {
106+ updateScript = nix-update-script {
107+ attrPath = "pantheon.${pname}";
108+ };
109+ };
110+
103111 meta = with lib; {
104112 description = "Photo viewer and organizer designed for elementary OS";
105113 homepage = "https://github.com/elementary/photos";