Unverified Commit d43a8d51 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

plasma5Packages.kinit: move env variables into env for structuredAttrs (#502549)

parents c52d0ef2 3393682f
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -42,13 +42,15 @@ mkDerivation {
    ./0003-kdeinit-extra-libs.patch
    ./0004-start_kdeinit-environ-hard-limit.patch
  ];
  CXXFLAGS = [
  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