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
|
{
stdenv,
lib,
fetchFromGitea,
pkg-config,
meson,
ninja,
pixman,
tllist,
wayland,
wayland-scanner,
wayland-protocols,
nanosvg,
libjxl,
enablePNG ? true,
enableJPEG ? true,
enableWebp ? true,
# Optional dependencies
libpng,
libjpeg,
libwebp,
}:
stdenv.mkDerivation rec {
pname = "wbg";
version = "1.2.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "dnkl";
repo = "wbg";
rev = "master";
hash = "sha256-ikwOVtR5cXZGd2GE/O4ej6cOQZomyEKkPcKe08EtPw0=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
wayland-scanner
];
buildInputs =
[
pixman
tllist
wayland
wayland-protocols
nanosvg
libjxl
]
++ lib.optional enablePNG libpng
++ lib.optional enableJPEG libjpeg
++ lib.optional enableWebp libwebp;
mesonBuildType = "release";
mesonFlags = [
(lib.mesonEnable "system-nanosvg" true)
(lib.mesonEnable "png" enablePNG)
(lib.mesonEnable "jpeg" enableJPEG)
(lib.mesonEnable "webp" enableWebp)
];
meta = with lib; {
description = "Wallpaper application for Wayland compositors";
homepage = "https://codeberg.org/dnkl/wbg";
changelog = "https://codeberg.org/dnkl/wbg/releases/tag/${version}";
license = licenses.isc;
maintainers = with maintainers; [ ];
platforms = with platforms; linux;
mainProgram = "wbg";
};
}
|