Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
stdenv,
lib,
fetchurl,
extra-cmake-modules,
boost,
kdePackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kdiff3";
version = "1.12.3";
src = fetchurl {
url = "mirror://kde/stable/kdiff3/kdiff3-${finalAttrs.version}.tar.xz";
hash = "sha256-4iZUxFeIF5mAgwVSnGtZbAydw4taLswULsdtRvaHP0w=";
};
nativeBuildInputs = [
extra-cmake-modules
kdePackages.kdoctools
kdePackages.wrapQtAppsHook
];
buildInputs = with kdePackages; [
qtbase
boost
kconfig
kcrash
kparts
kiconthemes
];
cmakeFlags = [ "-Wno-dev" ];
env.LANG = "C.UTF-8";
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
ln -s "$out/Applications/KDE/kdiff3.app/Contents/MacOS" "$out/bin"
'';
meta = with lib; {
description = "Compares and merges 2 or 3 files or directories";
mainProgram = "kdiff3";
homepage = "https://invent.kde.org/sdk/kdiff3";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ peterhoeg ];
inherit (kdePackages.qtbase.meta) platforms;
};
})