wbg: 1.0.2 -> 1.1.0

This commit is contained in:
rewine 2023-05-14 06:22:18 +08:00 committed by Anderson Torres
parent d59fdad181
commit b53d5fd054

View File

@ -11,21 +11,23 @@
, wayland-protocols
, enablePNG ? true
, enableJPEG ? true
, enableWebp ? true
# Optional dependencies
, libpng
, libjpeg
, libwebp
}:
stdenv.mkDerivation rec {
pname = "wbg";
version = "1.0.2";
version = "1.1.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "dnkl";
repo = "wbg";
rev = version;
sha256 = "sha256-PKEOWRcSAB4Uv5TfameQIEZh6s6xCGdyoZ13etL1TKA=";
sha256 = "sha256-JJIIqSc0qHgjtpGKai8p6vihXg16unsO7vW91pioAmc=";
};
nativeBuildInputs = [
@ -41,13 +43,15 @@ stdenv.mkDerivation rec {
wayland
wayland-protocols
] ++ lib.optional enablePNG libpng
++ lib.optional enableJPEG libjpeg;
++ lib.optional enableJPEG libjpeg
++ lib.optional enableWebp libwebp;
mesonBuildType = "release";
mesonFlags = [
(lib.mesonEnable "png" enablePNG)
(lib.mesonEnable "jpeg" enableJPEG)
(lib.mesonEnable "webp" enableWebp)
];
meta = with lib; {