Skip to content

Commit

Permalink
qmltermwidget: fix build with gcc10
Browse files Browse the repository at this point in the history
  • Loading branch information
B4dM4n committed Jan 7, 2021
1 parent e640da3 commit d8306e1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 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";
Expand All @@ -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/"
'';
Expand Down

0 comments on commit d8306e1

Please sign in to comment.