1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/development/libraries/qmlbox2d/default.nix
Guillaume Bouchard 2a0f66b258 qmlbox2d: init at 2018-03-16
This is a dependency for `gcompris`
2018-03-30 17:49:25 +02:00

32 lines
839 B
Nix

{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;
};
}