Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

78 lines
1.7 KiB
Nix

{
extra-cmake-modules,
fetchFromGitHub,
kpackage,
libplasma,
lib,
lz4,
mkKdeDerivation,
mpv-unwrapped,
pkg-config,
python3,
qtbase,
qtmultimedia,
qtwebchannel,
qtwebengine,
qtwebsockets,
}:
mkKdeDerivation {
pname = "wallpaper-engine-kde-plugin";
version = "0.5.4-unstable-2025-06-29";
src = fetchFromGitHub {
owner = "catsout";
repo = "wallpaper-engine-kde-plugin";
rev = "9e60b364e268814a1a778549c579ad45a9b9c7bb";
hash = "sha256-zEpELmuK+EvQ1HIWxCSAGyJAjmGgp0yqjtNuC2DTES8=";
fetchSubmodules = true;
};
patches = [
./nix-plugin.patch
./qt-6.10-fix.patch
];
extraNativeBuildInputs = [
kpackage
pkg-config
(python3.withPackages (ps: with ps; [ websockets ]))
];
extraBuildInputs = [
extra-cmake-modules
libplasma
lz4
mpv-unwrapped
];
extraCmakeFlags = [
(lib.cmakeFeature "QML_LIB" (
lib.makeSearchPathOutput "out" "lib/qt-6/qml" [
qtmultimedia
qtwebchannel
qtwebengine
qtwebsockets
]
))
(lib.cmakeFeature "Qt6_DIR" "${qtbase}/lib/cmake/Qt6")
"-DCMAKE_CXX_FLAGS=-Wno-error=stringop-overflow"
];
postInstall = ''
cd $out/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde
chmod +x ./contents/pyext.py
patchShebangs --build ./contents/pyext.py
substituteInPlace ./contents/ui/Pyext.qml \
--replace-fail NIX_STORE_PACKAGE_PATH ${placeholder "out"}
cd -
'';
meta = {
description = "KDE wallpaper plugin integrating Wallpaper Engine";
homepage = "https://github.com/catsout/wallpaper-engine-kde-plugin";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ macronova ];
teams = [ ];
};
}