plasma5Packages.kinit: move env variables into env for structuredAttrs (#502549)
This commit is contained in:
@@ -42,13 +42,15 @@ mkDerivation {
|
||||
./0003-kdeinit-extra-libs.patch
|
||||
./0004-start_kdeinit-environ-hard-limit.patch
|
||||
];
|
||||
CXXFLAGS = [
|
||||
''-DNIXPKGS_KF5_KIOCORE=\"${getLib kio}/lib/libKF5KIOCore.so.5\"''
|
||||
''-DNIXPKGS_KF5_PARTS=\"${getLib kparts}/lib/libKF5Parts.so.5\"''
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
''-DNIXPKGS_KF5_PLASMA=\"${getLib plasma-framework}/lib/libKF5Plasma.so.5\"''
|
||||
];
|
||||
env.CXXFLAGS = toString (
|
||||
[
|
||||
''-DNIXPKGS_KF5_KIOCORE=\"${getLib kio}/lib/libKF5KIOCore.so.5\"''
|
||||
''-DNIXPKGS_KF5_PARTS=\"${getLib kparts}/lib/libKF5Parts.so.5\"''
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
''-DNIXPKGS_KF5_PLASMA=\"${getLib plasma-framework}/lib/libKF5Plasma.so.5\"''
|
||||
]
|
||||
);
|
||||
setupHook = writeScript "setup-hook.sh" ''
|
||||
kinitFixupOutputHook() {
|
||||
if [ $prefix != ''${!outputBin} ] && [ -d $prefix/lib ]; then
|
||||
|
||||
Reference in New Issue
Block a user