qmltermwidget: add missing utmp lib on darwin

This commit is contained in:
George Whewell 2018-12-05 15:15:45 +00:00
parent afa2be4464
commit 5205aaa655
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia }:
{ stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp }:
stdenv.mkDerivation rec {
version = "0.1.0";
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "0ca500mzcqglkj0i6km0z512y3a025dbm24605xyv18l6y0l2ny3";
};
buildInputs = [ qtbase qtquick1 qtmultimedia ];
buildInputs = [ qtbase qtquick1 qtmultimedia ]
++ stdenv.lib.optional stdenv.isDarwin utmp;
nativeBuildInputs = [ qmake ];
patchPhase = ''
@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
description = "A QML port of qtermwidget";
homepage = https://github.com/Swordfish90/qmltermwidget;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
platforms = with stdenv.lib.platforms; linux ++ darwin;
maintainers = with stdenv.lib.maintainers; [ skeidel ];
};
}

View file

@ -11852,7 +11852,9 @@ with pkgs;
qca-qt5 = callPackage ../development/libraries/qca-qt5 { };
qmltermwidget = callPackage ../development/libraries/qmltermwidget { };
qmltermwidget = callPackage ../development/libraries/qmltermwidget {
inherit (darwin.apple_sdk.libs) utmp;
};
qmlbox2d = libsForQt59.callPackage ../development/libraries/qmlbox2d { };
qscintilla = callPackage ../development/libraries/qscintilla {