mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
74 lines
1.5 KiB
Nix
74 lines
1.5 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, gettext
|
|
, itstool
|
|
, python3
|
|
, meson
|
|
, ninja
|
|
, wrapGAppsHook
|
|
, libxml2
|
|
, pkg-config
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, gtk3
|
|
, gtksourceview4
|
|
, gnome
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "meld";
|
|
version = "3.21.1";
|
|
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "cP6Y65Ms4h1nFw47D2pzF+gT6GLemJM+pROYLpoDMgI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
gettext
|
|
itstool
|
|
libxml2
|
|
pkg-config
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
wrapGAppsHook
|
|
gtk3 # for gtk-update-icon-cache
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
gtksourceview4
|
|
gsettings-desktop-schemas
|
|
gnome.adwaita-icon-theme
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pygobject3
|
|
pycairo
|
|
];
|
|
|
|
# gobject-introspection and some other similar setup hooks do not currently work with strictDeps.
|
|
# https://github.com/NixOS/nixpkgs/issues/56943
|
|
strictDeps = false;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none"; # should be odd-unstable but we are tracking unstable versions for now
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Visual diff and merge tool";
|
|
homepage = "http://meldmerge.org/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ jtojnar mimame ];
|
|
};
|
|
}
|