diff options
author | Vincent Ambo <mail@tazj.in> | 2021-05-23T11·33+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-05-24T18·15+0000 |
commit | 3c7d4c74be3490589867fb99fed2c93d00172ca8 (patch) | |
tree | ec5961765712f24c1ed243ac08d5ae44c1e70f66 /third_party | |
parent | c420f122f3f822a2824f7e689b6d6df16f3c0f8d (diff) |
chore(3p/overlays): Remove LLVM11 bump from overlay r/2622
* This was mostly for //third_party/nix and its dependencies which now have been set to use llvmPackages_11 manually. * For //users/grfn/achilles we also manually select the newer LLVM version. * //tools/cheddar doesn't seem to need llvm anymore. * //third_party/buzz also compiles with clang 7.1.0 * replace clang-tools everywhere with new attribute clang-tools_11 For the future we may want to have something similar again, but it may not be necessary to invest too much time into it: nixpkgs is set to upgrade their default llvmPackages to LLVM 11 as well at some point in the near future. Co-Authored-By: sterni <sternenseemann@systemli.org> Change-Id: Id83868dbc476a6c776b59518b856c933f30ea79d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3135 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/abseil_cpp/default.nix | 4 | ||||
-rw-r--r-- | third_party/buzz/default.nix | 1 | ||||
-rw-r--r-- | third_party/glog/default.nix | 4 | ||||
-rw-r--r-- | third_party/grpc/default.nix | 2 | ||||
-rw-r--r-- | third_party/gtest/default.nix | 2 | ||||
-rw-r--r-- | third_party/nix/clangd.nix | 4 | ||||
-rw-r--r-- | third_party/nix/default.nix | 6 | ||||
-rw-r--r-- | third_party/overlays/tvl.nix | 7 | ||||
-rw-r--r-- | third_party/protobuf/default.nix | 4 | ||||
-rw-r--r-- | third_party/rapidcheck/default.nix | 2 |
10 files changed, 16 insertions, 20 deletions
diff --git a/third_party/abseil_cpp/default.nix b/third_party/abseil_cpp/default.nix index e154d3c95ddb..5b99fbc56f1d 100644 --- a/third_party/abseil_cpp/default.nix +++ b/third_party/abseil_cpp/default.nix @@ -1,7 +1,7 @@ { pkgs, lib, ... }: -let inherit (pkgs) cmake llvmPackages; -in llvmPackages.libcxxStdenv.mkDerivation rec { +let inherit (pkgs) cmake llvmPackages_11; +in llvmPackages_11.libcxxStdenv.mkDerivation rec { pname = "abseil-cpp"; version = "20200519-768eb2ca+tvl-1"; src = ./.; diff --git a/third_party/buzz/default.nix b/third_party/buzz/default.nix index ad533feed9d6..fd8c0b7fce15 100644 --- a/third_party/buzz/default.nix +++ b/third_party/buzz/default.nix @@ -21,7 +21,6 @@ depot.third_party.naersk.buildPackage { gtk3 dbus-glib libappindicator-gtk3 - clang_11 llvmPackages.llvm llvmPackages.bintools llvmPackages.clang diff --git a/third_party/glog/default.nix b/third_party/glog/default.nix index 575821cb49d6..9fe9ce484ceb 100644 --- a/third_party/glog/default.nix +++ b/third_party/glog/default.nix @@ -1,7 +1,7 @@ { pkgs, lib, ... }: -let inherit (pkgs) llvmPackages cmake; -in llvmPackages.libcxxStdenv.mkDerivation { +let inherit (pkgs) llvmPackages_11 cmake; +in llvmPackages_11.libcxxStdenv.mkDerivation { name = "glog"; version = "20200527-unstable"; src = ./.; diff --git a/third_party/grpc/default.nix b/third_party/grpc/default.nix index f8fd1ac89639..84411369299b 100644 --- a/third_party/grpc/default.nix +++ b/third_party/grpc/default.nix @@ -2,7 +2,7 @@ (pkgs.grpc.override { protobuf = depot.third_party.protobuf; - stdenv = pkgs.llvmPackages.libcxxStdenv; + stdenv = pkgs.llvmPackages_11.libcxxStdenv; abseil-cpp = depot.third_party.abseil_cpp; }).overrideAttrs(orig: rec { cmakeFlags = orig.cmakeFlags ++ [ diff --git a/third_party/gtest/default.nix b/third_party/gtest/default.nix index f320c29d234b..5491450aa314 100644 --- a/third_party/gtest/default.nix +++ b/third_party/gtest/default.nix @@ -1,7 +1,7 @@ { pkgs, ... }: (pkgs.gtest.override { - stdenv = pkgs.llvmPackages.libcxxStdenv; + stdenv = pkgs.llvmPackages_11.libcxxStdenv; }).overrideAttrs(_: { src = pkgs.fetchFromGitHub { owner = "google"; diff --git a/third_party/nix/clangd.nix b/third_party/nix/clangd.nix index 70d2fa321476..7a29819b10ee 100644 --- a/third_party/nix/clangd.nix +++ b/third_party/nix/clangd.nix @@ -23,8 +23,8 @@ pkgs.writeShellScriptBin "nix-clangd" '' export CPATH=''${CPATH}''${CPATH:+':'}:$(buildcpath ''${NIX_CFLAGS_COMPILE}) export CPATH=${pkgs.glibc.dev}/include''${CPATH:+':'}''${CPATH} - export CPLUS_INCLUDE_PATH=${pkgs.llvmPackages.libcxx}/include/c++/v1:''${CPATH} + export CPLUS_INCLUDE_PATH=${pkgs.llvmPackages_11.libcxx}/include/c++/v1:''${CPATH} # TODO(tazjin): Configurable commands directory? - exec -a clangd ${pkgs.llvmPackages.clang-unwrapped}/bin/clangd -cross-file-rename $@ + exec -a clangd ${pkgs.llvmPackages_11.clang-unwrapped}/bin/clangd -cross-file-rename $@ '' diff --git a/third_party/nix/default.nix b/third_party/nix/default.nix index df6a6da72ff7..42b0324e8ea9 100644 --- a/third_party/nix/default.nix +++ b/third_party/nix/default.nix @@ -57,14 +57,14 @@ let cp ${pkgs.busybox}/bin/busybox $out/bin ''; -in lib.fix (self: pkgs.llvmPackages.libcxxStdenv.mkDerivation { +in lib.fix (self: pkgs.llvmPackages_11.libcxxStdenv.mkDerivation { pname = "tvix"; version = "2.3.4"; inherit src; nativeBuildInputs = with pkgs; [ bison - clang-tools + clang-tools_11 cmake libxml2 libxslt @@ -143,7 +143,7 @@ in lib.fix (self: pkgs.llvmPackages.libcxxStdenv.mkDerivation { NIX_PROTO_SRCS = protoSrcs; # Work around broken system header include flags in the cxx toolchain. - LIBCXX_INCLUDE = "${pkgs.llvmPackages.libcxx}/include/c++/v1"; + LIBCXX_INCLUDE = "${pkgs.llvmPackages_11.libcxx}/include/c++/v1"; SANDBOX_SHELL="${pkgs.busybox}/bin/busybox"; diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix index 4abb8f7485d5..3482b7416b4e 100644 --- a/third_party/overlays/tvl.nix +++ b/third_party/overlays/tvl.nix @@ -18,12 +18,9 @@ self: super: { }; }; - # Use LLVM 11 - llvmPackages = self.llvmPackages_11; - clangStdenv = self.llvmPackages_11.stdenv; - clang-tools = (super.clang-tools.override { + clang-tools_11 = self.clang-tools.override { llvmPackages = self.llvmPackages_11; - }); + }; # Add our Emacs packages to the fixpoint emacsPackagesFor = emacs: ( diff --git a/third_party/protobuf/default.nix b/third_party/protobuf/default.nix index c9e34b2fc309..569cb269b204 100644 --- a/third_party/protobuf/default.nix +++ b/third_party/protobuf/default.nix @@ -4,9 +4,9 @@ pkgs.callPackage "${pkgs.path}/pkgs/development/libraries/protobuf/generic-v3.nix" { version = "3.12.2"; sha256 = "1lp368aa206vpic9fmax4k6llnmf28plfvkkm4vqhgphmjqykvl2"; - stdenv = pkgs.llvmPackages.libcxxStdenv; + stdenv = pkgs.llvmPackages_11.libcxxStdenv; buildPackages = { inherit (pkgs) which; - stdenv = pkgs.llvmPackages.libcxxStdenv; + stdenv = pkgs.llvmPackages_11.libcxxStdenv; }; } diff --git a/third_party/rapidcheck/default.nix b/third_party/rapidcheck/default.nix index a442f7f99116..79fd7fa123b3 100644 --- a/third_party/rapidcheck/default.nix +++ b/third_party/rapidcheck/default.nix @@ -1,7 +1,7 @@ { pkgs, ... }: (pkgs.callPackage "${pkgs.path}/pkgs/development/libraries/rapidcheck" { - stdenv = pkgs.llvmPackages.libcxxStdenv; + stdenv = pkgs.llvmPackages_11.libcxxStdenv; }).overrideAttrs (attrs: rec { # follows the versioning scheme of nixpkgs, since rapidcheck does not # provide versioned releases |