Commit f9787502 authored by Sebastián Mancilla's avatar Sebastián Mancilla
Browse files

flameshot: update cmake options

- Only enable Wayland options on Linux
- Disable update checker
- Add support to build with the monochrome icon
parent b95d8992
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  makeBinaryWrapper,
  nix-update-script,
  enableWlrSupport ? false,
  enableMonochromeIcon ? false,
}:

stdenv.mkDerivation {
@@ -33,7 +34,12 @@ stdenv.mkDerivation {
    })
  ];

  cmakeFlags = [
  cmakeFlags =
    [
      (lib.cmakeBool "DISABLE_UPDATE_CHECKER" true)
      (lib.cmakeBool "USE_MONOCHROME_ICON" enableMonochromeIcon)
    ]
    ++ lib.optionals stdenv.isLinux [
      (lib.cmakeBool "USE_WAYLAND_CLIPBOARD" true)
      (lib.cmakeBool "USE_WAYLAND_GRIM" enableWlrSupport)
    ];