2021-01-21 18:00:13 +01:00
|
|
|
{lib, stdenv, qtdeclarative, fetchFromGitHub, qmake }:
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2021-06-20 16:15:21 +02:00
|
|
|
pname = "qml-box2d";
|
|
|
|
version = "unstable-2018-04-06";
|
2018-03-19 16:03:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qml-box2d";
|
|
|
|
repo = "qml-box2d";
|
2018-12-20 16:08:53 +01:00
|
|
|
sha256 = "0gb8limy6ck23z3k0k2j7c4c4s95p40f6lbzk4szq7fjnnw22kb7";
|
|
|
|
rev = "b7212d5640701f93f0cd88fbd3a32c619030ae62";
|
2018-03-19 16:03:50 +01:00
|
|
|
};
|
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
2018-03-19 16:03:50 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtdeclarative ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace box2d.pro \
|
|
|
|
--replace '$$[QT_INSTALL_QML]' "/$qtQmlPrefix/"
|
|
|
|
qmakeFlags="$qmakeFlags PREFIXSHORTCUT=$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "INSTALL_ROOT=$(out)" ];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-03-19 16:03:50 +01:00
|
|
|
description = "A QML plugin for Box2D engine";
|
|
|
|
homepage = "https://github.com/qml-box2d/qml-box2d";
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.zlib;
|
|
|
|
};
|
|
|
|
}
|