5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, qtbase
|
|
, qtquick1
|
|
, qmake
|
|
, qtmultimedia
|
|
, utmp
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "qmltermwidget";
|
|
version = "unstable-2022-01-09";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "qmltermwidget";
|
|
owner = "Swordfish90";
|
|
rev = "63228027e1f97c24abb907550b22ee91836929c5";
|
|
hash = "sha256-aVaiRpkYvuyomdkQYAgjIfi6a3wG2a6hNH1CfkA2WKQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtquick1
|
|
qtmultimedia
|
|
] ++ lib.optional stdenv.isDarwin utmp;
|
|
|
|
patches = [
|
|
# Some files are copied twice to the output which makes the build fails
|
|
./do-not-copy-artifacts-twice.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace qmltermwidget.pro \
|
|
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
|
|
'';
|
|
|
|
installFlags = [ "INSTALL_ROOT=${placeholder "out"}" ];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
meta = {
|
|
description = "A QML port of qtermwidget";
|
|
homepage = "https://github.com/Swordfish90/qmltermwidget";
|
|
license = lib.licenses.gpl2;
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
maintainers = with lib.maintainers; [ skeidel ];
|
|
};
|
|
}
|