2024-02-29 20:09:43 +00:00
|
|
|
{ stdenv
|
2022-02-10 20:34:41 +00:00
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kdoctools
|
2024-02-29 20:09:43 +00:00
|
|
|
, wrapQtAppsHook
|
2022-02-10 20:34:41 +00:00
|
|
|
, boost
|
|
|
|
, kcrash
|
|
|
|
, kconfig
|
|
|
|
, kinit
|
|
|
|
, kparts
|
|
|
|
, kiconthemes
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "kdiff3";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.10.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-02-29 20:09:43 +00:00
|
|
|
url = "mirror://kde/stable/kdiff3/kdiff3-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-uj9Ky/SsdIrr78hfWcr2U9Rf6FmkjDSviZGCJKdnxeM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
buildInputs = [ boost kconfig kcrash kinit kparts kiconthemes ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
cmakeFlags = [ "-Wno-dev" ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
ln -s "$out/Applications/KDE/kdiff3.app/Contents/MacOS" "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Compares and merges 2 or 3 files or directories";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kdiff3";
|
2020-11-21 19:51:51 +00:00
|
|
|
homepage = "https://invent.kde.org/sdk/kdiff3";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
})
|