1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, openssl
, zeromq
, cppzmq
, tbb_2021_11
, spdlog
, libsodium
, fmt
, vips
, nlohmann_json
, libsixel
, microsoft-gsl
, chafa
, cli11
, libexif
, range-v3
, enableOpencv ? stdenv.isLinux
, opencv
, enableWayland ? stdenv.isLinux
, extra-cmake-modules
, wayland
, wayland-protocols
, wayland-scanner
, enableX11 ? stdenv.isLinux
, xorg
}:
stdenv.mkDerivation rec {
pname = "ueberzugpp";
version = "2.9.6";
src = fetchFromGitHub {
owner = "jstkdng";
repo = "ueberzugpp";
rev = "v${version}";
hash = "sha256-qo9Rwnx6Oh8DRcCBUMS3JVdNyx1iZSB2Z1qfptUoPFQ=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
] ++ lib.optionals enableWayland [
wayland-scanner
];
buildInputs = [
openssl
zeromq
cppzmq
tbb_2021_11
spdlog
libsodium
fmt
vips
nlohmann_json
libsixel
microsoft-gsl
chafa
cli11
libexif
range-v3
] ++ lib.optionals enableOpencv [
opencv
] ++ lib.optionals enableWayland [
extra-cmake-modules
wayland
wayland-protocols
] ++ lib.optionals enableX11 [
xorg.libX11
xorg.xcbutilimage
];
cmakeFlags = lib.optionals (!enableOpencv) [
"-DENABLE_OPENCV=OFF"
] ++ lib.optionals enableWayland [
"-DENABLE_WAYLAND=ON"
] ++ lib.optionals (!enableX11) [
"-DENABLE_X11=OFF"
];
# error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.14 or newer
preBuild = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0") ''
export MACOSX_DEPLOYMENT_TARGET=10.14
'';
meta = with lib; {
description = "Drop in replacement for ueberzug written in C++";
homepage = "https://github.com/jstkdng/ueberzugpp";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ aleksana wegank ];
platforms = platforms.unix;
};
}
|