2016-08-22 23:43:13 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, efl, xcbutilkeysyms, libXrandr, libXdmcp,
|
|
|
|
libxcb, libffi, pam, alsaLib, luajit, bzip2, libpthreadstubs, gdbm, libcap,
|
2017-08-22 19:54:56 +01:00
|
|
|
mesa_glu, xkeyboard_config, pcre }:
|
2014-09-15 20:54:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "enlightenment-${version}";
|
2017-10-09 19:50:27 +01:00
|
|
|
version = "0.21.10";
|
2016-07-24 10:58:17 +01:00
|
|
|
|
2014-09-15 20:54:02 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.enlightenment.org/rel/apps/enlightenment/${name}.tar.xz";
|
2017-10-09 19:50:27 +01:00
|
|
|
sha256 = "053zmlpjx45xg2rbbxyjh0phhgbsnmsnypzz2bib545klp51bfcv";
|
2014-09-15 20:54:02 +01:00
|
|
|
};
|
2016-05-04 10:31:23 +01:00
|
|
|
|
2017-08-22 19:54:56 +01:00
|
|
|
nativeBuildInputs = [ (pkgconfig.override { vanilla = true; }) ];
|
2016-05-04 10:31:23 +01:00
|
|
|
|
2016-10-14 09:51:40 +01:00
|
|
|
buildInputs = [
|
|
|
|
efl libXdmcp libxcb xcbutilkeysyms libXrandr libffi pam alsaLib
|
2017-08-22 19:54:56 +01:00
|
|
|
luajit bzip2 libpthreadstubs gdbm pcre
|
2016-10-14 09:51:40 +01:00
|
|
|
] ++
|
|
|
|
stdenv.lib.optionals stdenv.isLinux [ libcap ];
|
2016-05-04 10:31:23 +01:00
|
|
|
|
2014-09-15 20:54:02 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export USER_SESSION_DIR=$prefix/lib/systemd/user
|
2014-12-17 09:33:49 +00: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 02:58:14 +00:00
|
|
|
|
|
|
|
substituteInPlace "src/bin/e_import_config_dialog.c" \
|
2016-03-11 23:43:40 +00:00
|
|
|
--replace "e_prefix_bin_get()" "\"${efl}/bin\""
|
2014-09-15 20:54:02 +01:00
|
|
|
'';
|
|
|
|
|
2014-12-28 10:40:01 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-03-11 23:53:02 +00:00
|
|
|
# this is a hack and without this cpufreq module is not working. does the following:
|
2016-03-11 23:43:40 +00:00
|
|
|
# 1. moves the "freqset" binary to "e_freqset",
|
|
|
|
# 2. linkes "e_freqset" to enlightenment/bin so that,
|
2017-01-29 10:11:01 +00:00
|
|
|
# 3. wrappers.setuid detects it and places wrappers in /run/wrappers/bin/e_freqset,
|
|
|
|
# 4. and finally, links /run/wrappers/bin/e_freqset to original destination where enlightenment wants it
|
2016-03-11 23:53:02 +00:00
|
|
|
postInstall = ''
|
2014-09-15 20:54:02 +01:00
|
|
|
export CPUFREQ_DIRPATH=`readlink -f $out/lib/enlightenment/modules/cpufreq/linux-gnu-*`;
|
2016-03-11 23:43:40 +00:00
|
|
|
mv $CPUFREQ_DIRPATH/freqset $CPUFREQ_DIRPATH/e_freqset
|
|
|
|
ln -sv $CPUFREQ_DIRPATH/e_freqset $out/bin/e_freqset
|
2017-01-29 10:11:01 +00:00
|
|
|
ln -sv /run/wrappers/bin/e_freqset $CPUFREQ_DIRPATH/freqset
|
2016-03-11 23:53:02 +00:00
|
|
|
'';
|
|
|
|
|
2016-10-14 09:51:40 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-15 20:54:02 +01:00
|
|
|
description = "The Compositing Window Manager and Desktop Shell";
|
|
|
|
homepage = http://enlightenment.org/;
|
2016-10-14 09:51:40 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
|
2014-09-15 20:54:02 +01:00
|
|
|
};
|
|
|
|
}
|