flameshot: update cmake options
- Only enable Wayland options on Linux - Disable update checker - Add support to build with the monochrome icon
This commit is contained in:
parent
b95d89928d
commit
f97875026a
@ -9,6 +9,7 @@
|
||||
makeBinaryWrapper,
|
||||
nix-update-script,
|
||||
enableWlrSupport ? false,
|
||||
enableMonochromeIcon ? false,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@ -33,10 +34,15 @@ stdenv.mkDerivation {
|
||||
})
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "USE_WAYLAND_CLIPBOARD" true)
|
||||
(lib.cmakeBool "USE_WAYLAND_GRIM" enableWlrSupport)
|
||||
];
|
||||
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)
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
|
Loading…
Reference in New Issue
Block a user