2021-02-13 14:23:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-08-08 23:34:03 +00:00
|
|
|
, fetchFromGitea
|
|
|
|
, pkg-config
|
2021-02-13 14:23:35 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pixman
|
|
|
|
, tllist
|
|
|
|
, wayland
|
2021-08-08 23:34:03 +00:00
|
|
|
, wayland-scanner
|
2021-02-13 14:23:35 +00:00
|
|
|
, wayland-protocols
|
2021-08-08 23:34:03 +00:00
|
|
|
, enablePNG ? true
|
|
|
|
, enableJPEG ? true
|
2023-05-24 13:37:59 +00:00
|
|
|
, enableWebp ? true
|
2021-08-08 23:34:03 +00:00
|
|
|
# Optional dependencies
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
2023-05-24 13:37:59 +00:00
|
|
|
, libwebp
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wbg";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.1.0";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "dnkl";
|
|
|
|
repo = "wbg";
|
|
|
|
rev = version;
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-JJIIqSc0qHgjtpGKai8p6vihXg16unsO7vW91pioAmc=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
wayland-scanner
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [
|
|
|
|
pixman
|
|
|
|
tllist
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
2021-08-08 23:34:03 +00:00
|
|
|
] ++ lib.optional enablePNG libpng
|
2023-05-24 13:37:59 +00:00
|
|
|
++ lib.optional enableJPEG libjpeg
|
|
|
|
++ lib.optional enableWebp libwebp;
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
mesonBuildType = "release";
|
|
|
|
|
|
|
|
mesonFlags = [
|
2023-01-11 07:51:40 +00:00
|
|
|
(lib.mesonEnable "png" enablePNG)
|
|
|
|
(lib.mesonEnable "jpeg" enableJPEG)
|
2023-05-24 13:37:59 +00:00
|
|
|
(lib.mesonEnable "webp" enableWebp)
|
2021-02-13 14:23:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wallpaper application for Wayland compositors";
|
|
|
|
homepage = "https://codeberg.org/dnkl/wbg";
|
2021-08-08 23:34:03 +00:00
|
|
|
changelog = "https://codeberg.org/dnkl/wbg/releases/tag/${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = with platforms; linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "wbg";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
}
|