mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #244503 from GaetanLepage/qmltermwidget
qmltermwidget: 2018-11-24 -> unstable-2022-01-09
This commit is contained in:
commit
b373c33227
@ -1,26 +1,35 @@
|
||||
{ lib, stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp, fetchpatch }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, qtbase
|
||||
, qtquick1
|
||||
, qmake
|
||||
, qtmultimedia
|
||||
, utmp
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
version = "2018-11-24";
|
||||
pname = "qmltermwidget-unstable";
|
||||
pname = "qmltermwidget";
|
||||
version = "unstable-2022-01-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "qmltermwidget";
|
||||
owner = "Swordfish90";
|
||||
rev = "48274c75660e28d44af7c195e79accdf1bd44963";
|
||||
sha256 = "028nb1xp84jmakif5mmzx52q3rsjwckw27jdpahyaqw7j7i5znq6";
|
||||
rev = "63228027e1f97c24abb907550b22ee91836929c5";
|
||||
hash = "sha256-aVaiRpkYvuyomdkQYAgjIfi6a3wG2a6hNH1CfkA2WKQ=";
|
||||
};
|
||||
|
||||
buildInputs = [ qtbase qtquick1 qtmultimedia ]
|
||||
++ lib.optional stdenv.isDarwin utmp;
|
||||
nativeBuildInputs = [ qmake ];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtquick1
|
||||
qtmultimedia
|
||||
] ++ lib.optional stdenv.isDarwin utmp;
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-missing-includes.patch";
|
||||
url = "https://github.com/Swordfish90/qmltermwidget/pull/27/commits/485f8d6d841b607ba49e55a791f7f587e4e193bc.diff";
|
||||
sha256 = "186s8pv3642vr4lxsds919h0y2vrkl61r7wqq9mc4a5zk5vprinj";
|
||||
})
|
||||
# Some files are copied twice to the output which makes the build fails
|
||||
./do-not-copy-artifacts-twice.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
@ -28,7 +37,7 @@ stdenv.mkDerivation {
|
||||
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
|
||||
'';
|
||||
|
||||
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
||||
installFlags = [ "INSTALL_ROOT=${placeholder "out"}" ];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
|
@ -0,0 +1,10 @@
|
||||
diff --git a/qmltermwidget.pro b/qmltermwidget.pro
|
||||
index c9594a9..aa1a804 100644
|
||||
--- a/qmltermwidget.pro
|
||||
+++ b/qmltermwidget.pro
|
||||
@@ -62,4 +62,4 @@ kblayouts2.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH/kb-layouts/historic
|
||||
scrollbar.files = $$PWD/src/QMLTermScrollbar.qml
|
||||
scrollbar.path = $$INSTALL_DIR/$$PLUGIN_IMPORT_PATH
|
||||
|
||||
-INSTALLS += target qmldir assets colorschemes colorschemes2 kblayouts kblayouts2 scrollbar
|
||||
+INSTALLS += target qmldir assets
|
Loading…
Reference in New Issue
Block a user