2020-05-14 03:51:07 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gettext
|
|
|
|
, alsaLib
|
2020-05-22 14:37:20 +02:00
|
|
|
, acpid
|
2020-05-14 03:51:07 +02:00
|
|
|
, bc
|
2020-05-22 14:37:20 +02:00
|
|
|
, ddcutil
|
2020-05-14 03:51:07 +02:00
|
|
|
, efl
|
|
|
|
, pam
|
|
|
|
, xkeyboard_config
|
2020-05-22 14:37:20 +02:00
|
|
|
, udisks2
|
2019-08-28 16:13:17 +02:00
|
|
|
|
2020-05-14 03:51:07 +02:00
|
|
|
, bluetoothSupport ? true, bluez5
|
|
|
|
, pulseSupport ? !stdenv.isDarwin, libpulseaudio
|
2017-11-11 18:44:32 +01:00
|
|
|
}:
|
2014-09-15 21:54:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-28 15:19:09 +02:00
|
|
|
pname = "enlightenment";
|
2020-05-14 13:36:52 +02:00
|
|
|
version = "0.24.0";
|
2016-07-24 11:58:17 +02:00
|
|
|
|
2014-09-15 21:54:02 +02:00
|
|
|
src = fetchurl {
|
2019-08-28 15:19:09 +02:00
|
|
|
url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
|
2020-05-14 13:36:52 +02:00
|
|
|
sha256 = "01053hxdmyjfb6gmz1pqmw0llrgc4356np515h5vsqcn59mhvfz7";
|
2014-09-15 21:54:02 +02:00
|
|
|
};
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2017-11-11 18:44:32 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
2019-09-18 15:36:58 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2019-10-26 15:22:00 +02:00
|
|
|
pkgconfig
|
2017-11-11 18:44:32 +01:00
|
|
|
];
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2016-10-14 10:51:40 +02:00
|
|
|
buildInputs = [
|
2019-09-18 15:36:58 +02:00
|
|
|
alsaLib
|
2020-05-22 14:37:20 +02:00
|
|
|
acpid # for systems with ACPI for lid events, AC/Battery plug in/out etc
|
2020-05-14 03:51:07 +02:00
|
|
|
bc # for the Everything module calculator mode
|
2020-05-22 14:37:20 +02:00
|
|
|
ddcutil # specifically libddcutil.so.2 for backlight control
|
2017-11-11 18:44:32 +01:00
|
|
|
efl
|
2019-09-18 15:36:58 +02:00
|
|
|
pam
|
2018-05-18 17:28:16 +02:00
|
|
|
xkeyboard_config
|
2020-05-22 14:37:20 +02:00
|
|
|
udisks2 # for removable storage mounting/unmounting
|
2019-08-28 16:13:17 +02:00
|
|
|
]
|
2020-05-22 14:37:20 +02: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 16:13:17 +02:00
|
|
|
;
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2018-05-18 17:28:16 +02:00
|
|
|
patches = [
|
2020-05-14 13:37:55 +02: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
|
2018-05-18 17:28:16 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-09-18 16:28:49 +02: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 17:28:16 +02:00
|
|
|
'';
|
2014-12-17 10:33:49 +01:00
|
|
|
|
2020-05-14 03:51:07 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-D systemdunitdir=lib/systemd/user"
|
|
|
|
];
|
2014-09-15 21:54:02 +02:00
|
|
|
|
2020-05-22 21:08:07 +02:00
|
|
|
passthru.providedSessions = [ "enlightenment" ];
|
|
|
|
|
2016-10-14 10:51:40 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-15 21:54:02 +02:00
|
|
|
description = "The Compositing Window Manager and Desktop Shell";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.enlightenment.org";
|
2016-10-14 10:51:40 +02:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
|
2014-09-15 21:54:02 +02:00
|
|
|
};
|
|
|
|
}
|