2024-02-09 10:28:02 +01:00
|
|
|
{ stdenv
|
2022-01-28 05:11:00 +01:00
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kdoctools
|
2024-02-09 10:28:02 +01:00
|
|
|
, wrapQtAppsHook
|
2022-01-28 05:11:00 +01:00
|
|
|
, boost
|
|
|
|
, kcrash
|
|
|
|
, kconfig
|
|
|
|
, kinit
|
|
|
|
, kparts
|
|
|
|
, kiconthemes
|
2015-09-27 17:11:01 +02:00
|
|
|
}:
|
2010-03-15 15:26:58 +01:00
|
|
|
|
2024-02-09 10:28:02 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-05-16 16:08:33 +02:00
|
|
|
pname = "kdiff3";
|
2023-12-16 04:18:30 +01:00
|
|
|
version = "1.10.7";
|
2017-05-16 17:56:41 +02:00
|
|
|
|
2019-05-16 16:08:33 +02:00
|
|
|
src = fetchurl {
|
2024-02-09 10:28:02 +01:00
|
|
|
url = "mirror://kde/stable/kdiff3/kdiff3-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-uj9Ky/SsdIrr78hfWcr2U9Rf6FmkjDSviZGCJKdnxeM=";
|
2010-04-29 23:31:35 +02:00
|
|
|
};
|
2017-02-18 19:02:15 +01:00
|
|
|
|
2024-02-09 10:28:02 +01:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapQtAppsHook ];
|
2022-01-28 05:11:00 +01:00
|
|
|
|
2024-02-09 10:28:02 +01:00
|
|
|
buildInputs = [ boost kconfig kcrash kinit kparts kiconthemes ];
|
2017-05-16 17:56:41 +02:00
|
|
|
|
2022-01-28 05:11:00 +01:00
|
|
|
cmakeFlags = [ "-Wno-dev" ];
|
|
|
|
|
2024-04-02 01:55:04 +02:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
ln -s "$out/Applications/KDE/kdiff3.app/Contents/MacOS" "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
meta = with lib; {
|
2022-01-28 05:11:00 +01:00
|
|
|
description = "Compares and merges 2 or 3 files or directories";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "kdiff3";
|
2020-11-05 21:34:27 +01:00
|
|
|
homepage = "https://invent.kde.org/sdk/kdiff3";
|
2017-05-16 17:56:41 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2024-04-02 01:55:04 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2017-05-16 17:56:41 +02:00
|
|
|
};
|
2024-02-09 10:28:02 +01:00
|
|
|
})
|