nixpkgs/pkgs/applications/version-management/meld/default.nix

74 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, fetchurl
, gettext
, itstool
, python3
, meson
, ninja
, wrapGAppsHook
, libxml2
, pkg-config
, desktop-file-utils
, gobject-introspection
, gtk3
, gtksourceview4
, gnome
, gsettings-desktop-schemas
}:
2015-01-21 19:59:57 +00:00
python3.pkgs.buildPythonApplication rec {
2018-03-03 00:45:16 +00:00
pname = "meld";
version = "3.21.0";
format = "other";
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "toARTVq3kzJFSf1Y9OsgLY4oDAYzoLdl7ebfs0FgqBs=";
};
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
];
2015-01-21 19:59:57 +00: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 = {
updateScript = gnome.updateScript {
2018-03-03 00:45:16 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-03-03 00:45:16 +00:00
};
};
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 ];
};
}