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