summary refs log tree commit diff
path: root/pkgs/desktops/plasma-5.2/startkde/default.nix
blob: 624c5d239d5df80030c2a21bcd636521339a81a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# We provide our own version of the startkde script in its entirety, rather than
# patching the version provided by kde-workspace, because it requires such
# extensive patching.

{ stdenv, bash, dbus, gnused, gnugrep, kconfig, kinit, kservice, plasma-desktop
, plasma-workspace, qt5, socat, xorg }:

let startkde = ./startkde.in; in

stdenv.mkDerivation {
  name = "startkde-0.1";
  phases = "installPhase";

  inherit bash gnused gnugrep kconfig kinit kservice socat;
  inherit (xorg) mkfontdir xmessage xprop xrdb xset xsetroot;
  qt5tools = qt5.tools;
  dbus_tools = dbus.tools;
  plasmaWorkspace = plasma-workspace;
  plasmaDesktop = plasma-desktop;
  startupconfigkeys = ./startupconfigkeys;
  kdeglobals = ./kdeglobals;

  installPhase = ''
    mkdir -p $out/bin
    substituteAll ${startkde} $out/bin/startkde
    chmod +x $out/bin/startkde
  '';

  meta = {
    description = "Custom startkde script for Nixpkgs";
    maintainers = with stdenv.lib.maintainers; [ ttuegel ];
    license = with stdenv.lib.licenses; [ gpl2Plus ];
  };
}