2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-08-04 16:44:33 +01:00
|
|
|
, fetchurl
|
2022-03-20 08:57:40 +00:00
|
|
|
, fetchpatch
|
2020-08-04 16:44:33 +01:00
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, python3
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, pkg-config
|
|
|
|
, desktop-file-utils
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview4
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-08-04 16:44:33 +01:00
|
|
|
, gsettings-desktop-schemas
|
2015-01-25 07:59:05 +00:00
|
|
|
}:
|
2015-01-21 19:59:57 +00:00
|
|
|
|
2019-01-13 21:05:01 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-03-03 00:45:16 +00:00
|
|
|
pname = "meld";
|
2022-01-21 11:10:30 +00:00
|
|
|
version = "3.21.1";
|
2020-08-04 16:44:33 +01:00
|
|
|
|
|
|
|
format = "other";
|
2010-04-06 20:39:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-01-21 11:10:30 +00:00
|
|
|
sha256 = "cP6Y65Ms4h1nFw47D2pzF+gT6GLemJM+pROYLpoDMgI=";
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
|
2022-03-20 08:57:40 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for meson-0.60:
|
|
|
|
# https://gitlab.gnome.org/GNOME/meld/-/merge_requests/78
|
|
|
|
(fetchpatch {
|
|
|
|
name = "meson-0.60.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/meld/-/commit/cc7746c141d976a4779cf868774fae1fe7627a6d.patch";
|
|
|
|
sha256 = "sha256-4uJZyF00Z6svzrOebByZV1hutCZRkIQYC4rUxQr5fdQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-01-13 21:05:01 +00:00
|
|
|
nativeBuildInputs = [
|
2020-08-04 16:44:33 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
pkg-config
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
2020-10-02 16:16:23 +01:00
|
|
|
gtk3 # for gtk-update-icon-cache
|
2019-01-13 21:05:01 +00:00
|
|
|
];
|
2020-08-04 16:44:33 +01:00
|
|
|
|
2015-01-25 07:59:05 +00:00
|
|
|
buildInputs = [
|
2020-08-04 16:44:33 +01:00
|
|
|
gtk3
|
|
|
|
gtksourceview4
|
|
|
|
gsettings-desktop-schemas
|
2021-05-07 22:18:14 +01:00
|
|
|
gnome.adwaita-icon-theme
|
2015-01-25 07:59:05 +00:00
|
|
|
];
|
2015-01-21 19:59:57 +00:00
|
|
|
|
2020-08-04 16:44:33 +01:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
pycairo
|
|
|
|
];
|
2017-12-28 11:29:12 +00:00
|
|
|
|
2021-02-25 10:49:47 +00:00
|
|
|
# gobject-introspection and some other similar setup hooks do not currently work with strictDeps.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
|
|
|
|
2018-03-03 00:45:16 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 00:45:16 +00:00
|
|
|
packageName = pname;
|
2021-10-14 23:27:00 +01:00
|
|
|
versionPolicy = "none"; # should be odd-unstable but we are tracking unstable versions for now
|
2018-03-03 00:45:16 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-04-06 20:39:29 +01:00
|
|
|
description = "Visual diff and merge tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://meldmerge.org/";
|
2020-08-04 16:44:33 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2019-01-13 21:05:01 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2019-09-14 11:15:46 +01:00
|
|
|
maintainers = with maintainers; [ jtojnar mimame ];
|
2010-04-06 20:39:29 +01:00
|
|
|
};
|
|
|
|
}
|