1{ lib
2, mkDerivation
3, fetchFromGitHub
4, perl
5, qmake
6, qtbase
7, qtdeclarative
8}:
9
10mkDerivation rec {
11 pname = "qtfeedback";
12 version = "unstable-2018-09-03";
13
14 outputs = [ "out" "dev" ];
15
16 src = fetchFromGitHub {
17 owner = "qt";
18 repo = "qtfeedback";
19 rev = "a14bd0bb1373cde86e09e3619fb9dc70f34c71f2";
20 sha256 = "0kiiffvriagql1cark6g1qxy7l9c3q3s13cx3s2plbz19nlnikj7";
21 };
22
23 nativeBuildInputs = [
24 perl
25 qmake
26 ];
27
28 buildInputs = [
29 qtdeclarative
30 ];
31
32 qmakeFlags = [ "CONFIG+=git_build" ];
33
34 doCheck = true;
35
36 postFixup = ''
37 # Drop QMAKE_PRL_BUILD_DIR because it references the build dir
38 find "$out/lib" -type f -name '*.prl' \
39 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
40 '';
41
42 meta = with lib; {
43 description = "Qt Tactile Feedback";
44 homepage = "https://github.com/qt/qtfeedback";
45 license = with licenses; [ lgpl3Only /* or */ gpl2Plus ];
46 maintainers = with maintainers; [ dotlambda OPNA2608 ];
47 };
48}