2020-05-14 02:51:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-06-01 11:35:13 +01:00
|
|
|
, pkg-config
|
2020-05-14 02:51:07 +01:00
|
|
|
, gettext
|
|
|
|
, alsaLib
|
2020-05-22 13:37:20 +01:00
|
|
|
, acpid
|
2020-05-14 02:51:07 +01:00
|
|
|
, bc
|
2020-05-22 13:37:20 +01:00
|
|
|
, ddcutil
|
2020-05-14 02:51:07 +01:00
|
|
|
, efl
|
|
|
|
, pam
|
|
|
|
, xkeyboard_config
|
2020-05-22 13:37:20 +01:00
|
|
|
, udisks2
|
2019-08-28 15:13:17 +01:00
|
|
|
|
2020-05-14 02:51:07 +01:00
|
|
|
, bluetoothSupport ? true, bluez5
|
|
|
|
, 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";
|
2020-06-01 11:35:13 +01:00
|
|
|
version = "0.24.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";
|
2020-06-01 11:35:13 +01:00
|
|
|
sha256 = "02aadl5fqvpmpjnisrc4aw7ffwyp1109y4k1wvmp33ciihbvdqmf";
|
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
|
2020-06-01 11:35:13 +01:00
|
|
|
pkg-config
|
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
|
2020-05-22 13:37:20 +01:00
|
|
|
acpid # for systems with ACPI for lid events, AC/Battery plug in/out etc
|
2020-05-14 02:51:07 +01:00
|
|
|
bc # for the Everything module calculator mode
|
2020-05-22 13:37:20 +01:00
|
|
|
ddcutil # specifically libddcutil.so.2 for backlight control
|
2017-11-11 17:44:32 +00:00
|
|
|
efl
|
2019-09-18 14:36:58 +01:00
|
|
|
pam
|
2018-05-18 16:28:16 +01:00
|
|
|
xkeyboard_config
|
2020-05-22 13:37:20 +01:00
|
|
|
udisks2 # for removable storage mounting/unmounting
|
2019-08-28 15:13:17 +01:00
|
|
|
]
|
2020-05-22 13:37:20 +01:00
|
|
|
++ stdenv.lib.optional bluetoothSupport bluez5 # for bluetooth configuration and control
|
|
|
|
++ stdenv.lib.optional pulseSupport libpulseaudio # for proper audio device control and redirection
|
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 = [
|
2020-05-14 12:37:55 +01:00
|
|
|
# Executables cannot be made setuid in nix store. They should be
|
|
|
|
# wrapped in the enlightenment service module, and the wrapped
|
|
|
|
# executables should be used instead.
|
|
|
|
./0001-wrapped-setuid-executables.patch
|
2020-07-02 03:48:44 +01:00
|
|
|
./0003-setuid-missing-path.patch
|
2018-05-18 16:28:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
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
|
|
|
|
2020-05-14 02:51:07 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-D systemdunitdir=lib/systemd/user"
|
|
|
|
];
|
2014-09-15 20:54:02 +01:00
|
|
|
|
2020-05-22 20:08:07 +01:00
|
|
|
passthru.providedSessions = [ "enlightenment" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|