python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / qmltermwidget / default.nix
blobbd6ebbd8e375efcfe8f52359487c9bea5956edbe
1 { lib, stdenv, fetchFromGitHub, qtbase, qtquick1, qmake, qtmultimedia, utmp, fetchpatch }:
3 stdenv.mkDerivation {
4   version = "2018-11-24";
5   pname = "qmltermwidget-unstable";
7   src = fetchFromGitHub {
8     repo = "qmltermwidget";
9     owner = "Swordfish90";
10     rev = "48274c75660e28d44af7c195e79accdf1bd44963";
11     sha256 = "028nb1xp84jmakif5mmzx52q3rsjwckw27jdpahyaqw7j7i5znq6";
12   };
14   buildInputs = [ qtbase qtquick1 qtmultimedia ]
15                 ++ lib.optional stdenv.isDarwin utmp;
16   nativeBuildInputs = [ qmake ];
18   patches = [
19     (fetchpatch {
20       name = "fix-missing-includes.patch";
21       url = "https://github.com/Swordfish90/qmltermwidget/pull/27/commits/485f8d6d841b607ba49e55a791f7f587e4e193bc.diff";
22       sha256 = "186s8pv3642vr4lxsds919h0y2vrkl61r7wqq9mc4a5zk5vprinj";
23     })
24   ];
26   postPatch = ''
27     substituteInPlace qmltermwidget.pro \
28       --replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
29   '';
31   installFlags = [ "INSTALL_ROOT=$(out)" ];
33   dontWrapQtApps = true;
35   meta = {
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 ];
41   };