Update flake

This commit is contained in:
Invariantspace 2025-01-25 15:42:15 +08:00
parent a1271d04c0
commit ee91d74867
Signed by: macronova
GPG key ID: CE969670FB4B4A56
3 changed files with 21 additions and 25 deletions

View file

@ -6,7 +6,6 @@
pkgs.kdePackages.callPackage (
{
extra-cmake-modules,
fetchFromGitHub,
kpackage,
libplasma,
lib,
@ -42,25 +41,22 @@ pkgs.kdePackages.callPackage (
];
extraCmakeFlags = [
"-DQML2_CMAKE_PATH=${
lib.makeSearchPath "lib/qt-6/qml" [
(lib.cmakeFeature "QML_LIB" (lib.makeSearchPathOutput "out" "lib/qt-6/qml" [
qtmultimedia
qtwebchannel
qtwebengine.dev
qtwebengine
qtwebsockets
]
}"
"-DQt6_DIR=${qtbase}/lib/cmake/Qt6"
"-DUSE_PLASMAPKG=ON"
]))
(lib.cmakeFeature "Qt6_DIR" "${qtbase}/lib/cmake/Qt6")
];
postInstall = let
py3-ws = python3.withPackages (ps: with ps; [websockets]);
in ''
cd ../plugin
cd $out/share/plasma/wallpapers/com.github.catsout.wallpaperEngineKde
chmod +x ./contents/pyext.py
PATH=${py3-ws}/bin:$PATH patchShebangs --build ./contents/pyext.py
substituteInPlace ./contents/ui/Pyext.qml --replace-fail NIX_STORE_PACKAGE_PATH ${placeholder "out"}
kpackagetool6 -i ./ -p $out/share/plasma/wallpapers/
'';
meta = with lib; {