1 { lib, stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp, fetchpatch }:
4 version = "2018-11-24";
5 pname = "qmltermwidget-unstable";
7 src = fetchFromGitHub {
8 repo = "qmltermwidget";
10 rev = "48274c75660e28d44af7c195e79accdf1bd44963";
11 sha256 = "028nb1xp84jmakif5mmzx52q3rsjwckw27jdpahyaqw7j7i5znq6";
14 buildInputs = [ qtbase qtquick1 qtmultimedia ]
15 ++ lib.optional stdenv.isDarwin utmp;
16 nativeBuildInputs = [ qmake ];
20 name = "fix-missing-includes.patch";
21 url = "https://github.com/Swordfish90/qmltermwidget/pull/27/commits/485f8d6d841b607ba49e55a791f7f587e4e193bc.diff";
22 sha256 = "186s8pv3642vr4lxsds919h0y2vrkl61r7wqq9mc4a5zk5vprinj";
27 substituteInPlace qmltermwidget.pro \
28 --replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
31 installFlags = [ "INSTALL_ROOT=$(out)" ];
33 dontWrapQtApps = true;
36 description = "A QML port of qtermwidget";
37 homepage = "https://github.com/Swordfish90/qmltermwidget";
38 license = lib.licenses.gpl2;
39 platforms = with lib.platforms; linux ++ darwin;
40 maintainers = with lib.maintainers; [ skeidel ];