{ inputs, name, pkgs }: pkgs.kdePackages.callPackage ( { extra-cmake-modules , full , kpackage , libplasma , lib , lz4 , mkKdeDerivation , mpv , pkg-config , python-ws }: mkKdeDerivation { extraBuildInputs = [ extra-cmake-modules full libplasma lz4 mpv ]; extraCmakeFlags = [ "-DUSE_PLASMAPKG=ON" ]; extraNativeBuildInputs = [ kpackage pkg-config ]; meta.license = with lib.licenses; [ gpl2 ]; pname = name; postInstall = '' chmod +x ../plugin/contents/pyext.py PATH=${python-ws}/bin:$PATH patchShebangs --build ../plugin/contents/pyext.py sed -i "18i \\ \"[ -f \\\\\"${placeholder "out"}/share/\$EXT\\\\\" ] && WKD=\\\\\"${placeholder "out"}/share/\$EXT\\\\\"\"," ../plugin/contents/ui/Pyext.qml sed -i "s/exec python3 //g" ../plugin/contents/ui/Pyext.qml kpackagetool6 -i ../plugin/ -p $out/share/plasma/wallpapers/ ''; src = inputs.${name}; version = "latest"; } ) { python-ws = pkgs.python3.withPackages (ps: with ps; [ websockets ]); }