Merge pull request #221491 from bobby285271/fix/shotwell

shotwell: 0.31.5 → 0.31.7 + Fix build with Vala 0.56.4
This commit is contained in:
Bobby Rong
2023-03-16 22:34:51 +08:00
committed by GitHub
@@ -1,5 +1,7 @@
{ lib, stdenv
{ lib
, stdenv
, fetchurl
, fetchpatch2
, meson
, ninja
, gtk3
@@ -31,6 +33,7 @@
, gobject-introspection
, itstool
, libsecret
, libportal-gtk3
, gsettings-desktop-schemas
, python3
}:
@@ -39,13 +42,22 @@
stdenv.mkDerivation rec {
pname = "shotwell";
version = "0.31.5";
version = "0.31.7";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-OwSPxs6ZsjLR4OqbjbB0CDyGyI07bWMTaiz4IXqkXBk=";
sha256 = "sha256-gPCj2HVS+L3vpeNig77XZ9AFdtqMyWpEo9NKQjXEmeA=";
};
patches = [
# Fix build with vala 0.56.4, can be removed on next update
# https://gitlab.gnome.org/GNOME/shotwell/-/merge_requests/69
(fetchpatch2 {
url = "https://gitlab.gnome.org/GNOME/shotwell/-/commit/cd82759231e5ece2fa0dea40397c9051d15fd5c2.patch";
hash = "sha256-Vy2kvUlmPdEEuPB1RTcI5pGYNveeiQ+lId0YVlWo4wU=";
})
];
nativeBuildInputs = [
meson
ninja
@@ -86,6 +98,7 @@ stdenv.mkDerivation rec {
gcr
gnome.adwaita-icon-theme
libsecret
libportal-gtk3
];
postPatch = ''