about summary refs log tree commit diff
path: root/pkgs/desktops/kde-4/default.nix
blob: 9732d9e2b2b74d532c210d0f21ec25ac16d6e53c (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
35
args:
rec {
  fullargs = args // { kdelibs = libs; kdepimlibs = pimlibs; kdebase = base; kderuntime = runtime; };
  libs = import ./libs (args // { kdesupport = support; });
  pimlibs = import ./pimlibs (args // { kdelibs = libs; });
  graphics = import ./graphics (fullargs // { kdeworkspace = workspace; } );
  multimedia = import ./multimedia (fullargs // { kdeworkspace = workspace; } );
  toys = import ./toys (fullargs // { kdeworkspace = workspace; } );
  network = import ./network (fullargs // { kdeworkspace = workspace; } );
  utils = import ./utils (fullargs // { kdeworkspace = workspace; } );
  games = import ./games (fullargs // { kdeworkspace = workspace; } );
  edu = import ./edu (fullargs // { kdeworkspace = workspace; } );
  base = import ./base fullargs;
  runtime = import ./runtime fullargs;
  workspace = import ./workspace fullargs;
  extragear_plasma = import ./extragear (fullargs // { kdeworkspace = workspace; });
  support = import ./support args;
  decibel = import ./decibel fullargs;
  pim = import ./pim (fullargs // {kdeworkspace = workspace; });

  env = with args; runCommand "kde-env"
  {
	  KDEDIRS = lib.concatStringsSep ":" ([ libs pimlibs graphics multimedia
	  toys network utils games edu base runtime workspace extragear_plasma pim] ++
	  support.all);
	  scriptName = "echo-kde-dirs";
  }
  "
  ensureDir \${out}/bin
  scriptPath=\${out}/bin/\${scriptName}
  echo \"#!/bin/sh\" > \${scriptPath}
  echo \"echo -n export KDEDIRS=\${KDEDIRS}\" >> \${scriptPath}
  chmod +x \${scriptPath}
  ";
}