···1-{stdenv, fetchurl,
2-zlib, libpng, libjpeg, perl, expat, qt3,
3-libX11, libXext, libSM, libICE,
4-}:
5-6-stdenv.mkDerivation rec {
7- name = "taskjuggler-2.4.3";
8- src = fetchurl {
9- url = "http://www.taskjuggler.org/download/${name}.tar.bz2";
10- sha256 = "14gkxa2vwfih5z7fffbavps7m44z5bq950qndigw2icam5ks83jl";
11- };
12-13- buildInputs =
14- [zlib libpng libX11 libXext libSM libICE perl expat libjpeg]
15- ;
16-17- patches = [ ./timezone-glibc.patch ];
18-19- preConfigure = ''
20- for i in $(grep -R "/bin/bash" . | sed 's/:.*//'); do
21- substituteInPlace $i --replace /bin/bash $(type -Pp bash)
22- done
23- for i in $(grep -R "/usr/bin/perl" . | sed 's/:.*//'); do
24- substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
25- done
26-27- # Fix install
28- for i in docs/en/Makefile.in Examples/BigProject/Common/Makefile.in Examples/BigProject/Makefile.in Examples/BigProject/Project1/Makefile.in Examples/BigProject/Project2/Makefile.in Examples/FirstProject/Makefile.in Examples/ShiftSchedule/Makefile.in; do
29- # Do not use variable substitution because there is some text after the last '@'
30- substituteInPlace $i --replace 'docprefix = @PACKAGES_DIR@' 'docprefix = $(docdir)/'
31- done
32-33- # Comment because the ical export need the KDE support.
34- for i in Examples/FirstProject/AccountingSoftware.tjp; do
35- substituteInPlace $i --replace "icalreport" "# icalreport"
36- done
37-38- for i in TestSuite/testdir TestSuite/createrefs \
39- TestSuite/Scheduler/Correct/Expression.sh; do
40- substituteInPlace $i --replace '/bin/rm' 'rm'
41- done
42-43- # Some tests require writing at $HOME
44- HOME=$TMPDIR
45- '';
46-47- configureFlags = [
48- "--without-arts" "--disable-docs"
49- "--x-includes=${libX11.dev}/include"
50- "--x-libraries=${libX11.out}/lib"
51- "--with-qt-dir=${qt3}"
52- ];
53-54- preInstall = ''
55- mkdir -p $out/share/emacs/site-lisp/
56- cp Contrib/emacs/taskjug.el $out/share/emacs/site-lisp/
57- '';
58-59- # kde_locale is not defined when installing without kde.
60- installFlags = [ "kde_locale=\${out}/share/locale" ];
61-62- meta = {
63- homepage = "http://www.taskjuggler.org";
64- license = lib.licenses.gpl2;
65- description = "Project management tool";
66- longDescription = ''
67- TaskJuggler is a modern and powerful, Open Source project management
68- tool. Its new approach to project planing and tracking is more
69- flexible and superior to the commonly used Gantt chart editing
70- tools. It has already been successfully used in many projects and
71- scales easily to projects with hundreds of resources and thousands of
72- tasks.
73- '';
74- };
75-}
···1-From the discussion in http://groups.google.com/group/taskjuggler-users/browse_thread/thread/f65a3efd4dcae2fc/a44c711a9d28ebee?show_docid=a44c711a9d28ebee
2-3-From: Chris Schlaeger <cs@kde.org>
4-Date: Sat, 27 Feb 2010 06:33:35 +0000 (+0100)
5-Subject: Try to fix time zone check for glibc 2.11.
6-X-Git-Url: http://www.taskjuggler.org/cgi-bin/gitweb.cgi?p=taskjuggler.git;a=commitdiff_plain;h=2382ed54f90c3c899badb3f56aaa2b3b5dba361e;hp=c666c5068312fec7db75e17d1c567d94127d1dda
7-8-Try to fix time zone check for glibc 2.11.
9-10-Reported-by: Lee <pFQh8RQn4fqB@dyweni.com>
11----
12-13-diff --git a/taskjuggler/Utility.cpp b/taskjuggler/Utility.cpp
14-index 5e2bf21..9b7fce2 100644
15---- a/taskjuggler/Utility.cpp
16-+++ b/taskjuggler/Utility.cpp
17-@@ -206,16 +206,28 @@ setTimezone(const char* tZone)
18-19- /* To validate the tZone value we call tzset(). It will convert the zone
20- * into a three-letter acronym in case the tZone value is good. If not, it
21-- * will just copy the wrong value to tzname[0] (glibc < 2.5) or fall back
22-- * to UTC. */
23-+ * will
24-+ * - copy the wrong value to tzname[0] (glibc < 2.5)
25-+ * - or fall back to UTC (glibc >= 2.5 && < 2.11)
26-+ * - copy the part before the '/' to tzname[0] (glibc >= 2.11).
27-+ */
28- tzset();
29-+ char* region = new(char[strlen(tZone) + 1]);
30-+ region[0] = 0;
31-+ if (strchr(tZone, '/'))
32-+ {
33-+ strcpy(region, tZone);
34-+ *strchr(region, '/') = 0;
35-+ }
36- if (timezone2tz(tZone) == 0 &&
37-- (strcmp(tzname[0], tZone) == 0 ||
38-+ (strcmp(tzname[0], tZone) == 0 || strcmp(tzname[0], region) == 0 ||
39- (strcmp(tZone, "UTC") != 0 && strcmp(tzname[0], "UTC") == 0)))
40- {
41- UtilityError = QString(i18n("Illegal timezone '%1'")).arg(tZone);
42-+ delete region;
43- return false;
44- }
45-+ delete region;
46-47- if (!LtHashTab)
48- return true;
···1-source $stdenv/setup
2-3-4-preConfigure() {
5-6- # Patch some of the configure files a bit to get of global paths.
7- # (Buildings using stuff in those paths will fail anyway, but it
8- # will cause ./configure misdetections).
9- for i in config.tests/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do
10- echo "patching $i..."
11- substituteInPlace "$i" \
12- --replace " /lib" " /FOO" \
13- --replace "/usr" "/FOO"
14- done
15-}
16-17-18-# !!! TODO: -system-libmng
19-configureFlags="-prefix $out $configureFlags"
20-dontAddPrefix=1
21-22-configureScript=configureScript
23-configureScript() {
24- echo yes | ./configure $configureFlags
25- export LD_LIBRARY_PATH=$(pwd)/lib
26-}
27-28-29-postInstall() {
30- # Qt's `make install' is broken; it copies ./bin/qmake, which
31- # is a symlink to ./qmake/qmake. So we end up with a dangling
32- # symlink.
33- rm $out/bin/qmake
34- cp -p qmake/qmake $out/bin
35-}
36-37-38-genericBuild
···1-diff -ruN qt-x11-free-3.3.3/configure qt-x11-free-3.3.3.new/configure
2---- qt-x11-free-3.3.3/configure 2004-06-14 11:18:55.000000000 +0200
3-+++ qt-x11-free-3.3.3.new/configure 2005-11-12 19:39:43.000000000 +0100
4-@@ -16,9 +16,9 @@
5- relconf=`basename $0`
6- # the directory of this script is the "source tree"
7- relpath=`dirname $0`
8--relpath=`(cd $relpath; /bin/pwd)`
9-+relpath=`(cd $relpath; pwd)`
10- # the current directory is the "build tree" or "object tree"
11--outpath=`/bin/pwd`
12-+outpath=`pwd`
13-14- # later cache the command line in config.status
15- OPT_CMDLINE=`echo $@ | sed "s,-v ,,g; s,-v$,,g"`
···361362 linux-steam-integration = throw "linux-steam-integration has been removed, as the upstream project has been abandoned"; # added 2020-05-22
363 loadcaffe = throw "loadcaffe has been removed, as the upstream project has been abandoned"; # added 2020-03-28
0364 lttngTools = lttng-tools; # added 2014-07-31
365 lttngUst = lttng-ust; # added 2014-07-31
366 lua5_1_sockets = lua51Packages.luasocket; # added 2017-05-02
···573 retroshare06 = retroshare;
574 gtk-recordmydesktop = throw "gtk-recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # added 2019-12-10
575 qt-recordmydesktop = throw "qt-recordmydesktop has been removed from nixpkgs, as it's abandoned and uses deprecated libraries"; # added 2019-12-10
0576 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23
577 riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14
578 rkt = throw "rkt was archived by upstream"; # added 2020-05-16
···361362 linux-steam-integration = throw "linux-steam-integration has been removed, as the upstream project has been abandoned"; # added 2020-05-22
363 loadcaffe = throw "loadcaffe has been removed, as the upstream project has been abandoned"; # added 2020-03-28
364+ lprof = throw "lprof has been removed as it's unmaintained upstream and broken in nixpkgs since a while ago"; # added 2021-02-15
365 lttngTools = lttng-tools; # added 2014-07-31
366 lttngUst = lttng-ust; # added 2014-07-31
367 lua5_1_sockets = lua51Packages.luasocket; # added 2017-05-02
···574 retroshare06 = retroshare;
575 gtk-recordmydesktop = throw "gtk-recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # added 2019-12-10
576 qt-recordmydesktop = throw "qt-recordmydesktop has been removed from nixpkgs, as it's abandoned and uses deprecated libraries"; # added 2019-12-10
577+ qt-3 = throw "qt-3 has been removed from nixpkgs, as it's unmaintained and insecure"; # added 2021-02-15
578 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23
579 riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14
580 rkt = throw "rkt was archived by upstream"; # added 2020-05-16