2022-06-16 17:23:12 +00:00
|
|
|
{ qtModule
|
|
|
|
, stdenv
|
|
|
|
, lib
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
2022-12-17 10:02:37 +00:00
|
|
|
, cups
|
2022-11-27 09:42:12 +00:00
|
|
|
, substituteAll
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
pname = "qttools";
|
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
2022-12-17 10:02:37 +00:00
|
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ cups ];
|
2022-11-27 09:42:12 +00:00
|
|
|
patches = [
|
|
|
|
../patches/qttools-paths.patch
|
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2023-04-29 16:46:19 +00:00
|
|
|
"-DNIX_OUTPUT_OUT=\"${placeholder "out"}\""
|
2022-11-27 09:42:12 +00:00
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$dev"
|
|
|
|
ln -s "$out/bin" "$dev/bin"
|
|
|
|
'';
|
2022-06-16 17:23:12 +00:00
|
|
|
}
|