nixpkgs-suyu/pkgs/desktops/enlightenment/enlightenment.nix

76 lines
1.9 KiB
Nix
Raw Normal View History

2020-05-14 03:51:07 +02:00
{ stdenv
, fetchurl
, meson
, ninja
, pkgconfig
, gettext
, alsaLib
, acpid
2020-05-14 03:51:07 +02:00
, bc
, ddcutil
2020-05-14 03:51:07 +02:00
, efl
, pam
, xkeyboard_config
, udisks2
2020-05-14 03:51:07 +02:00
, bluetoothSupport ? true, bluez5
, pulseSupport ? !stdenv.isDarwin, libpulseaudio
}:
stdenv.mkDerivation rec {
pname = "enlightenment";
version = "0.24.0";
2016-07-24 11:58:17 +02:00
src = fetchurl {
url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
sha256 = "01053hxdmyjfb6gmz1pqmw0llrgc4356np515h5vsqcn59mhvfz7";
};
2016-05-04 11:31:23 +02:00
nativeBuildInputs = [
gettext
meson
ninja
pkgconfig
];
2016-05-04 11:31:23 +02:00
2016-10-14 10:51:40 +02:00
buildInputs = [
alsaLib
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
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 11:31:23 +02: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 03:51:07 +02:00
mesonFlags = [
"-D systemdunitdir=lib/systemd/user"
];
passthru.providedSessions = [ "enlightenment" ];
2016-10-14 10:51:40 +02:00
meta = with stdenv.lib; {
description = "The Compositing Window Manager and Desktop Shell";
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 ];
};
}