about summary refs log tree commit diff
path: root/pkgs/applications/graphics/ktikz
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@uclouvain.be>2019-06-05 16:13:34 +0200
committerGuillaume Maudoux <layus.on@gmail.com>2019-06-05 23:20:58 +0200
commit3e651ac90d7c8816521c74214816780e38e5455c (patch)
tree812b67b26b347f42069b37b1a6c830e587e90c26 /pkgs/applications/graphics/ktikz
parenta6549852e829b1497a76f81e09c57f14dae9fe70 (diff)
downloadnixlib-3e651ac90d7c8816521c74214816780e38e5455c.tar
nixlib-3e651ac90d7c8816521c74214816780e38e5455c.tar.gz
nixlib-3e651ac90d7c8816521c74214816780e38e5455c.tar.bz2
nixlib-3e651ac90d7c8816521c74214816780e38e5455c.tar.lz
nixlib-3e651ac90d7c8816521c74214816780e38e5455c.tar.xz
nixlib-3e651ac90d7c8816521c74214816780e38e5455c.tar.zst
nixlib-3e651ac90d7c8816521c74214816780e38e5455c.zip
qtikz: unstable-20161122 -> 0.12
Diffstat (limited to 'pkgs/applications/graphics/ktikz')
-rw-r--r--pkgs/applications/graphics/ktikz/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/applications/graphics/ktikz/default.nix b/pkgs/applications/graphics/ktikz/default.nix
index 25abcd9d41d7..5dc2dc47da4b 100644
--- a/pkgs/applications/graphics/ktikz/default.nix
+++ b/pkgs/applications/graphics/ktikz/default.nix
@@ -1,4 +1,5 @@
-{ stdenv, fetchFromGitHub, gettext, poppler, qt5 , pkgconfig }:
+{ stdenv, fetchFromGitHub, fetchurl
+, gettext, poppler, qt5 , pkgconfig }:
 
 # Warning: You will also need a working pdflatex installation containing
 # at least auctex and pgf.
@@ -8,16 +9,21 @@
 # See historical versions of this file for building ktikz with KDE4.
 
 stdenv.mkDerivation rec {
-  version = "unstable-20161122";
+  version = "0.12";
   name = "qtikz-${version}";
 
   src = fetchFromGitHub {
     owner = "fhackenberger";
     repo = "ktikz";
-    rev = "be66c8b1ff7e6b791b65af65e83c4926f307cf5a";
-    sha256 = "15jx53sjlnky4yg3ry1i1c29g28v1jbbvhbz66h7a49pfxa40fj3";
+    rev = version;
+    sha256 = "1s83x8r2yi64wc6ah2iz09dj3qahy0fkxx6cfgpkavjw9x0j0582";
   };
 
+  patches = [ (fetchurl {
+    url = "https://github.com/fhackenberger/ktikz/commit/972685a406517bb85eb561f2c8e26f029eacd7db.patch";
+    sha256 = "16jwsl18marfw5m888vwxdd1h7cqa37rkfqgirzdliacb1cr4f58";
+  })];
+
   meta = with stdenv.lib; {
     description = "Editor for the TikZ language";
     license = licenses.gpl2;
@@ -53,17 +59,15 @@ stdenv.mkDerivation rec {
   '';
 
   # 1. Configuration is done by overwriting qtikzconfig.pri
-  # 2. Recent Qt removed QString::fromAscii in favor of QString::fromLatin1
-  patchPhase = ''
+  postPatch = ''
     echo "$conf" | sed "s!@out@!$out!g" > qmake/qtikzconfig.pri
-    find -name "*.cpp" -exec sed -i s/fromAscii/fromLatin1/g "{}" \;
   '';
 
   configurePhase = ''
       qmake PREFIX="$out" ./qtikz.pro
   '';
 
-  nativeBuildInputs = [ pkgconfig ];
+  nativeBuildInputs = [ pkgconfig qt5.qttools ];
   buildInputs = [ gettext qt5.full poppler ];
 
   enableParallelBuilding = true;