Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitea,
|
|
pkg-config,
|
|
meson,
|
|
ninja,
|
|
pixman,
|
|
tllist,
|
|
wayland,
|
|
wayland-scanner,
|
|
wayland-protocols,
|
|
libjxl,
|
|
enablePNG ? true,
|
|
enableJPEG ? true,
|
|
enableWebp ? true,
|
|
# Optional dependencies
|
|
libpng,
|
|
libjpeg,
|
|
libwebp,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wbg";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "dnkl";
|
|
repo = "wbg";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-qEdl3dKeAfWWZ7+8MF59fAvtoELLA+C4680yFNsHhrY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
wayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
libjxl
|
|
pixman
|
|
tllist
|
|
wayland
|
|
wayland-protocols
|
|
]
|
|
++ lib.optional enablePNG libpng
|
|
++ lib.optional enableJPEG libjpeg
|
|
++ lib.optional enableWebp libwebp;
|
|
|
|
mesonBuildType = "release";
|
|
|
|
mesonFlags = [
|
|
(lib.mesonEnable "png" enablePNG)
|
|
(lib.mesonEnable "jpeg" enableJPEG)
|
|
(lib.mesonEnable "webp" enableWebp)
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-error=maybe-uninitialized"
|
|
];
|
|
|
|
meta = {
|
|
description = "Wallpaper application for Wayland compositors";
|
|
homepage = "https://codeberg.org/dnkl/wbg";
|
|
changelog = "https://codeberg.org/dnkl/wbg/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ ];
|
|
platforms = with lib.platforms; linux;
|
|
mainProgram = "wbg";
|
|
};
|
|
})
|