Unverified Commit 546e20e4 authored by Stefan Frijters's avatar Stefan Frijters
Browse files

rawtherapee: move env vars into env for structuredAttrs

parent aa8bd060
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -116,12 +116,18 @@ stdenv.mkDerivation rec {
    "-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.hostPlatform.darwinMinVersion}"
  ];

  env = {
    CMAKE_CXX_FLAGS = toString [
      "-std=c++11"
      "-Wno-deprecated-declarations"
      "-Wno-unused-result"
    ];
  env.CXXFLAGS = "-include cstdint"; # needed at least with gcc13 on aarch64-linux
    # needed at least with gcc13 on aarch64-linux
    CXXFLAGS = toString [
      "-include"
      "cstdint"
    ];
  };

  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
    mkdir -p $out/Applications/RawTherapee.app $out/bin