qmltermwidget: fix build with gcc10
This commit is contained in:
parent
e640da3120
commit
d8306e18ea
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp }:
|
{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
version = "2018-11-24";
|
version = "2018-11-24";
|
||||||
@ -15,7 +15,15 @@ stdenv.mkDerivation {
|
|||||||
++ stdenv.lib.optional stdenv.isDarwin utmp;
|
++ stdenv.lib.optional stdenv.isDarwin utmp;
|
||||||
nativeBuildInputs = [ qmake ];
|
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 \
|
substituteInPlace qmltermwidget.pro \
|
||||||
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
|
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user