Update swt installation
Permit the installation for x86_64
This commit is contained in:
parent
c410664d8b
commit
4c985c26af
|
@ -6,16 +6,24 @@
|
||||||
, libsoup
|
, libsoup
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
let metadata = if stdenv.system == "i686-linux"
|
||||||
name = "swt-3.7.2-201202080800";
|
then { arch = "x86"; sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf"; }
|
||||||
|
else if stdenv.system == "x86_64-linux"
|
||||||
|
then { arch = "x86_64"; sha256 = "0hq48zfqx2p0fqr0rlabnz2pdj0874k19918a4dbj0fhzkhrh959"; }
|
||||||
|
else { };
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
version = "3.7.2";
|
||||||
|
fullVersion = "${version}-201202080800";
|
||||||
|
name = "swt-${version}";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
|
|
||||||
# Alas, the Eclipse Project apparently doesn't produce source-only
|
# Alas, the Eclipse Project apparently doesn't produce source-only
|
||||||
# releases of SWT. So we just grab a binary release and extract
|
# releases of SWT. So we just grab a binary release and extract
|
||||||
# "src.zip" from that.
|
# "src.zip" from that.
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://archive.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/swt-3.7.2-gtk-linux-x86.zip";
|
url = "http://archive.eclipse.org/eclipse/downloads/drops/R-${fullVersion}/${name}-gtk-linux-${metadata.arch}.zip";
|
||||||
sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf";
|
sha256 = metadata.sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [unzip jdk pkgconfig gtk libXtst libXi mesa webkit libsoup];
|
buildInputs = [unzip jdk pkgconfig gtk libXtst libXi mesa webkit libsoup];
|
||||||
|
|
Loading…
Reference in a new issue