nixpkgs/pkgs/desktops/enlightenment/enlightenment.nix

76 lines
1.9 KiB
Nix
Raw Normal View History

2020-05-14 01:51:07 +00:00
{ stdenv
, fetchurl
, meson
, ninja
, pkg-config
2020-05-14 01:51:07 +00:00
, gettext
, alsaLib
, acpid
2020-05-14 01:51:07 +00:00
, bc
, ddcutil
2020-05-14 01:51:07 +00:00
, efl
, pam
, xkeyboard_config
, udisks2
2020-05-14 01:51:07 +00:00
, bluetoothSupport ? true, bluez5
, pulseSupport ? !stdenv.isDarwin, libpulseaudio
}:
stdenv.mkDerivation rec {
pname = "enlightenment";
version = "0.24.1";
2016-07-24 09:58:17 +00:00
src = fetchurl {
url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
sha256 = "02aadl5fqvpmpjnisrc4aw7ffwyp1109y4k1wvmp33ciihbvdqmf";
};
2016-05-04 09:31:23 +00:00
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
];
2016-05-04 09:31:23 +00:00
2016-10-14 08:51:40 +00:00
buildInputs = [
alsaLib
acpid # for systems with ACPI for lid events, AC/Battery plug in/out etc
2020-05-14 01:51:07 +00:00
bc # for the Everything module calculator mode
ddcutil # specifically libddcutil.so.2 for backlight control
efl
pam
xkeyboard_config
udisks2 # for removable storage mounting/unmounting
]
++ stdenv.lib.optional bluetoothSupport bluez5 # for bluetooth configuration and control
++ stdenv.lib.optional pulseSupport libpulseaudio # for proper audio device control and redirection
;
2016-05-04 09:31:23 +00:00
patches = [
# 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
];
postPatch = ''
substituteInPlace src/modules/everything/evry_plug_calc.c \
--replace "ecore_exe_pipe_run(\"bc -l\"" "ecore_exe_pipe_run(\"${bc}/bin/bc -l\""
'';
2020-05-14 01:51:07 +00:00
mesonFlags = [
"-D systemdunitdir=lib/systemd/user"
];
passthru.providedSessions = [ "enlightenment" ];
2016-10-14 08:51:40 +00:00
meta = with stdenv.lib; {
description = "The Compositing Window Manager and Desktop Shell";
homepage = "https://www.enlightenment.org";
2016-10-14 08:51:40 +00:00
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ matejc tstrobel ftrvxmtrx romildo ];
};
}