Skip to content

Commit

Permalink
swt: Fix LFLAGS
Browse files Browse the repository at this point in the history
Passing '-I${foo}/lib' to GCC doesn't seem sane.
  • Loading branch information
dezgeg committed Aug 30, 2016
1 parent aef35c5 commit d755969
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkgs/development/libraries/java/swt/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, jdk, pkgconfig, gtk
{ stdenv, lib, fetchurl, unzip, jdk, pkgconfig, gtk
, libXtst, libXi, mesa, webkit, libsoup, xorg
, pango, gdk_pixbuf, glib
}:
Expand Down Expand Up @@ -37,10 +37,8 @@ in stdenv.mkDerivation rec {

buildInputs = [ unzip jdk pkgconfig gtk libXtst libXi mesa webkit libsoup ];

NIX_LFLAGS = [ "-lX11" "-I${xorg.libX11}/lib"
"-lpango-1.0" "-I${pango}/lib"
"-lgdk_pixbuf-2.0" "-I${gdk_pixbuf}/lib"
"-lglib-2.0" "-I${glib}/lib"];
NIX_LFLAGS = (map (x: "-L${lib.getLib x}/lib") [ xorg.libX11 pango gdk_pixbuf glib ]) ++
[ "-lX11" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lglib-2.0" ];

buildPhase = ''
unzip src.zip -d src
Expand Down

0 comments on commit d755969

Please sign in to comment.