4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
44 lines
846 B
Nix
44 lines
846 B
Nix
{ qtModule
|
|
, stdenv
|
|
, lib
|
|
, qtbase
|
|
, qtdeclarative
|
|
, cups
|
|
, substituteAll
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qttools";
|
|
qtInputs = [ qtbase qtdeclarative ];
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ cups ];
|
|
patches = [
|
|
../patches/qttools-paths.patch
|
|
];
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-DNIX_OUTPUT_DEV=\"${placeholder "dev"}\""
|
|
];
|
|
|
|
devTools = [
|
|
"bin/qcollectiongenerator"
|
|
"bin/linguist"
|
|
"bin/assistant"
|
|
"bin/qdoc"
|
|
"bin/lconvert"
|
|
"bin/designer"
|
|
"bin/qtattributionsscanner"
|
|
"bin/lrelease"
|
|
"bin/lrelease-pro"
|
|
"bin/pixeltool"
|
|
"bin/lupdate"
|
|
"bin/lupdate-pro"
|
|
"bin/qtdiag"
|
|
"bin/qhelpgenerator"
|
|
"bin/qtplugininfo"
|
|
"bin/qthelpconverter"
|
|
"bin/lprodump"
|
|
"bin/qdistancefieldgenerator"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
"bin/macdeployqt"
|
|
];
|
|
|
|
}
|