summary refs log tree commit diff
path: root/pkgs/development/libraries/qmltermwidget/default.nix
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2021-01-07 16:03:21 +0100
committerFabian Möller <fabianm88@gmail.com>2021-01-07 18:20:34 +0100
commitd8306e18eaa89ed6caddfc311daeb904b7fe81eb (patch)
tree1d2503afe7f87ba476ec7ab9cb90984e38262c3b /pkgs/development/libraries/qmltermwidget/default.nix
parente640da312097d601043a46b6d4bf74988dc24ab6 (diff)
downloadnixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.tar
nixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.tar.gz
nixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.tar.bz2
nixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.tar.lz
nixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.tar.xz
nixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.tar.zst
nixpkgs-d8306e18eaa89ed6caddfc311daeb904b7fe81eb.zip
qmltermwidget: fix build with gcc10
Diffstat (limited to 'pkgs/development/libraries/qmltermwidget/default.nix')
-rw-r--r--pkgs/development/libraries/qmltermwidget/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/qmltermwidget/default.nix b/pkgs/development/libraries/qmltermwidget/default.nix
index ac258457311..53e83182c2b 100644
--- a/pkgs/development/libraries/qmltermwidget/default.nix
+++ b/pkgs/development/libraries/qmltermwidget/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp }:
+{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp, fetchpatch }:
 
 stdenv.mkDerivation {
   version = "2018-11-24";
@@ -15,7 +15,15 @@ stdenv.mkDerivation {
                 ++ stdenv.lib.optional stdenv.isDarwin utmp;
   nativeBuildInputs = [ qmake ];
 
-  patchPhase = ''
+  patches = [
+    (fetchpatch {
+      name = "fix-missing-includes.patch";
+      url = "https://github.com/Swordfish90/qmltermwidget/pull/27/commits/485f8d6d841b607ba49e55a791f7f587e4e193bc.diff";
+      sha256 = "186s8pv3642vr4lxsds919h0y2vrkl61r7wqq9mc4a5zk5vprinj";
+    })
+  ];
+
+  postPatch = ''
     substituteInPlace qmltermwidget.pro \
       --replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
   '';