@@ -1,35 +0,0 @@
1−{ stdenv, fetchurl, pkgconfig, e18, xlibs, libffi, pam, alsaLib, luajit, bzip2, set_freqset_setuid ? false }:
2−
3−stdenv.mkDerivation rec {
4− name = "enlightenment-${version}";
5− version = "0.18.8";
6− src = fetchurl {
7− url = "http://download.enlightenment.org/rel/apps/enlightenment/${name}.tar.gz";
8− sha256 = "1fsigbrknkwy909p1gqwxag1bar3p413s4f6fq3qnbsd6gjbvj8l";
9− };
10− buildInputs = [ pkgconfig e18.efl e18.elementary xlibs.libxcb xlibs.xcbutilkeysyms xlibs.libXrandr libffi pam alsaLib luajit bzip2 ];
11− preConfigure = ''
12− export NIX_CFLAGS_COMPILE="-I${e18.efl}/include/eo-1 -I${e18.efl}/include/ecore-imf-1 -I${e18.efl}/include/ethumb-client-1 -I${e18.efl}/include/ethumb-1 $NIX_CFLAGS_COMPILE"
13− '';
14−
15− # this is a hack and without this cpufreq module is not working:
16− # when set_freqset_setuid is true and "e18_freqset" is set in setuidPrograms (this is taken care of in e18 NixOS module),
17− # then this postInstall does the folowing:
18− # 1. moves the "freqset" binary to "e18_freqset",
19− # 2. linkes "e18_freqset" to enlightenment/bin so that,
20− # 3. setuidPrograms detects it and makes appropriate stuff to /var/setuid-wrappers/e18_freqset,
21− # 4. and finaly, linkes /var/setuid-wrappers/e18_freqset to original destination where enlightenment wants it
22− postInstall = if set_freqset_setuid then ''
23− export CPUFREQ_DIRPATH=`readlink -f $out/lib/enlightenment/modules/cpufreq/linux-gnu-*`;
24− mv $CPUFREQ_DIRPATH/freqset $CPUFREQ_DIRPATH/e18_freqset
25− ln -sv $CPUFREQ_DIRPATH/e18_freqset $out/bin/e18_freqset
26− ln -sv /var/setuid-wrappers/e18_freqset $CPUFREQ_DIRPATH/freqset
27− '' else "";
28− meta = {
29− description = "The Compositing Window Manager and Desktop Shell";
30− homepage = http://enlightenment.org/;
31− maintainers = [ stdenv.lib.maintainers.matejc ];
32− platforms = stdenv.lib.platforms.linux;
33− license = stdenv.lib.licenses.bsd2;
34− };
35−}