diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-06-04 22:24:40 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-06-14 15:48:15 +0800 |
commit | 74e7732dc31a0462282f8e2fd408ed31186dfad6 (patch) | |
tree | dcc08fb1d2715f842d20dd871f0f2f05ccd75c1f | |
parent | ad38f06a3eb437b1833e2e32bdc028a46c2d3af8 (diff) |
cinnamon.pix: 2.8.9 -> 3.0.1
https://github.com/linuxmint/pix/compare/2.8.9...3.0.1
-rw-r--r-- | pkgs/desktops/cinnamon/pix/default.nix | 103 |
1 files changed, 66 insertions, 37 deletions
diff --git a/pkgs/desktops/cinnamon/pix/default.nix b/pkgs/desktops/cinnamon/pix/default.nix index 0b02806e0579b..0471a177a56e8 100644 --- a/pkgs/desktops/cinnamon/pix/default.nix +++ b/pkgs/desktops/cinnamon/pix/default.nix @@ -1,70 +1,99 @@ { stdenv , lib +, fetchurl , fetchFromGitHub -, autoreconfHook -, cinnamon-desktop -, file -, gdk-pixbuf -, glib -, gobject-introspection -, gtk-doc -, gtk3 -, intltool -, itstool -, libtool -, libxml2 , pkg-config -, shared-mime-info -, wrapGAppsHook -, xapp -, yelp-tools +, meson +, ninja +, exiv2 +, libheif +, libjpeg +, libtiff +, gst_all_1 +, libraw +, libsoup , libsecret -, webkitgtk -, libwebp +, glib +, gtk3 +, gsettings-desktop-schemas , librsvg +, libwebp , json-glib -, gnome -, clutter +, webkitgtk +, lcms2 +, bison +, flex +, clutter-gtk +, wrapGAppsHook +, shared-mime-info +, python3 +, desktop-file-utils +, itstool +, xapp }: stdenv.mkDerivation rec { pname = "pix"; - version = "2.8.9"; + version = "3.0.1"; src = fetchFromGitHub { owner = "linuxmint"; repo = pname; rev = version; - sha256 = "sha256-7g0j1cWgNtWlqKWzBnngUA2WNr8Zh8YO/jJ8OdTII7Y="; + sha256 = "sha256-sKmdJOuT4Ioy5DmWN9ly+9bqSn4frcVPD5qMTKtxtiQ="; }; nativeBuildInputs = [ - wrapGAppsHook - autoreconfHook - cinnamon-desktop - gdk-pixbuf - gnome.gnome-common - gobject-introspection - gtk-doc - intltool + bison + desktop-file-utils + flex itstool - libtool + meson + ninja pkg-config - yelp-tools + python3 + wrapGAppsHook ]; buildInputs = [ + clutter-gtk + exiv2 glib + gsettings-desktop-schemas + gst_all_1.gst-plugins-base + (gst_all_1.gst-plugins-good.override { gtkSupport = true; }) + gst_all_1.gst-libav + gst_all_1.gst-plugins-bad + gst_all_1.gst-plugins-ugly gtk3 - xapp + json-glib + lcms2 + libheif + libjpeg + libraw + librsvg libsecret - webkitgtk + libsoup + libtiff libwebp - librsvg - json-glib - clutter + webkitgtk + xapp ]; + postPatch = '' + chmod +x pix/make-pix-h.py + + patchShebangs data/gschemas/make-enums.py \ + pix/make-pix-h.py \ + po/make-potfiles-in.py \ + postinstall.py \ + pix/make-authors-tab.py + ''; + + preFixup = '' + gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share") + ''; + meta = with lib; { description = "A generic image viewer from Linux Mint"; homepage = "https://github.com/linuxmint/pix"; |