layer-shell-qt-nokde/default.nix

29 lines
678 B
Nix

{ stdenv, cmake, qt6, wayland, wayland-scanner, wayland-protocols, pkg-config, libsForQt5 }: stdenv.mkDerivation {
pname = "layer-shell-qt-nokde";
version = "6.0.80";
src = ./.;
nativeBuildInputs = [
cmake
pkg-config
wayland-scanner
libsForQt5.extra-cmake-modules
];
dontWrapQtApps = true;
buildInputs = [
qt6.qtbase
qt6.qtdeclarative
qt6.qtwayland
wayland
wayland-protocols
];
postInstall = ''
# I have no idea why qt's cmake module refuses to set this correctly, I give up.
cp $out/lib/qt-6/qml/org/kde/layershell/libLayerShellQtQml.so $out/lib/qt-6/qml/org/kde/layershell/libLayerShellQtQmlplugin.so
'';
}