nixpkgs/pkgs/by-name/wb/wbg/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

2020-08-25 02:01:17 +01:00
{ stdenv
, lib
, fetchFromGitea
, pkg-config
2020-08-25 02:01:17 +01:00
, meson
, ninja
, pixman
, tllist
, wayland
, wayland-scanner
2020-08-25 02:01:17 +01:00
, wayland-protocols
, enablePNG ? true
, enableJPEG ? true
2023-05-13 23:22:18 +01:00
, enableWebp ? true
# Optional dependencies
, libpng
, libjpeg
2023-05-13 23:22:18 +01:00
, libwebp
2020-08-25 02:01:17 +01:00
}:
stdenv.mkDerivation rec {
pname = "wbg";
2024-04-29 09:32:19 +01:00
version = "1.2.0";
2020-08-25 02:01:17 +01:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "dnkl";
repo = "wbg";
rev = version;
hash = "sha256-zd5OWC0r/75IaeKy5xjV+pQefRy48IcFTxx93iy0a0Q=";
2020-08-25 02:01:17 +01:00
};
nativeBuildInputs = [
pkg-config
meson
ninja
wayland-scanner
];
2020-08-25 02:01:17 +01:00
buildInputs = [
pixman
tllist
wayland
wayland-protocols
] ++ lib.optional enablePNG libpng
2023-05-13 23:22:18 +01:00
++ lib.optional enableJPEG libjpeg
++ lib.optional enableWebp libwebp;
mesonBuildType = "release";
mesonFlags = [
2022-12-07 21:44:21 +00:00
(lib.mesonEnable "png" enablePNG)
(lib.mesonEnable "jpeg" enableJPEG)
2023-05-13 23:22:18 +01:00
(lib.mesonEnable "webp" enableWebp)
2020-08-25 02:01:17 +01:00
];
meta = with lib; {
description = "Wallpaper application for Wayland compositors";
homepage = "https://codeberg.org/dnkl/wbg";
changelog = "https://codeberg.org/dnkl/wbg/releases/tag/${version}";
2020-08-25 02:01:17 +01:00
license = licenses.isc;
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; linux;
2024-02-11 02:19:15 +00:00
mainProgram = "wbg";
2020-08-25 02:01:17 +01:00
};
}