11 stdenv.mkDerivation rec {
16 url = "mirror://samba/paulus/${pname}-${version}.tar.gz";
17 sha256 = "0lljd8av68j70733yshzzhxjr1lm0vgmbqsm8f02g03qsma3cdyb";
20 nativeBuildInputs = [ copyDesktopItems ];
26 # Some light path patching.
27 patches = [ ./dirdiff-2.1-vars.patch ];
29 for file in dirdiff Makefile; do
30 substituteInPlace "$file" \
32 --subst-var-by tcl ${tcl} \
33 --subst-var-by tk ${tk}
38 NIX_CFLAGS_COMPILE = "-DUSE_INTERP_RESULT";
39 NIX_LDFLAGS = "-ltcl";
42 # If we don't create the directories ourselves, then 'make install' creates
43 # files named 'bin' and 'lib'.
45 mkdir -p $out/bin $out/lib
49 "BINDIR=${placeholder "out"}/bin"
50 "LIBDIR=${placeholder "out"}/lib"
57 desktopName = "Dirdiff";
58 genericName = "Directory Diff Viewer";
59 comment = "Diff and merge directory trees";
60 categories = [ "Development" ];
65 description = "Graphical directory tree diff and merge tool";
66 mainProgram = "dirdiff";
68 Dirdiff is a graphical tool for displaying the differences between
69 directory trees and for merging changes from one tree into another.
71 homepage = "https://www.samba.org/ftp/paulus/";
72 license = licenses.gpl2Plus;
73 platforms = platforms.unix;