nixpkgs/pkgs/tools/text/kdiff3/default.nix

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

43 lines
1,000 B
Nix
Raw Normal View History

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
}:
2024-02-09 10:28:02 +01:00
stdenv.mkDerivation (finalAttrs: {
pname = "kdiff3";
2023-12-16 04:18:30 +01:00
version = "1.10.7";
2017-05-16 17:56:41 +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=";
};
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" ];
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";
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;
maintainers = with maintainers; [ peterhoeg ];
platforms = with platforms; linux ++ darwin;
2017-05-16 17:56:41 +02:00
};
2024-02-09 10:28:02 +01:00
})