2017-11-11 18:44:32 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, efl,
|
|
|
|
xcbutilkeysyms, libXrandr, libXdmcp, libxcb, libffi, pam, alsaLib,
|
|
|
|
luajit, bzip2, libpthreadstubs, gdbm, libcap, mesa_glu,
|
|
|
|
xkeyboard_config, pcre
|
|
|
|
}:
|
2014-09-15 21:54:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "enlightenment-${version}";
|
2017-11-27 20:11:27 +01:00
|
|
|
version = "0.22.1";
|
2016-07-24 11:58:17 +02:00
|
|
|
|
2014-09-15 21:54:02 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.enlightenment.org/rel/apps/enlightenment/${name}.tar.xz";
|
2017-11-27 20:11:27 +01:00
|
|
|
sha256 = "1q57fz57d0b26z06m1wiq7c1sniwh885b0vs02mk4jgwva46nyr0";
|
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 = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
(pkgconfig.override { vanilla = true; })
|
|
|
|
gettext
|
|
|
|
];
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2016-10-14 10:51:40 +02:00
|
|
|
buildInputs = [
|
2017-11-11 18:44:32 +01:00
|
|
|
efl
|
|
|
|
libXdmcp
|
|
|
|
libxcb
|
|
|
|
xcbutilkeysyms
|
|
|
|
libXrandr
|
|
|
|
libffi
|
|
|
|
pam
|
|
|
|
alsaLib
|
|
|
|
luajit
|
|
|
|
bzip2
|
|
|
|
libpthreadstubs
|
|
|
|
gdbm
|
|
|
|
pcre
|
2016-10-14 10:51:40 +02:00
|
|
|
] ++
|
|
|
|
stdenv.lib.optionals stdenv.isLinux [ libcap ];
|
2016-05-04 11:31:23 +02:00
|
|
|
|
2017-11-11 18:44:32 +01:00
|
|
|
# Instead of setting owner to root and permissions to setuid/setgid
|
|
|
|
# (which is not allowed for files in /nix/store) of some
|
|
|
|
# enlightenment programs, the file $out/e-wrappers.nix is created,
|
|
|
|
# containing the needed configuration for that purpose. It can be
|
|
|
|
# used in the enlightenment module.
|
|
|
|
patches = [ ./enlightenment.suid-exes.patch ];
|
2014-12-17 10:33:49 +01:00
|
|
|
|
2017-11-11 18:44:32 +01:00
|
|
|
mesonFlags = [ "-Dsystemdunitdir=lib/systemd/user" ];
|
2014-09-15 21:54:02 +02:00
|
|
|
|
2014-12-28 11:40:01 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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";
|
2017-11-11 18:44:32 +01: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
|
|
|
};
|
|
|
|
}
|