2013-12-10 22:46:34 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, autoreconfHook, glib, gettext, gnome_common, gtk3, dbus_glib
|
|
|
|
, upower, json_glib,intltool, systemd, hicolor_icon_theme, xorg, makeWrapper, cinnamon-desktop }:
|
2013-12-07 20:00:54 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.0.6";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cinnamon-session-${version}";
|
2013-12-10 22:46:34 +01:00
|
|
|
|
2013-12-07 20:00:54 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/linuxmint/cinnamon-session/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0rs5w7npj3wf3gkk3sfb83awks2h7vjd6cz8mvfgbh6m3grn66l3";
|
|
|
|
};
|
|
|
|
|
2013-12-10 22:46:34 +01:00
|
|
|
|
2014-04-06 21:20:23 +02:00
|
|
|
configureFlags = "--enable-systemd --disable-gconf" ;
|
2013-12-10 22:46:34 +01:00
|
|
|
|
|
|
|
patches = [ ./remove-sessionmigration.patch ./timeout.patch];
|
2013-12-07 20:00:54 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig autoreconfHook
|
|
|
|
glib gettext gnome_common
|
|
|
|
gtk3 dbus_glib upower json_glib
|
2013-12-10 22:46:34 +01:00
|
|
|
intltool systemd xorg.xtrans
|
|
|
|
makeWrapper
|
2014-04-28 23:20:31 +02:00
|
|
|
cinnamon-desktop /*gschemas*/
|
2013-12-07 20:00:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = "patchShebangs ./scripts";
|
|
|
|
|
2013-12-10 22:46:34 +01:00
|
|
|
|
2014-04-06 21:20:23 +02:00
|
|
|
postFixup = ''
|
2013-12-10 22:46:34 +01:00
|
|
|
rm $out/share/icons/hicolor/icon-theme.cache
|
|
|
|
|
2014-04-28 23:20:31 +02:00
|
|
|
for f in "$out/bin/"*; do
|
2014-04-06 21:40:55 +02:00
|
|
|
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2013-12-10 22:46:34 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-12-07 20:00:54 +01:00
|
|
|
homepage = "http://cinnamon.linuxmint.com";
|
2013-12-10 22:46:34 +01:00
|
|
|
description = "The cinnamon session files" ;
|
2013-12-07 20:00:54 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.roelof ];
|
2014-04-28 23:20:31 +02:00
|
|
|
|
|
|
|
broken = true;
|
2013-12-07 20:00:54 +01:00
|
|
|
};
|
|
|
|
}
|