2019-09-18 15:28:49 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, alsaLib, bc,
|
|
|
|
bzip2, efl, gdbm, libXdmcp, libXrandr, libcap, libffi,
|
|
|
|
libpthreadstubs, libxcb, luajit, mesa, pam, pcre, xcbutilkeysyms,
|
|
|
|
xkeyboard_config,
|
2019-08-28 15:13:17 +01:00
|
|
|
|
|
|
|
bluetoothSupport ? true, bluez5,
|
2019-08-28 16:45:09 +01:00
|
|
|
pulseSupport ? !stdenv.isDarwin, libpulseaudio,
|
2017-11-11 17:44:32 +00:00
|
|
|
}:
|
2014-09-15 20:54:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-28 14:19:09 +01:00
|
|
|
pname = "enlightenment";
|
2019-10-01 13:26:15 +01:00
|
|
|
version = "0.23.1";
|
2016-07-24 10:58:17 +01:00
|
|
|
|
2014-09-15 20:54:02 +01:00
|
|
|
src = fetchurl {
|
2019-08-28 14:19:09 +01:00
|
|
|
url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
|
2019-10-01 13:26:15 +01:00
|
|
|
sha256 = "0d1cyl07w9pvi2pf029kablazks2q9aislzl46b6fq5m1465jc75";
|
2014-09-15 20:54:02 +01:00
|
|
|
};
|
2016-05-04 10:31:23 +01:00
|
|
|
|
2017-11-11 17:44:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2019-09-18 14:36:58 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2019-10-26 14:22:00 +01:00
|
|
|
pkgconfig
|
2017-11-11 17:44:32 +00:00
|
|
|
];
|
2016-05-04 10:31:23 +01:00
|
|
|
|
2016-10-14 09:51:40 +01:00
|
|
|
buildInputs = [
|
2019-09-18 14:36:58 +01:00
|
|
|
alsaLib
|
2019-09-18 15:28:49 +01:00
|
|
|
bc # for the Everything module calculator mode
|
2019-09-18 14:36:58 +01:00
|
|
|
bzip2
|
2017-11-11 17:44:32 +00:00
|
|
|
efl
|
2019-09-18 14:36:58 +01:00
|
|
|
gdbm
|
2017-11-11 17:44:32 +00:00
|
|
|
libXdmcp
|
|
|
|
libXrandr
|
|
|
|
libffi
|
|
|
|
libpthreadstubs
|
2019-09-18 14:36:58 +01:00
|
|
|
libxcb
|
|
|
|
luajit
|
2019-05-28 20:09:34 +01:00
|
|
|
mesa
|
2019-09-18 14:36:58 +01:00
|
|
|
pam
|
|
|
|
pcre
|
|
|
|
xcbutilkeysyms
|
2018-05-18 16:28:16 +01:00
|
|
|
xkeyboard_config
|
2019-08-28 15:13:17 +01:00
|
|
|
]
|
|
|
|
++ stdenv.lib.optional stdenv.isLinux libcap
|
|
|
|
++ stdenv.lib.optional bluetoothSupport bluez5
|
2019-08-28 16:45:09 +01:00
|
|
|
++ stdenv.lib.optional pulseSupport libpulseaudio
|
2019-08-28 15:13:17 +01:00
|
|
|
;
|
2016-05-04 10:31:23 +01:00
|
|
|
|
2018-05-18 16:28:16 +01:00
|
|
|
patches = [
|
|
|
|
# Some programs installed by enlightenment (to set the cpu frequency,
|
|
|
|
# for instance) need root ownership and setuid/setgid permissions, which
|
|
|
|
# are not allowed for files in /nix/store. Instead of allowing the
|
|
|
|
# installer to try to do this, the file $out/e-wrappers.nix is created,
|
|
|
|
# containing the needed configuration for wrapping those programs. It
|
|
|
|
# can be used in the enlightenment module. The idea is:
|
2019-05-28 20:09:34 +01:00
|
|
|
#
|
2018-05-18 16:28:16 +01:00
|
|
|
# 1) rename the original binary adding the extension .orig
|
|
|
|
# 2) wrap the renamed binary at /run/wrappers/bin/
|
|
|
|
# 3) create a new symbolic link using the original binary name (in the
|
|
|
|
# original directory where enlightenment wants it) pointing to the
|
|
|
|
# wrapper
|
|
|
|
|
|
|
|
./enlightenment.suid-exes.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# edge_cc is a binary provided by efl and cannot be found at the directory
|
|
|
|
# given by e_prefix_bin_get(), which is $out/bin
|
|
|
|
|
|
|
|
substituteInPlace src/bin/e_import_config_dialog.c \
|
|
|
|
--replace "e_prefix_bin_get()" "\"${efl}/bin\""
|
2019-09-18 15:28:49 +01:00
|
|
|
|
|
|
|
substituteInPlace src/modules/everything/evry_plug_calc.c \
|
|
|
|
--replace "ecore_exe_pipe_run(\"bc -l\"" "ecore_exe_pipe_run(\"${bc}/bin/bc -l\""
|
2018-05-18 16:28:16 +01:00
|
|
|
'';
|
2014-12-17 09:33:49 +00:00
|
|
|
|
2017-11-11 17:44:32 +00:00
|
|
|
mesonFlags = [ "-Dsystemdunitdir=lib/systemd/user" ];
|
2014-09-15 20:54:02 +01:00
|
|
|
|
2014-12-28 10:40:01 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.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
|
|
|
};
|
|
|
|
}
|