Unverified Commit 4c9717f6 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

flameshot: include wrapGAppsHook3 (#473788)

parents 5af82dea 3e3e0101
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
  nix-update-script,
  enableWlrSupport ? !stdenv.hostPlatform.isDarwin,
  enableMonochromeIcon ? false,
  wrapGAppsHook3,
}:

assert stdenv.hostPlatform.isDarwin -> (!enableWlrSupport);
@@ -54,6 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
    kdePackages.qttools
    kdePackages.wrapQtAppsHook
    makeBinaryWrapper
    wrapGAppsHook3
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    imagemagick
@@ -94,6 +96,7 @@ stdenv.mkDerivation (finalAttrs: {
    rm -r $out/share/metainfo
  '';

  dontWrapGApps = true;
  dontWrapQtApps = true;

  postFixup =
@@ -107,7 +110,8 @@ stdenv.mkDerivation (finalAttrs: {
    ''
      wrapProgram $out/${binary} \
        ${lib.optionalString enableWlrSupport "--prefix PATH : ${lib.makeBinPath [ grim ]}"} \
        ''${qtWrapperArgs[@]}
        ''${qtWrapperArgs[@]} \
        ''${gappsWrapperArgs[@]}
    '';

  passthru.updateScript = nix-update-script { };