git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15647 from layus/auctex

ktikz: init at 0.10

commitab70ae2edfbd4252ebbe792814c158d97e28cc65 authorobadz <obadz-git@obadz.com> dateWed 8 Jun 2016, 17:17 (10 years ago) parent093c4216035e80
3 files changed+104−6
pkgs/applications/graphics/ktikz/default.nix+78 pkgs/tools/typesetting/tex/auctex/default.nix+19−6 pkgs/top-level/all-packages.nix+7
pkgs/applications/graphics/ktikz/default.nixnew file+78
@@ -0,0 +1,78 @@
1+{ withKDE ? true
2+, stdenv, fetchurl, gettext, poppler_qt4, qt4
3+# Qt only (no KDE):
4+, pkgconfig
5+# With KDE
6+, cmake, automoc4, kdelibs
7+}:
8+
9+# Warning: You will also need a working pdflatex installation containing (at
10+# least) auctex and pgf.
11+
12+assert withKDE -> kdelibs != null;
13+
14+let
15+ version = "0.10";
16+
17+ qtikz = {
18+ name = "qtikz-${version}";
19+
20+ conf = ''
21+ # installation prefix:
22+ #PREFIX = ""
23+
24+ # install desktop file here (*nix only):
25+ DESKTOPDIR = ''$''${PREFIX}/share/applications
26+
27+ # install mimetype here:
28+ MIMEDIR = ''$''${PREFIX}/share/mime/packages
29+
30+ CONFIG -= debug
31+ CONFIG += release
32+
33+ # qmake command:
34+ QMAKECOMMAND = qmake
35+ # lrelease command:
36+ LRELEASECOMMAND = lrelease
37+ # qcollectiongenerator command:
38+ #QCOLLECTIONGENERATORCOMMAND = qcollectiongenerator
39+
40+ # TikZ documentation default file path:
41+ TIKZ_DOCUMENTATION_DEFAULT = ''$''${PREFIX}/share/doc/texmf/pgf/pgfmanual.pdf.gz
42+ '';
43+
44+ patchPhase = ''
45+ echo "$conf" > conf.pri
46+ '';
47+
48+ configurePhase = ''
49+ qmake PREFIX="$out" ./qtikz.pro
50+ '';
51+
52+ buildInputs = [ gettext qt4 poppler_qt4 pkgconfig ];
53+ };
54+
55+ ktikz = {
56+ name = "ktikz-${version}";
57+ buildInputs = [ kdelibs cmake qt4 automoc4 gettext poppler_qt4 ];
58+ };
59+
60+ common = {
61+ inherit version;
62+ src = fetchurl {
63+ url = "http://www.hackenberger.at/ktikz/ktikz_${version}.tar.gz";
64+ md5 = "e8f0826cba2447250bcdcd389a71a2ac";
65+ };
66+
67+ enableParallelBuilding = true;
68+
69+ meta = with stdenv.lib; {
70+ description = "Editor for the TikZ language";
71+ license = licenses.gpl2;
72+ platforms = platforms.linux;
73+ maintainers = [ maintainers.layus ];
74+ };
75+ };
76+
77+in stdenv.mkDerivation (common // (if withKDE then ktikz else qtikz))
78+
pkgs/tools/typesetting/tex/auctex/default.nix+19−6
@@ -1,10 +1,17 @@
1−{ stdenv, fetchurl, emacs, texLive }:
1+{ stdenv, fetchurl, emacs, texlive, ghostscript }:
22
3−stdenv.mkDerivation ( rec {
4− pname = "auctex";
3+let auctex = stdenv.mkDerivation ( rec {
54 version = "11.89";
65 name = "${pname}-${version}";
76
7+ # Make this a valid tex(live-new) package;
8+ # the pkgs attribute is provided with a hack below.
9+ pname = "auctex";
10+ tlType = "run";
11+
12+
13+ outputs = [ "out" "tex" ];
14+
815 meta = {
916 description = "Extensible package for writing and formatting TeX files in GNU Emacs and XEmacs";
1017 homepage = http://www.gnu.org/software/auctex;
@@ -15,10 +22,16 @@ stdenv.mkDerivation ( rec {
1522 sha256 = "1cf9fkkmzjxa4jvk6c01zgxdikr4zzb5pcx8i4r0hwdk0xljkbwq";
1623 };
1724
18− buildInputs = [ emacs texLive ];
25+ buildInputs = [ emacs texlive.combined.scheme-basic ghostscript ];
26+
27+ preConfigure = ''
28+ mkdir -p "$tex"
29+ '';
1930
2031 configureFlags = [
2132 "--with-lispdir=\${out}/share/emacs/site-lisp"
22− "--disable-preview"
33+ "--with-texmf-dir=\${tex}"
2334 ];
24−})
35+});
36+
37+in auctex // { pkgs = [ auctex.tex ]; }
pkgs/top-level/all-packages.nix+7
@@ -3101,6 +3101,11 @@ in
31013101
31023102 qshowdiff = callPackage ../tools/text/qshowdiff { };
31033103
3104+ qtikz = callPackage ../applications/graphics/ktikz {
3105+ withKDE = false;
3106+ kdelibs = null;
3107+ };
3108+
31043109 quicktun = callPackage ../tools/networking/quicktun { };
31053110
31063111 quilt = callPackage ../development/tools/quilt { };
@@ -15659,6 +15664,8 @@ in
1565915664
1566015665 konversation = callPackage ../applications/networking/irc/konversation { };
1566115666
15667+ ktikz = callPackage ../applications/graphics/ktikz { };
15668+
1566215669 kvirc = callPackage ../applications/networking/irc/kvirc { };
1566315670
1566415671 krename = callPackage ../applications/misc/krename {