9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
30 lines
599 B
Nix
30 lines
599 B
Nix
{ qtModule
|
|
, stdenv
|
|
, lib
|
|
, qtbase
|
|
, qtdeclarative
|
|
, cups
|
|
, llvmPackages
|
|
# clang-based c++ parser for qdoc and lupdate
|
|
, withClang ? false
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qttools";
|
|
buildInputs = lib.optionals withClang [
|
|
llvmPackages.libclang
|
|
llvmPackages.llvm
|
|
];
|
|
qtInputs = [ qtbase qtdeclarative ];
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ cups ];
|
|
patches = [
|
|
../patches/qttools-paths.patch
|
|
];
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-DNIX_OUTPUT_OUT=\"${placeholder "out"}\""
|
|
];
|
|
postInstall = ''
|
|
mkdir -p "$dev"
|
|
ln -s "$out/bin" "$dev/bin"
|
|
'';
|
|
}
|