depot/third_party/nixpkgs/pkgs/development/libraries/qt-5/modules/qtsystems.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

54 lines
781 B
Nix

{ qtModule
, stdenv
, lib
, bluez
, libevdev
, libX11
, pkg-config
, qtbase
, udev
, wrapQtAppsHook
}:
qtModule {
pname = "qtsystems";
outputs = [
"out"
"dev"
] ++ lib.optionals stdenv.hostPlatform.isLinux [
"bin"
];
qtInputs = [
qtbase
];
nativeBuildInputs = [
pkg-config
wrapQtAppsHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
bluez
libevdev
libX11
udev
];
qmakeFlags = [
"CONFIG+=git_build"
] ++ lib.optionals stdenv.hostPlatform.isLinux [
"CONFIG+=ofono"
"CONFIG+=udisks"
"CONFIG+=upower"
];
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
wrapQtApp $bin/bin/servicefw
'';
meta = {
maintainers = with lib.maintainers; [ OPNA2608 ];
};
}