2024-03-07 21:25:29 -08:00
|
|
|
{ inputs, name, pkgs }:
|
|
|
|
|
|
|
|
|
|
pkgs.kdePackages.callPackage
|
|
|
|
|
(
|
|
|
|
|
{ extra-cmake-modules
|
|
|
|
|
, full
|
|
|
|
|
, kpackage
|
|
|
|
|
, libplasma
|
|
|
|
|
, lz4
|
|
|
|
|
, mkKdeDerivation
|
|
|
|
|
, mpv
|
|
|
|
|
, pkg-config
|
|
|
|
|
, python-ws
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
mkKdeDerivation {
|
|
|
|
|
extraBuildInputs = [
|
|
|
|
|
extra-cmake-modules
|
|
|
|
|
full
|
|
|
|
|
libplasma
|
|
|
|
|
lz4
|
|
|
|
|
mpv
|
|
|
|
|
];
|
|
|
|
|
extraCmakeFlags = [ "-DUSE_PLASMAPKG=ON" ];
|
|
|
|
|
extraNativeBuildInputs = [
|
|
|
|
|
kpackage
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
|
|
|
|
pname = name;
|
|
|
|
|
postInstall = ''
|
|
|
|
|
sed -i "16i \\ \"[ -f \\\\\"\$HOME/.nix-profile/share/\$EXT\\\\\" ] && WKD=\\\\\"\$HOME/.nix-profile/share/\$EXT\\\\\"\"," ../plugin/contents/ui/Pyext.qml
|
|
|
|
|
sed -i "s/exec python3 //g" ../plugin/contents/ui/Pyext.qml
|
|
|
|
|
chmod +x ../plugin/contents/pyext.py
|
|
|
|
|
PATH=${python-ws}/bin:$PATH patchShebangs --build ../plugin/contents/pyext.py
|
|
|
|
|
kpackagetool6 -i ../plugin/ -p $out/share/plasma/wallpapers/
|
|
|
|
|
'';
|
|
|
|
|
src = inputs.${name};
|
|
|
|
|
version = "latest";
|
|
|
|
|
}
|
|
|
|
|
)
|
2024-03-10 13:23:35 -07:00
|
|
|
{
|
|
|
|
|
python-ws = pkgs.python3.withPackages (ps: with ps; [
|
|
|
|
|
websockets
|
|
|
|
|
]);
|
|
|
|
|
}
|
2024-03-07 21:25:29 -08:00
|
|
|
|