2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-08-04 17:44:33 +02:00
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, python3
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, pkg-config
|
|
|
|
, desktop-file-utils
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview4
|
|
|
|
, gnome3
|
|
|
|
, gsettings-desktop-schemas
|
2015-01-25 08:59:05 +01:00
|
|
|
}:
|
2015-01-21 20:59:57 +01:00
|
|
|
|
2019-01-13 22:05:01 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-03-03 01:45:16 +01:00
|
|
|
pname = "meld";
|
2020-08-04 17:44:33 +02:00
|
|
|
version = "3.21.0";
|
|
|
|
|
|
|
|
format = "other";
|
2010-04-06 21:39:29 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-08-04 17:44:33 +02:00
|
|
|
sha256 = "toARTVq3kzJFSf1Y9OsgLY4oDAYzoLdl7ebfs0FgqBs=";
|
2010-04-06 21:39:29 +02:00
|
|
|
};
|
|
|
|
|
2019-01-13 22:05:01 +01:00
|
|
|
nativeBuildInputs = [
|
2020-08-04 17:44:33 +02:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
pkg-config
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
2020-10-02 17:16:23 +02:00
|
|
|
gtk3 # for gtk-update-icon-cache
|
2019-01-13 22:05:01 +01:00
|
|
|
];
|
2020-08-04 17:44:33 +02:00
|
|
|
|
2015-01-25 08:59:05 +01:00
|
|
|
buildInputs = [
|
2020-08-04 17:44:33 +02:00
|
|
|
gtk3
|
|
|
|
gtksourceview4
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gnome3.adwaita-icon-theme
|
2015-01-25 08:59:05 +01:00
|
|
|
];
|
2015-01-21 20:59:57 +01:00
|
|
|
|
2020-08-04 17:44:33 +02:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
pycairo
|
|
|
|
];
|
2017-12-28 12:29:12 +01:00
|
|
|
|
2021-02-25 11:49:47 +01: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 01:45:16 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
2021-03-21 00:57:24 +01:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-03 01:45:16 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2010-04-06 21:39:29 +02:00
|
|
|
description = "Visual diff and merge tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://meldmerge.org/";
|
2020-08-04 17:44:33 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2019-01-13 22:05:01 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2019-09-14 12:15:46 +02:00
|
|
|
maintainers = with maintainers; [ jtojnar mimame ];
|
2010-04-06 21:39:29 +02:00
|
|
|
};
|
|
|
|
}
|