mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
98 lines
2.3 KiB
Nix
98 lines
2.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gettext,
|
|
alsa-lib,
|
|
acpid,
|
|
bc,
|
|
ddcutil,
|
|
efl,
|
|
libexif,
|
|
pam,
|
|
xkeyboard_config,
|
|
udisks2,
|
|
waylandSupport ? false,
|
|
wayland-protocols,
|
|
xwayland,
|
|
bluetoothSupport ? true,
|
|
bluez5,
|
|
pulseSupport ? !stdenv.hostPlatform.isDarwin,
|
|
libpulseaudio,
|
|
directoryListingUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "enlightenment";
|
|
version = "0.26.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-EbbvBnG+X+rWiL9VTDCiocaDSTrRDF/jEV/7RlVCToQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
alsa-lib
|
|
acpid # for systems with ACPI for lid events, AC/Battery plug in/out etc
|
|
bc # for the Everything module calculator mode
|
|
ddcutil # specifically libddcutil.so.2 for backlight control
|
|
efl
|
|
libexif
|
|
pam
|
|
xkeyboard_config
|
|
udisks2 # for removable storage mounting/unmounting
|
|
]
|
|
++ lib.optional bluetoothSupport bluez5 # for bluetooth configuration and control
|
|
++ lib.optional pulseSupport libpulseaudio # for proper audio device control and redirection
|
|
++ lib.optionals waylandSupport [
|
|
wayland-protocols
|
|
xwayland
|
|
];
|
|
|
|
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
|
|
./0003-setuid-missing-path.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\""
|
|
'';
|
|
|
|
mesonFlags = [
|
|
"-D systemdunitdir=lib/systemd/user"
|
|
] ++ lib.optional waylandSupport "-Dwl=true";
|
|
|
|
passthru.providedSessions = [ "enlightenment" ];
|
|
|
|
passthru.updateScript = directoryListingUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Compositing Window Manager and Desktop Shell";
|
|
homepage = "https://www.enlightenment.org";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers =
|
|
with maintainers;
|
|
[
|
|
matejc
|
|
ftrvxmtrx
|
|
]
|
|
++ teams.enlightenment.members;
|
|
};
|
|
}
|