summary refs log tree commit diff
path: root/pkgs/desktops/enlightenment/efl.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-03-12 02:43:40 +0300
committerNikolay Amiantov <ab@fmap.me>2016-03-12 03:10:37 +0300
commite358d9498c493a3e53769e0514afed8836ae0b3e (patch)
tree2b7bb4204b1de01e1d9415cfd6b59c56873e899f /pkgs/desktops/enlightenment/efl.nix
parent0bf8a1a86df67649893726d50761567121330006 (diff)
downloadnixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.tar
nixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.tar.gz
nixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.tar.bz2
nixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.tar.lz
nixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.tar.xz
nixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.tar.zst
nixpkgs-e358d9498c493a3e53769e0514afed8836ae0b3e.zip
e19: rename to enlightenment, drop old one
Diffstat (limited to 'pkgs/desktops/enlightenment/efl.nix')
-rw-r--r--pkgs/desktops/enlightenment/efl.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/desktops/enlightenment/efl.nix b/pkgs/desktops/enlightenment/efl.nix
new file mode 100644
index 00000000000..dd9c837ed8b
--- /dev/null
+++ b/pkgs/desktops/enlightenment/efl.nix
@@ -0,0 +1,56 @@
+{ stdenv, fetchurl, pkgconfig, openssl, libjpeg, zlib, freetype, fontconfig, fribidi, SDL2, SDL, mesa, giflib, libpng, libtiff, glib, gst_all_1, libpulseaudio, libsndfile, xorg, libdrm, libxkbcommon, udev, utillinux, dbus, bullet, luajit, python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg, dbus_libs, alsaLib, poppler, libraw, libspectre, xineLib, libwebp, curl, libinput }:
+
+
+stdenv.mkDerivation rec {
+  name = "efl-${version}";
+  version = "1.16.1";
+  src = fetchurl {
+    url = "http://download.enlightenment.org/rel/libs/efl/${name}.tar.xz";
+    sha256 = "116s4lcfj5lrfhyvvka3np9glqyrh21cyl9rhw7al0wgb60vw0gg";
+  };
+
+  buildInputs = [ pkgconfig openssl zlib freetype fontconfig fribidi SDL2 SDL mesa
+    giflib libpng libtiff glib gst_all_1.gstreamer gst_all_1.gst-plugins-base
+    gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.printproto
+    xorg.libX11 udev utillinux ];
+
+  propagatedBuildInputs = [ libxkbcommon python27Packages.dbus dbus libjpeg xorg.libXcomposite
+    xorg.libXdamage xorg.libXinerama xorg.libXp xorg.libXtst xorg.libXi xorg.libXext
+    bullet xorg.libXScrnSaver xorg.libXrender xorg.libXfixes xorg.libXrandr
+    xorg.libxkbfile xorg.libxcb xorg.xcbutilkeysyms openjpeg doxygen expat luajit
+    harfbuzz jbig2dec librsvg dbus_libs alsaLib poppler libraw libspectre xineLib libwebp curl libdrm
+    libinput ];
+
+  # ac_ct_CXX must be set to random value, because then it skips some magic which does alternative searching for g++
+  configureFlags = [ "--with-tests=none" "--enable-sdl" "--enable-drm" "--with-opengl=full"
+    "--enable-image-loader-jp2k" "--enable-xinput22" "--enable-multisense" "--enable-systemd"
+    "--enable-image-loader-webp" "--enable-harfbuzz" "--enable-xine" "--enable-fb"
+    "--disable-tslib" "--with-systemdunitdir=$out/systemd/user"
+    "ac_ct_CXX=foo" ];
+
+  NIX_CFLAGS_COMPILE = [ "-I${xorg.libXtst}" "-I${dbus_libs}/include/dbus-1.0" "-I${dbus_libs}/lib/dbus-1.0/include" ];
+
+  patches = [ ./efl-elua.patch ];
+
+  preConfigure = ''
+    export PKG_CONFIG_PATH="${gst_all_1.gst-plugins-base}/lib/pkgconfig/gstreamer-video-0.10.pc:$PKG_CONFIG_PATH"
+    export LD_LIBRARY_PATH="$(pwd)/src/lib/eina/.libs:$LD_LIBRARY_PATH"
+  '';
+
+  postInstall = ''
+    substituteInPlace "$out/share/elua/core/util.lua" --replace '$out' "$out"
+    modules=$(for i in "$out/include/"*/; do printf ' -I''${includedir}/'`basename $i`; done)
+    substituteInPlace "$out/lib/pkgconfig/efl.pc" --replace 'Cflags: -I''${includedir}/efl-1' \
+      'Cflags: -I''${includedir}/eina-1/eina'"$modules"
+  '';
+
+  enableParallelBuilding = true;
+
+  meta = {
+    description = "Enlightenment Core libraries";
+    homepage = http://enlightenment.org/;
+    maintainers = with stdenv.lib.maintainers; [ matejc tstrobel ftrvxmtrx ];
+    platforms = stdenv.lib.platforms.linux;
+    license = stdenv.lib.licenses.lgpl3;
+  };
+}