2015-04-14 19:31:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qt4, libX11, coreutils, bluez, perl }:
|
2012-06-10 22:31:06 +01:00
|
|
|
# possible additional dependencies: pulseaudio udev networkmanager immerson qmf
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.2.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "qt-mobility";
|
2015-04-14 19:31:39 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qtproject";
|
|
|
|
repo = "qt-mobility";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14713pbscysd6d0b9rgm7gg145jzwvgdn22778pf2v13qzvfmy1i";
|
2012-06-10 22:31:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE="-fpermissive";
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure -prefix $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
# we need to prevent the 'make install' to want to write to ${qt4}!
|
2012-06-10 23:35:35 +01:00
|
|
|
# according to thiago#qt@freenode these are used for the QML engine
|
2012-06-10 22:31:06 +01:00
|
|
|
preBuild = ''
|
|
|
|
for i in connectivity contacts feedback gallery location multimedia organizer publishsubscribe sensors serviceframework systeminfo; do
|
|
|
|
substituteInPlace plugins/declarative/$i/Makefile --replace "${qt4}/lib/qt4/imports/" "$out/lib/qt4/imports/"
|
2015-04-14 19:31:39 +01:00
|
|
|
done
|
2012-06-10 22:31:06 +01:00
|
|
|
'';
|
|
|
|
|
2012-06-10 23:35:35 +01:00
|
|
|
# Features files (*.prf) are not installed on nixos
|
|
|
|
# https://bugreports.qt-project.org/browse/QTMOBILITY-1085
|
|
|
|
# - features/mobility.prf (/tmp/nix-build-9kh12nhf9cyplfwiws96gz414v6wgl67-qt-mobility-1.2.0.drv-0/qt-mobility-opensource-src-1.2.0)
|
|
|
|
|
2012-06-10 22:31:06 +01:00
|
|
|
patchPhase = ''
|
|
|
|
# required to make the configure script work
|
|
|
|
substituteInPlace configure --replace "/bin/pwd" "${coreutils}/bin/pwd"
|
|
|
|
|
|
|
|
# required to make /include generator work
|
|
|
|
substituteInPlace bin/syncheaders --replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
|
|
|
|
# required to make the -prefix variable parsing work
|
|
|
|
substituteInPlace bin/pathhelper --replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
'';
|
|
|
|
|
2012-06-10 23:35:35 +01:00
|
|
|
buildInputs = [ qt4 libX11 bluez perl ];
|
2012-06-10 22:31:06 +01:00
|
|
|
|
2018-10-27 14:06:47 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-06-10 22:31:06 +01:00
|
|
|
description = "Qt Mobility";
|
|
|
|
homepage = http://qt.nokia.com/products/qt-addons/mobility;
|
2018-10-27 14:06:47 +01:00
|
|
|
maintainers = [ maintainers.qknight ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ bsd3 fdl13 gpl3 lgpl21 ];
|
2012-06-10 22:31:06 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|