swt: 3.7.2 -> 4.5

This commit is contained in:
Franz Pletz 2016-09-04 07:54:41 +02:00
parent 21cf4641bf
commit f28fd23d76
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -7,20 +7,20 @@ let
platformMap = {
"x86_64-linux" =
{ platform = "gtk-linux-x86_64";
sha256 = "0hq48zfqx2p0fqr0rlabnz2pdj0874k19918a4dbj0fhzkhrh959"; };
sha256 = "1qq0pjll6030v4ml0hifcaaik7sx3fl7ghybfdw95vsvxafwp2ff"; };
"i686-linux" =
{ platform = "gtk-linux-x86";
sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf"; };
sha256 = "03mhzraikcs4fsz7d3h5af9pw1bbcfd6dglsvbk2ciwimy9zj30q"; };
"x86_64-darwin" =
{ platform = "cocoa-macosx-x86_64";
sha256 = "1565gg63ssrl04fh355vf9mnmq8qwwki3zpc3ybm7bylgkfwc9h4"; };
sha256 = "00k1mfbncvyh8klgmk0891w8jwnd5niqb16j1j8yacrm2smmlb05"; };
};
metadata = assert platformMap ? ${stdenv.system}; platformMap.${stdenv.system};
in stdenv.mkDerivation rec {
version = "3.7.2";
fullVersion = "${version}-201202080800";
version = "4.5";
fullVersion = "${version}-201506032000";
name = "swt-${version}";
hardeningDisable = [ "format" ];
@ -29,13 +29,14 @@ in stdenv.mkDerivation rec {
# releases of SWT. So we just grab a binary release and extract
# "src.zip" from that.
src = fetchurl {
url = "http://archive.eclipse.org/eclipse/downloads/drops/R-${fullVersion}/${name}-${metadata.platform}.zip";
url = "http://archive.eclipse.org/eclipse/downloads/drops4/R-${fullVersion}/${name}-${metadata.platform}.zip";
sha256 = metadata.sha256;
};
sourceRoot = ".";
buildInputs = [ unzip jdk pkgconfig gtk libXt libXtst libXi mesa webkit libsoup ];
nativeBuildInputs = [ unzip pkgconfig ];
buildInputs = [ jdk gtk libXt libXtst libXi mesa webkit libsoup ];
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" ];