summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/qtfeedback/default.nix
blob: 8eb1e9bdd0eb775d223140336b48d64ebd4c93b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  lib,
  mkDerivation,
  fetchFromGitHub,
  perl,
  qmake,
  qtdeclarative,
}:

mkDerivation {
  pname = "qtfeedback";
  version = "unstable-2018-09-03";

  outputs = [
    "out"
    "dev"
  ];

  src = fetchFromGitHub {
    owner = "qt";
    repo = "qtfeedback";
    rev = "a14bd0bb1373cde86e09e3619fb9dc70f34c71f2";
    sha256 = "0kiiffvriagql1cark6g1qxy7l9c3q3s13cx3s2plbz19nlnikj7";
  };

  nativeBuildInputs = [
    perl
    qmake
  ];

  buildInputs = [
    qtdeclarative
  ];

  qmakeFlags = [ "CONFIG+=git_build" ];

  doCheck = true;

  postFixup = ''
    # Drop QMAKE_PRL_BUILD_DIR because it references the build dir
    find "$out/lib" -type f -name '*.prl' \
      -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
  '';

  meta = {
    description = "Qt Tactile Feedback";
    homepage = "https://github.com/qt/qtfeedback";
    license = with lib.licenses; [
      lgpl3Only # or
      gpl2Plus
    ];
    maintainers = with lib.maintainers; [
      dotlambda
      OPNA2608
    ];
  };
}