Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2021-03-04 22:16:45 +01:00
325 changed files with 4167 additions and 1748 deletions
+59
View File
@@ -0,0 +1,59 @@
{ copyDesktopItems, fetchurl, lib, makeDesktopItem, stdenv, tcl, tk }:
stdenv.mkDerivation rec {
pname = "dirdiff";
version = "2.1";
src = fetchurl {
url = "https://www.samba.org/ftp/paulus/${pname}-${version}.tar.gz";
sha256 = "0lljd8av68j70733yshzzhxjr1lm0vgmbqsm8f02g03qsma3cdyb";
};
nativeBuildInputs = [ copyDesktopItems ];
buildInputs = [ tcl tk ];
# Some light path patching.
patches = [ ./dirdiff-2.1-vars.patch ];
postPatch = ''
for file in dirdiff Makefile; do
substituteInPlace "$file" \
--subst-var out \
--subst-var-by tcl ${tcl} \
--subst-var-by tk ${tk}
done
'';
# If we don't create the directories ourselves, then 'make install' creates
# files named 'bin' and 'lib'.
preInstall = ''
mkdir -p $out/bin $out/lib
'';
installFlags = [
"BINDIR=${placeholder "out"}/bin"
"LIBDIR=${placeholder "out"}/lib"
];
desktopItems = [
(makeDesktopItem {
name = "dirdiff";
exec = "dirdiff";
desktopName = "Dirdiff";
genericName = "Directory Diff Viewer";
comment = "Diff and merge directory trees";
categories = "Development;";
})
];
meta = with lib; {
description = "Graphical directory tree diff and merge tool";
longDescription = ''
Dirdiff is a graphical tool for displaying the differences between
directory trees and for merging changes from one tree into another.
'';
homepage = "https://www.samba.org/ftp/paulus/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ khumba ];
platforms = platforms.linux;
};
}
@@ -0,0 +1,32 @@
diff '--color=auto' -ru dirdiff-2.1/dirdiff dirdiff-2.1-patched/dirdiff
--- dirdiff-2.1/dirdiff 2005-04-20 03:09:53.000000000 -0700
+++ dirdiff-2.1-patched/dirdiff 2021-02-14 22:54:09.837692023 -0800
@@ -1,6 +1,6 @@
#!/bin/sh
# Tcl ignores the next line \
-exec wish "$0" -- "${1+$@}"
+exec @tk@/bin/wish "$0" -- "${1+$@}"
# Copyright (C) 1999-2004 Paul Mackerras. All rights reserved.
# This program is free software; it may be used, copied, modified
@@ -17,7 +17,7 @@
set TclExe [info nameofexecutable]
set compound_ok [expr {$tcl_version >= 8.4}]
-set nofilecmp [catch {load libfilecmp.so.0.0}]
+set nofilecmp [catch {load @out@/lib/libfilecmp.so.0.0}]
set rcsflag {}
set diffbflag {}
set diffBflag {}
diff '--color=auto' -ru dirdiff-2.1/Makefile dirdiff-2.1-patched/Makefile
--- dirdiff-2.1/Makefile 2005-04-19 03:22:01.000000000 -0700
+++ dirdiff-2.1-patched/Makefile 2021-02-14 22:54:58.575400923 -0800
@@ -7,7 +7,7 @@
INSTALL=install
# You may need to change the -I arguments depending on your system
-CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl
+CFLAGS=-O3 -I@tcl@/include
all: libfilecmp.so.0.0
+3 -2
View File
@@ -7,8 +7,9 @@ stdenv.mkDerivation rec {
sha256 = "1zn37r5xrvjgjbw2bdkc0r7s6q8b1krmcryzj0yf0dyxbx79rasi";
};
patchPhase = ''
postPatch = ''
sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
substituteInPlace Makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
meta = {
@@ -24,6 +25,6 @@ stdenv.mkDerivation rec {
license = "liberal"; # a non-copyleft license, see `Copyright' file
homepage = "http://www.mesa.nl/pub/mpage/";
platforms = lib.platforms.linux;
platforms = lib.platforms.all;
};
}
+5 -2
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl, libintl }:
stdenv.mkDerivation rec {
@@ -9,6 +9,9 @@ stdenv.mkDerivation rec {
url = "mirror://savannah/numdiff/numdiff-${version}.tar.gz";
sha256 = "1vzmjh8mhwwysn4x4m2vif7q2k8i19x8azq7pzmkwwj4g48lla47";
};
buildInputs = [ libintl ];
meta = with lib; {
description = ''
A little program that can be used to compare putatively similar files
@@ -18,6 +21,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.nongnu.org/numdiff/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [];
platforms = platforms.gnu ++ platforms.linux;
platforms = platforms.unix;
};
}
+1 -1
View File
@@ -41,6 +41,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.poedit.net/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ domenkozar ];
maintainers = with maintainers; [ ];
};
}
+1 -1
View File
@@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
similar ASCII characters, e.g. by stripping diacritics.
'';
maintainers = with lib.maintainers; [ goibhniu ];
platforms = lib.platforms.linux;
platforms = lib.platforms.all;
};
}
+4 -12
View File
@@ -1,22 +1,14 @@
{ lib, stdenv, fetchurl, fetchpatch, autoconf, automake, libiconv }:
{ lib, stdenv, fetchurl, autoconf, automake, libiconv }:
stdenv.mkDerivation rec {
pname = "unrtf";
version = "0.21.9";
version = "0.21.10";
src = fetchurl {
url = "https://www.gnu.org/software/unrtf/${pname}-${version}.tar.gz";
sha256 = "1pcdzf2h1prn393dkvg93v80vh38q0v817xnbwrlwxbdz4k7i8r2";
url = "https://ftp.gnu.org/gnu/${pname}/${pname}-${version}.tar.gz";
sha256 = "1bil6z4niydz9gqm2j861dkxmqnpc8m7hvidsjbzz7x63whj17xl";
};
patches = [
(fetchpatch {
name = "CVE-2016-10091-0001-convert.c-Use-safe-buffer-size-and-snprintf.patch";
url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=849705;filename=0001-convert.c-Use-safe-buffer-size-and-snprintf.patch;msg=20";
sha256 = "0s0fjvm3zdm9967sijlipfrwjs0h23n2n8fa6f40xxp8y5qq5a0b";
})
];
nativeBuildInputs = [ autoconf automake ];
buildInputs = [ libiconv ];
+1 -1
View File
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
description = "Merge YAML data files";
homepage = "https://github.com/abbradar/yaml-merge";
license = licenses.bsd2;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ];
};
}