2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qtbase
|
|
|
|
, qtquick1
|
|
|
|
, qmake
|
|
|
|
, qtmultimedia
|
|
|
|
, utmp
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "qmltermwidget";
|
|
|
|
version = "unstable-2022-01-09";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "qmltermwidget";
|
|
|
|
owner = "Swordfish90";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "63228027e1f97c24abb907550b22ee91836929c5";
|
|
|
|
hash = "sha256-aVaiRpkYvuyomdkQYAgjIfi6a3wG2a6hNH1CfkA2WKQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtquick1
|
|
|
|
qtmultimedia
|
|
|
|
] ++ lib.optional stdenv.isDarwin utmp;
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
patches = [
|
2023-08-04 22:07:22 +00:00
|
|
|
# Some files are copied twice to the output which makes the build fails
|
|
|
|
./do-not-copy-artifacts-twice.patch
|
2021-01-09 10:05:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace qmltermwidget.pro \
|
|
|
|
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
|
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
installFlags = [ "INSTALL_ROOT=${placeholder "out"}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A QML port of qtermwidget";
|
|
|
|
homepage = "https://github.com/Swordfish90/qmltermwidget";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
|
|
maintainers = with lib.maintainers; [ skeidel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|