summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/ktactilefeedback/default.nix
blob: 2337b25b289bc33f1e5a5ece331a0fb32166c5da (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
58
59
60
61
62
63
64
65
{
  stdenv,
  lib,
  fetchFromGitLab,
  unstableGitUpdater,
  cmake,
  extra-cmake-modules,
  qtbase,
  qtdeclarative,
  qtmultimedia,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "ktactilefeedback";
  version = "0-unstable-2025-07-25";

  src = fetchFromGitLab {
    domain = "invent.kde.org";
    owner = "jbbgameich";
    repo = "ktactilefeedback";
    rev = "da7858aaa125588d4c309f273afefff93222e8f9";
    hash = "sha256-VEGZkA6bWuKJK6fk4u6RB5aMV8fbabD8ymm8HC/ddzg=";
  };

  outputs = [
    "out"
    "dev"
  ];

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    extra-cmake-modules
    qtbase
    qtmultimedia
  ];

  # Library
  dontWrapQtApps = true;

  cmakeFlags = [
    # Need to run these post-install, so QML import path exists
    (lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doInstallCheck)
  ];

  doInstallCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
  installCheckTarget = "test";
  preInstallCheck = ''
    export QML2_IMPORT_PATH=$out/${qtbase.qtQmlPrefix}:${lib.getBin qtdeclarative}/${qtbase.qtQmlPrefix}
  '';

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Tactile feedback library for Qt";
    homepage = "https://invent.kde.org/jbbgameich/ktactilefeedback";
    license = lib.licenses.lgpl3Only;
    maintainers = with lib.maintainers; [
      OPNA2608
    ];
    platforms = lib.platforms.linux;
  };
})