Update plugin definition
This commit is contained in:
parent
69de97b39e
commit
f528a8f4f0
5 changed files with 68 additions and 36 deletions
|
|
@ -1,28 +0,0 @@
|
|||
{ inputs, name, pkgs }:
|
||||
|
||||
with pkgs; stdenv.mkDerivation {
|
||||
inherit name;
|
||||
src = inputs.${name};
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
];
|
||||
buildInputs = with libsForQt5; [
|
||||
plasma-framework
|
||||
plasma-workspace
|
||||
qt5.qtx11extras
|
||||
qt5.qtdeclarative
|
||||
qt5.qtwebchannel
|
||||
qt5.wrapQtAppsHook
|
||||
] ++ [
|
||||
gst_all_1.gst-libav
|
||||
lz4
|
||||
mujs
|
||||
mpv-unwrapped
|
||||
shaderc
|
||||
vulkan-headers
|
||||
vulkan-loader
|
||||
wayland
|
||||
];
|
||||
cmakeFlags = [ "-DUSE_PLASMAPKG=ON" ];
|
||||
}
|
||||
60
packages/wallpaper-engine-kde-plugin.nix
Normal file
60
packages/wallpaper-engine-kde-plugin.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ inputs, name, pkgs }:
|
||||
|
||||
pkgs.plasma5Packages.callPackage
|
||||
(
|
||||
{ mkDerivation
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, gst-libav
|
||||
, lz4
|
||||
, mpv
|
||||
, pkg-config
|
||||
, python-ws
|
||||
, plasma-framework
|
||||
, qtdeclarative
|
||||
, qtwebsockets
|
||||
, qtwebchannel
|
||||
, qtx11extras
|
||||
, vulkan-headers
|
||||
, vulkan-loader
|
||||
, vulkan-tools
|
||||
, websockets
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
inherit name;
|
||||
cmakeFlags = [ "-DUSE_PLASMAPKG=ON" ];
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules pkg-config ];
|
||||
buildInputs = [
|
||||
lz4
|
||||
mpv
|
||||
plasma-framework
|
||||
python-ws
|
||||
qtdeclarative
|
||||
qtwebchannel
|
||||
qtwebsockets
|
||||
qtx11extras
|
||||
vulkan-headers
|
||||
vulkan-tools
|
||||
vulkan-loader
|
||||
websockets
|
||||
];
|
||||
postInstall = ''
|
||||
chmod +x ../plugin/contents/pyext.py
|
||||
PATH=${python-ws}/bin:$PATH patchShebangs --build ../plugin/contents/pyext.py
|
||||
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
|
||||
mkdir -p $out/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/
|
||||
cp -r ../plugin/* $out/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde/
|
||||
'';
|
||||
src = inputs.${name};
|
||||
}
|
||||
)
|
||||
(with pkgs; {
|
||||
inherit (gst_all_1) gst-libav;
|
||||
inherit (python3Packages) websockets;
|
||||
python-ws = python3.withPackages (ps: with ps; [
|
||||
websockets
|
||||
]);
|
||||
})
|
||||
|
||||
|
|
@ -6,9 +6,9 @@ pkgs.stdenv.mkDerivation {
|
|||
inherit name;
|
||||
src = inputs.${name};
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
runHook preInstall
|
||||
mkdir -p $out/
|
||||
cp -r yorha-${resolution}/* $out/
|
||||
cp -r yorha-${resolution}/* $out/
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue