about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-03-06 19:02:36 +0000
committerShea Levy <shea@shealevy.com>2015-03-06 19:02:36 +0000
commit6b53021205cba1074ecddcdd269feb7bad9b34a9 (patch)
tree25b8550cf629ea35224d9a914095a0d08505a49e /pkgs/development/compilers
parent33fbec14b643b47a611e13c4d9bf3858c28568c3 (diff)
parentd1e302121a1cbe4ead2573c8790a15ebec094af4 (diff)
downloadnixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.tar
nixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.tar.gz
nixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.tar.bz2
nixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.tar.lz
nixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.tar.xz
nixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.tar.zst
nixlib-6b53021205cba1074ecddcdd269feb7bad9b34a9.zip
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/ats2/default.nix4
-rw-r--r--pkgs/development/compilers/llvm/3.5/clang.nix11
-rw-r--r--pkgs/development/compilers/openjdk/nonreparenting-wm.patch39
-rw-r--r--pkgs/development/compilers/openjdk/openjdk8.nix25
4 files changed, 23 insertions, 56 deletions
diff --git a/pkgs/development/compilers/ats2/default.nix b/pkgs/development/compilers/ats2/default.nix
index 18f23416e802..43ac75271bea 100644
--- a/pkgs/development/compilers/ats2/default.nix
+++ b/pkgs/development/compilers/ats2/default.nix
@@ -2,11 +2,11 @@
 
 stdenv.mkDerivation rec {
   name    = "ats2-${version}";
-  version = "0.1.4";
+  version = "0.1.9";
 
   src = fetchurl {
     url = "mirror://sourceforge/ats2-lang/ATS2-Postiats-${version}.tgz";
-    sha256 = "174kxdvdgp2rlb0qq7d854n6m9gzy0g8annk3bmbqb23m36n2g39";
+    sha256 = "0zcki97zj9r1dvlfriwfckp9b9z7iavw09q21v6i5ld90hw9588q";
   };
 
   buildInputs = [ gmp ];
diff --git a/pkgs/development/compilers/llvm/3.5/clang.nix b/pkgs/development/compilers/llvm/3.5/clang.nix
index a95b77c08b63..93e0056fb92d 100644
--- a/pkgs/development/compilers/llvm/3.5/clang.nix
+++ b/pkgs/development/compilers/llvm/3.5/clang.nix
@@ -1,6 +1,7 @@
 { stdenv, fetch, cmake, libxml2, libedit, llvm, version, clang-tools-extra_src }:
-
-stdenv.mkDerivation {
+let
+  gcc = if stdenv.cc.cc.isGNU or false then stdenv.cc.cc else stdenv.cc.cc.gcc;
+in stdenv.mkDerivation {
   name = "clang-${version}";
 
   unpackPhase = ''
@@ -17,6 +18,8 @@ stdenv.mkDerivation {
     "-DCMAKE_BUILD_TYPE=Release"
     "-DCMAKE_CXX_FLAGS=-std=c++11"
   ] ++
+  # Maybe with compiler-rt this won't be needed?
+  (stdenv.lib.optional stdenv.isLinux "-DGCC_INSTALL_PREFIX=${gcc}") ++
   (stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include");
 
   patches = [ ./clang-purity.patch ];
@@ -36,6 +39,10 @@ stdenv.mkDerivation {
 
   enableParallelBuilding = true;
 
+  passthru = stdenv.lib.optionalAttrs stdenv.isLinux {
+    inherit gcc;
+  };
+
   meta = {
     description = "A c, c++, objective-c, and objective-c++ frontend for the llvm compiler";
     homepage    = http://llvm.org/;
diff --git a/pkgs/development/compilers/openjdk/nonreparenting-wm.patch b/pkgs/development/compilers/openjdk/nonreparenting-wm.patch
deleted file mode 100644
index 49db6fb1ea6f..000000000000
--- a/pkgs/development/compilers/openjdk/nonreparenting-wm.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- a/jdk/src/solaris/classes/sun/awt/X11/XWM.java	2014-09-06 18:41:39.018530981 -0400

-+++ b/jdk/src/solaris/classes/sun/awt/X11/XWM.java	2014-09-06 18:46:43.098540372 -0400

-@@ -104,7 +104,8 @@

-         COMPIZ_WM = 12,

-         LG3D_WM = 13,

-         CWM_WM = 14,

--        MUTTER_WM = 15;

-+        MUTTER_WM = 15,

-+        OTHER_NONREPARENTING_WM = 16;

-     public String toString() {

-         switch  (WMID) {

-           case NO_WM:

-@@ -596,7 +597,7 @@

-     }

- 

-     static boolean isNonReparentingWM() {

--        return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM);

-+        return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM || XWM.getWMID() == XWM.OTHER_NONREPARENTING_WM);

-     }

- 

-     /*

-@@ -786,6 +787,9 @@

-             } else if (doIsIceWM && isIceWM()) {

-                 awt_wmgr = XWM.ICE_WM;

-             }

-+            else if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {

-+                awt_wmgr = XWM.OTHER_NONREPARENTING_WM;

-+            }

-             /*

-              * We don't check for legacy WM when we already know that WM

-              * supports WIN or _NET wm spec.

-@@ -1332,6 +1336,7 @@

-                   res = new Insets(28, 6, 6, 6);

-                   break;

-               case NO_WM:

-+              case OTHER_NONREPARENTING_WM:

-               case LG3D_WM:

-                   res = zeroInsets;

-                   break;
\ No newline at end of file
diff --git a/pkgs/development/compilers/openjdk/openjdk8.nix b/pkgs/development/compilers/openjdk/openjdk8.nix
index 7ef238e03bc3..55b7ff36f8fa 100644
--- a/pkgs/development/compilers/openjdk/openjdk8.nix
+++ b/pkgs/development/compilers/openjdk/openjdk8.nix
@@ -1,41 +1,41 @@
 { stdenv, fetchurl, cpio, file, which, unzip, zip, xorg, cups, freetype, alsaLib, openjdk, cacert, perl } :
 let
-  update = "31";
-  build = "13";
-  baseurl = "http://hg.openjdk.java.net/jdk8u/jdk8u";
+  update = "40";
+  build = "25";
+  baseurl = "http://hg.openjdk.java.net/jdk8u/jdk8u40";
   repover = "jdk8u${update}-b${build}";
   paxflags = if stdenv.isi686 then "msp" else "m";
   jdk8 = fetchurl {
              url = "${baseurl}/archive/${repover}.tar.gz";
-             sha256 = "824b28c554ce32edbdaa77cc4f21f8ed57542c74c8748b89cd06be43a1537b34";
+             sha256 = "05s5j0rq45n8piymv9c1n0hxr4bk3j8lz6fw2wbp0m8kam6zzpza";
           };
   langtools = fetchurl {
              url = "${baseurl}/langtools/archive/${repover}.tar.gz";
-             sha256 = "3e09a644d2fb38970acf78c72bc201c031d43574b5a3f7e00bec1b11bffec9c4";
+             sha256 = "0p1z38szm63cf5f83697awbqwpf7b8q1ymrqc0v6r9hb5yf0p22r";
           };
   hotspot = fetchurl {
              url = "${baseurl}/hotspot/archive/${repover}.tar.gz";
-             sha256 = "485b1a88b4b44b468e96211de238a5eed80f7472f91977fc27e2f443a8ab8ed3";
+             sha256 = "0sl0ima3zlbd1ai7qrg4msy5ibg64qpwdrv7z4l8cpalwby26y6p";
           };
   corba = fetchurl {
              url = "${baseurl}/corba/archive/${repover}.tar.gz";
-             sha256 = "47b07945d3f534e6b87dc273676b8bcb493292e8769667493bb5febfb5c9f347";
+             sha256 = "1ahvhap8av519813yf20v3hbvg82j9bq3gnqlayng1qggfivsb5s";
           };
   jdk = fetchurl {
              url = "${baseurl}/jdk/archive/${repover}.tar.gz";
-             sha256 = "b3801935199973cc02df02ac2f2587ff0f1989f98af5bf6fe46520a8108c8d6a";
+             sha256 = "0n86fcy1z4z22jcgfnn9agzfi949709hn2x6s8wyhwwa055rjd1a";
           };
   jaxws = fetchurl {
              url = "${baseurl}/jaxws/archive/${repover}.tar.gz";
-             sha256 = "04bb35fd8b071f65014fa1d3b9816886b88e06548eeda27181993b80efb6a0bf";
+             sha256 = "0hp19hq0dw3j8zz4mxd6bjk9zqlyr56fhwzgjwmm56b6pwkcmsn7";
           };
   jaxp = fetchurl {
              url = "${baseurl}/jaxp/archive/${repover}.tar.gz";
-             sha256 = "74bb7a376fa706e4283e235caebbcf9736974a6a4cf97b8c8335d389581965e2";
+             sha256 = "037za0hjiwvzvbzsckfxnrrbak1vbd52pmrnd855vxkik08jxp8c";
           };
   nashorn = fetchurl {
              url = "${baseurl}/nashorn/archive/${repover}.tar.gz";
-             sha256 = "2fbdcb016506de4e86db5813c78b28382df5b601f0e73ffd5465c12519b75fd3";
+             sha256 = "1np8hkg2fmj5s6ipd1vb8x0z6xy00kbi2ipqca9pxzib58caj6b2";
           };
 in
 stdenv.mkDerivation {
@@ -47,7 +47,7 @@ stdenv.mkDerivation {
                   xorg.libXi xorg.libXinerama xorg.libXcursor xorg.lndir
                   cups freetype alsaLib openjdk perl ];
   setSourceRoot = ''
-    sourceRoot="jdk8u-jdk8u${update}-b${build}";
+    sourceRoot="jdk8u${update}-jdk8u${update}-b${build}";
   '';
   prePatch = ''
     # despite --with-override-jdk the build still searchs here
@@ -58,7 +58,6 @@ stdenv.mkDerivation {
     ./fix-java-home.patch
     ./read-truststore-from-env-jdk8.patch
     ./currency-date-range-jdk8.patch
-    ./nonreparenting-wm.patch
   ];
   preConfigure = ''
     chmod +x configure