qmlbox2d: init at 2018-03-16

This is a dependency for `gcompris`
This commit is contained in:
Guillaume Bouchard 2018-03-19 16:03:50 +01:00
parent 3f8b7a41e6
commit 2a0f66b258
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{stdenv, qtdeclarative, fetchFromGitHub, qmake }:
stdenv.mkDerivation rec {
name = "qml-box2d-2018-03-16";
src = fetchFromGitHub {
owner = "qml-box2d";
repo = "qml-box2d";
sha256 = "1fbsvv28b4r0szcv8bk5gxpf8v534jp2axyfp438384sy757wsq2";
rev = "21e57f1";
};
enableParallelBuilding = true;
nativeBuildInputs = [ qmake ];
buildInputs = [ qtdeclarative ];
patchPhase = ''
substituteInPlace box2d.pro \
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
qmakeFlags="$qmakeFlags PREFIXSHORTCUT=$out"
'';
installFlags = [ "INSTALL_ROOT=$(out)" ];
meta = with stdenv.lib; {
description = "A QML plugin for Box2D engine";
homepage = "https://github.com/qml-box2d/qml-box2d";
maintainers = [ maintainers.guibou ];
platforms = platforms.linux;
license = licenses.zlib;
};
}

View file

@ -11227,6 +11227,7 @@ with pkgs;
qca-qt5 = callPackage ../development/libraries/qca-qt5 { };
qmltermwidget = callPackage ../development/libraries/qmltermwidget { };
qmlbox2d = libsForQt59.callPackage ../development/libraries/qmlbox2d { };
qscintilla = callPackage ../development/libraries/qscintilla {
withQt5 = true;