Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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.

+18 -6
+18 -6
pkgs/development/libraries/java/swt/default.nix
··· 6 , libsoup 7 }: 8 9 - let metadata = if stdenv.system == "i686-linux" 10 - then { arch = "x86"; sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf"; } 11 - else if stdenv.system == "x86_64-linux" 12 - then { arch = "x86_64"; sha256 = "0hq48zfqx2p0fqr0rlabnz2pdj0874k19918a4dbj0fhzkhrh959"; } 13 - else { }; 14 in stdenv.mkDerivation rec { 15 version = "3.7.2"; 16 fullVersion = "${version}-201202080800"; ··· 22 # releases of SWT. So we just grab a binary release and extract 23 # "src.zip" from that. 24 src = fetchurl { 25 - url = "http://archive.eclipse.org/eclipse/downloads/drops/R-${fullVersion}/${name}-gtk-linux-${metadata.arch}.zip"; 26 sha256 = metadata.sha256; 27 }; 28
··· 6 , libsoup 7 }: 8 9 + let 10 + metadata = 11 + if stdenv.isLinux then 12 + if stdenv.isx86_64 then 13 + { platform = "gtk-linux-x86_64"; 14 + sha256 = "0hq48zfqx2p0fqr0rlabnz2pdj0874k19918a4dbj0fhzkhrh959"; } 15 + else if stdenv.isi686 then 16 + { platform = "gtk-linux-x86"; 17 + sha256 = "10si8kmc7c9qmbpzs76609wkfb784pln3qpmra73gb3fbk7z8caf"; } 18 + else { } 19 + else if stdenv.isDarwin then 20 + if stdenv.isx86_64 then 21 + { platform = "cocoa-macosx-x86_64"; 22 + sha256 = "1565gg63ssrl04fh355vf9mnmq8qwwki3zpc3ybm7bylgkfwc9h4"; } 23 + else { } 24 + else { }; 25 + 26 in stdenv.mkDerivation rec { 27 version = "3.7.2"; 28 fullVersion = "${version}-201202080800"; ··· 34 # releases of SWT. So we just grab a binary release and extract 35 # "src.zip" from that. 36 src = fetchurl { 37 + url = "http://archive.eclipse.org/eclipse/downloads/drops/R-${fullVersion}/${name}-${metadata.platform}.zip"; 38 sha256 = metadata.sha256; 39 }; 40