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