lol

dirdiff: init at 2.1

+96
+59
pkgs/tools/text/dirdiff/default.nix
··· 1 + { copyDesktopItems, fetchurl, lib, makeDesktopItem, stdenv, tcl, tk }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "dirdiff"; 5 + version = "2.1"; 6 + 7 + src = fetchurl { 8 + url = "https://www.samba.org/ftp/paulus/${pname}-${version}.tar.gz"; 9 + sha256 = "0lljd8av68j70733yshzzhxjr1lm0vgmbqsm8f02g03qsma3cdyb"; 10 + }; 11 + 12 + nativeBuildInputs = [ copyDesktopItems ]; 13 + buildInputs = [ tcl tk ]; 14 + 15 + # Some light path patching. 16 + patches = [ ./dirdiff-2.1-vars.patch ]; 17 + postPatch = '' 18 + for file in dirdiff Makefile; do 19 + substituteInPlace "$file" \ 20 + --subst-var out \ 21 + --subst-var-by tcl ${tcl} \ 22 + --subst-var-by tk ${tk} 23 + done 24 + ''; 25 + 26 + # If we don't create the directories ourselves, then 'make install' creates 27 + # files named 'bin' and 'lib'. 28 + preInstall = '' 29 + mkdir -p $out/bin $out/lib 30 + ''; 31 + 32 + installFlags = [ 33 + "BINDIR=${placeholder "out"}/bin" 34 + "LIBDIR=${placeholder "out"}/lib" 35 + ]; 36 + 37 + desktopItems = [ 38 + (makeDesktopItem { 39 + name = "dirdiff"; 40 + exec = "dirdiff"; 41 + desktopName = "Dirdiff"; 42 + genericName = "Directory Diff Viewer"; 43 + comment = "Diff and merge directory trees"; 44 + categories = "Development;"; 45 + }) 46 + ]; 47 + 48 + meta = with lib; { 49 + description = "Graphical directory tree diff and merge tool"; 50 + longDescription = '' 51 + Dirdiff is a graphical tool for displaying the differences between 52 + directory trees and for merging changes from one tree into another. 53 + ''; 54 + homepage = "https://www.samba.org/ftp/paulus/"; 55 + license = licenses.gpl2Plus; 56 + maintainers = with maintainers; [ khumba ]; 57 + platforms = platforms.linux; 58 + }; 59 + }
+32
pkgs/tools/text/dirdiff/dirdiff-2.1-vars.patch
··· 1 + diff '--color=auto' -ru dirdiff-2.1/dirdiff dirdiff-2.1-patched/dirdiff 2 + --- dirdiff-2.1/dirdiff 2005-04-20 03:09:53.000000000 -0700 3 + +++ dirdiff-2.1-patched/dirdiff 2021-02-14 22:54:09.837692023 -0800 4 + @@ -1,6 +1,6 @@ 5 + #!/bin/sh 6 + # Tcl ignores the next line \ 7 + -exec wish "$0" -- "${1+$@}" 8 + +exec @tk@/bin/wish "$0" -- "${1+$@}" 9 + 10 + # Copyright (C) 1999-2004 Paul Mackerras. All rights reserved. 11 + # This program is free software; it may be used, copied, modified 12 + @@ -17,7 +17,7 @@ 13 + set TclExe [info nameofexecutable] 14 + set compound_ok [expr {$tcl_version >= 8.4}] 15 + 16 + -set nofilecmp [catch {load libfilecmp.so.0.0}] 17 + +set nofilecmp [catch {load @out@/lib/libfilecmp.so.0.0}] 18 + set rcsflag {} 19 + set diffbflag {} 20 + set diffBflag {} 21 + diff '--color=auto' -ru dirdiff-2.1/Makefile dirdiff-2.1-patched/Makefile 22 + --- dirdiff-2.1/Makefile 2005-04-19 03:22:01.000000000 -0700 23 + +++ dirdiff-2.1-patched/Makefile 2021-02-14 22:54:58.575400923 -0800 24 + @@ -7,7 +7,7 @@ 25 + INSTALL=install 26 + 27 + # You may need to change the -I arguments depending on your system 28 + -CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl 29 + +CFLAGS=-O3 -I@tcl@/include 30 + 31 + all: libfilecmp.so.0.0 32 +
+5
pkgs/top-level/all-packages.nix
··· 3604 3604 inherit (pythonPackages) mutagen python wrapPython; 3605 3605 }; 3606 3606 3607 + dirdiff = callPackage ../tools/text/dirdiff { 3608 + tcl = tcl-8_5; 3609 + tk = tk-8_5; 3610 + }; 3611 + 3607 3612 picotts = callPackage ../tools/audio/picotts { }; 3608 3613 3609 3614 wgetpaste = callPackage ../tools/text/wgetpaste { };