21 , enableOpencv ? stdenv.hostPlatform.isLinux
23 , enableWayland ? stdenv.hostPlatform.isLinux
28 , enableX11 ? stdenv.hostPlatform.isLinux
32 stdenv.mkDerivation rec {
36 src = fetchFromGitHub {
40 hash = "sha256-qo9Rwnx6Oh8DRcCBUMS3JVdNyx1iZSB2Z1qfptUoPFQ=";
48 ] ++ lib.optionals enableWayland [
68 ] ++ lib.optionals enableOpencv [
70 ] ++ lib.optionals enableWayland [
74 ] ++ lib.optionals enableX11 [
79 cmakeFlags = lib.optionals (!enableOpencv) [
81 ] ++ lib.optionals enableWayland [
83 ] ++ lib.optionals (!enableX11) [
87 # error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.14 or newer
88 preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0") ''
89 export MACOSX_DEPLOYMENT_TARGET=10.14
93 description = "Drop in replacement for ueberzug written in C++";
94 homepage = "https://github.com/jstkdng/ueberzugpp";
95 license = licenses.gpl3Plus;
96 maintainers = with maintainers; [ aleksana wegank ];
97 platforms = platforms.unix;