mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitea
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, pixman
|
|
, tllist
|
|
, wayland
|
|
, wayland-scanner
|
|
, wayland-protocols
|
|
, enablePNG ? true
|
|
, enableJPEG ? true
|
|
# Optional dependencies
|
|
, libpng
|
|
, libjpeg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wbg";
|
|
version = "1.0.2";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "dnkl";
|
|
repo = "wbg";
|
|
rev = version;
|
|
sha256 = "sha256-PKEOWRcSAB4Uv5TfameQIEZh6s6xCGdyoZ13etL1TKA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
wayland-scanner
|
|
];
|
|
|
|
buildInputs = [
|
|
pixman
|
|
tllist
|
|
wayland
|
|
wayland-protocols
|
|
] ++ lib.optional enablePNG libpng
|
|
++ lib.optional enableJPEG libjpeg;
|
|
|
|
mesonBuildType = "release";
|
|
|
|
mesonFlags = [
|
|
(lib.mesonEnable "png" enablePNG)
|
|
(lib.mesonEnable "jpeg" enableJPEG)
|
|
];
|
|
|
|
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; [ AndersonTorres ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|