1{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp }:
2
3stdenv.mkDerivation {
4 version = "2018-11-24";
5 pname = "qmltermwidget-unstable";
6
7 src = fetchFromGitHub {
8 repo = "qmltermwidget";
9 owner = "Swordfish90";
10 rev = "48274c75660e28d44af7c195e79accdf1bd44963";
11 sha256 = "028nb1xp84jmakif5mmzx52q3rsjwckw27jdpahyaqw7j7i5znq6";
12 };
13
14 buildInputs = [ qtbase qtquick1 qtmultimedia ]
15 ++ stdenv.lib.optional stdenv.isDarwin utmp;
16 nativeBuildInputs = [ qmake ];
17
18 patchPhase = ''
19 substituteInPlace qmltermwidget.pro \
20 --replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
21 '';
22
23 installFlags = [ "INSTALL_ROOT=$(out)" ];
24
25 enableParallelBuilding = true;
26
27 meta = {
28 description = "A QML port of qtermwidget";
29 homepage = https://github.com/Swordfish90/qmltermwidget;
30 license = stdenv.lib.licenses.gpl2;
31 platforms = with stdenv.lib.platforms; linux ++ darwin;
32 maintainers = with stdenv.lib.maintainers; [ skeidel ];
33 };
34}