2016-03-12 00:53:02 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, efl, elementary, xcbutilkeysyms, libXrandr, libXdmcp, libxcb,
|
|
|
|
libffi, pam, alsaLib, luajit, bzip2, libuuid, libpthreadstubs, gdbm, libcap, mesa_glu
|
|
|
|
, xkeyboard_config }:
|
2014-09-15 21:54:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "enlightenment-${version}";
|
2016-05-17 16:27:30 +02:00
|
|
|
version = "0.20.8";
|
2014-09-15 21:54:02 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.enlightenment.org/rel/apps/enlightenment/${name}.tar.xz";
|
2016-05-17 16:27:30 +02:00
|
|
|
sha256 = "17fi3frq4a73i0x7v7244g9m0fbjfamw0cfb4zhqs2rp1z8nq1iy";
|
2014-09-15 21:54:02 +02:00
|
|
|
};
|
2016-05-04 11:31:23 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ efl elementary libXdmcp libxcb
|
2016-03-12 00:53:02 +01:00
|
|
|
xcbutilkeysyms libXrandr libffi pam alsaLib luajit bzip2 libuuid
|
2014-12-17 10:32:48 +01:00
|
|
|
libpthreadstubs gdbm ] ++ stdenv.lib.optionals stdenv.isLinux [ libcap ];
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2016-03-12 00:43:40 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${efl}/include/eo-1" "-I${efl}/include/emile-1" "-I${libuuid}/include/uuid" ];
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2014-09-15 21:54:02 +02:00
|
|
|
preConfigure = ''
|
|
|
|
export USER_SESSION_DIR=$prefix/lib/systemd/user
|
2014-12-17 10:33:49 +01:00
|
|
|
|
|
|
|
substituteInPlace src/modules/xkbswitch/e_mod_parse.c \
|
|
|
|
--replace "/usr/share/X11/xkb/rules/xorg.lst" "${xkeyboard_config}/share/X11/xkb/rules/base.lst"
|
2015-01-10 03:58:14 +01:00
|
|
|
|
|
|
|
substituteInPlace "src/bin/e_import_config_dialog.c" \
|
2016-03-12 00:43:40 +01:00
|
|
|
--replace "e_prefix_bin_get()" "\"${efl}/bin\""
|
2014-09-15 21:54:02 +02:00
|
|
|
'';
|
|
|
|
|
2014-12-28 11:40:01 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-12 00:53:02 +01:00
|
|
|
# this is a hack and without this cpufreq module is not working. does the following:
|
2016-03-12 00:43:40 +01:00
|
|
|
# 1. moves the "freqset" binary to "e_freqset",
|
|
|
|
# 2. linkes "e_freqset" to enlightenment/bin so that,
|
|
|
|
# 3. setuidPrograms detects it and makes appropriate stuff to /var/setuid-wrappers/e_freqset,
|
|
|
|
# 4. and finaly, linkes /var/setuid-wrappers/e_freqset to original destination where enlightenment wants it
|
2016-03-12 00:53:02 +01:00
|
|
|
postInstall = ''
|
2014-09-15 21:54:02 +02:00
|
|
|
export CPUFREQ_DIRPATH=`readlink -f $out/lib/enlightenment/modules/cpufreq/linux-gnu-*`;
|
2016-03-12 00:43:40 +01:00
|
|
|
mv $CPUFREQ_DIRPATH/freqset $CPUFREQ_DIRPATH/e_freqset
|
|
|
|
ln -sv $CPUFREQ_DIRPATH/e_freqset $out/bin/e_freqset
|
|
|
|
ln -sv /var/setuid-wrappers/e_freqset $CPUFREQ_DIRPATH/freqset
|
2016-03-12 00:53:02 +01:00
|
|
|
'';
|
|
|
|
|
2014-09-15 21:54:02 +02:00
|
|
|
meta = {
|
|
|
|
description = "The Compositing Window Manager and Desktop Shell";
|
|
|
|
homepage = http://enlightenment.org/;
|
2015-05-16 16:42:40 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx ];
|
2014-09-15 21:54:02 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|