depot/pkgs/desktops/plasma-5/plasma-bigscreen.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

47 lines
906 B
Nix

{ mkDerivation
, extra-cmake-modules
, kactivities
, kactivities-stats
, plasma-framework
, ki18n
, kirigami2
, kdeclarative
, kcmutils
, knotifications
, kio
, kwayland
, kwindowsystem
, plasma-workspace
, qtmultimedia
}:
mkDerivation {
pname = "plasma-bigscreen";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [
kactivities
kactivities-stats
plasma-framework
ki18n
kirigami2
kdeclarative
kcmutils
knotifications
kio
kwayland
kwindowsystem
plasma-workspace
qtmultimedia
];
postPatch = ''
substituteInPlace bin/plasma-bigscreen-wayland.in \
--replace @KDE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
'';
preFixup = ''
wrapQtApp $out/bin/plasma-bigscreen-x11
wrapQtApp $out/bin/plasma-bigscreen-wayland
'';
passthru.providedSessions = [ "plasma-bigscreen-x11" "plasma-bigscreen-wayland" ];
}