571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
78 lines
1.5 KiB
Nix
78 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, gettext
|
|
, itstool
|
|
, python3
|
|
, meson
|
|
, ninja
|
|
, wrapGAppsHook3
|
|
, libxml2
|
|
, pkg-config
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, gtk3
|
|
, gtksourceview4
|
|
, gnome
|
|
, adwaita-icon-theme
|
|
, gsettings-desktop-schemas
|
|
, desktopToDarwinBundle
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "meld";
|
|
version = "3.22.2";
|
|
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-RqCnE/vNGxU7N3oeB1fIziVcmCJGdljqz72JsekjFu8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
gettext
|
|
itstool
|
|
libxml2
|
|
pkg-config
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
gtk3 # for gtk-update-icon-cache
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
gtksourceview4
|
|
gsettings-desktop-schemas
|
|
adwaita-icon-theme
|
|
];
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
pygobject3
|
|
pycairo
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs meson_shebang_normalisation.py
|
|
'';
|
|
|
|
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 = "https://meld.app/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ jtojnar mimame ];
|
|
mainProgram = "meld";
|
|
};
|
|
}
|