c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
24 lines
439 B
Nix
24 lines
439 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_OUT=\"${placeholder "out"}\""
|
|
];
|
|
postInstall = ''
|
|
mkdir -p "$dev"
|
|
ln -s "$out/bin" "$dev/bin"
|
|
'';
|
|
}
|