summary refs log tree commit diff
path: root/pkgs/desktops/cinnamon/cinnamon-session.nix
blob: 850dd4e6c5af986b573d5e41fbbded1047dc85f0 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
{ stdenv, fetchurl, pkgconfig, autoreconfHook, glib, gettext, gnome_common, gtk3, dbus_glib
, upower, json_glib,intltool, systemd, hicolor_icon_theme, xorg, makeWrapper, cinnamon-desktop }:

let
  version = "2.0.6";
in
stdenv.mkDerivation {
  name = "cinnamon-session-${version}";

  src = fetchurl {
    url = "http://github.com/linuxmint/cinnamon-session/archive/${version}.tar.gz";
    sha256 = "0rs5w7npj3wf3gkk3sfb83awks2h7vjd6cz8mvfgbh6m3grn66l3";
  };


  configureFlags = "--disable-schemas-compile --enable-systemd --disable-gconf" ;

  patches = [ ./remove-sessionmigration.patch ./timeout.patch];

  buildInputs = [
    pkgconfig autoreconfHook
    glib gettext gnome_common
    gtk3 dbus_glib upower json_glib
    intltool systemd xorg.xtrans
    makeWrapper
   ];

  preBuild = "patchShebangs ./scripts";


  postInstall  = ''
    ${glib}/bin/glib-compile-schemas $out/share/glib-2.0/schemas/
    rm $out/share/icons/hicolor/icon-theme.cache

    for f in "$out"/bin/*; do
      wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share:${cinnamon-desktop}/share"
    done
  '';

  meta = {
    homepage = "http://cinnamon.linuxmint.com";
    description = "The cinnamon session files" ;

    platforms = stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.roelof ];
  };
}