Added Darwin case for java.swt. This still can't be built on Darwin, but at least this derivation won't cause nix-env -qas to crash on Darwin.
This commit is contained in:
parent
47df54d618
commit
e8d85753cf
@ -6,11 +6,23 @@
|
|||||||
, libsoup
|
, libsoup
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let metadata = if stdenv.system == "i686-linux"
|
let
|
||||||
then { arch = "x86"; sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf"; }
|
metadata =
|
||||||
else if stdenv.system == "x86_64-linux"
|
if stdenv.isLinux then
|
||||||
then { arch = "x86_64"; sha256 = "0hq48zfqx2p0fqr0rlabnz2pdj0874k19918a4dbj0fhzkhrh959"; }
|
if stdenv.isx86_64 then
|
||||||
|
{ platform = "gtk-linux-x86_64";
|
||||||
|
sha256 = "0hq48zfqx2p0fqr0rlabnz2pdj0874k19918a4dbj0fhzkhrh959"; }
|
||||||
|
else if stdenv.isi686 then
|
||||||
|
{ platform = "gtk-linux-x86";
|
||||||
|
sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf"; }
|
||||||
|
else { }
|
||||||
|
else if stdenv.isDarwin then
|
||||||
|
if stdenv.isx86_64 then
|
||||||
|
{ platform = "cocoa-macosx-x86_64";
|
||||||
|
sha256 = "1565gg63ssrl04fh355vf9mnmq8qwwki3zpc3ybm7bylgkfwc9h4"; }
|
||||||
|
else { }
|
||||||
else { };
|
else { };
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
version = "3.7.2";
|
version = "3.7.2";
|
||||||
fullVersion = "${version}-201202080800";
|
fullVersion = "${version}-201202080800";
|
||||||
@ -22,7 +34,7 @@ in stdenv.mkDerivation rec {
|
|||||||
# 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-${fullVersion}/${name}-gtk-linux-${metadata.arch}.zip";
|
url = "http://archive.eclipse.org/eclipse/downloads/drops/R-${fullVersion}/${name}-${metadata.platform}.zip";
|
||||||
sha256 = metadata.sha256;
|
sha256 = metadata.sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user