From 128875b501bc2989617ae553317b80faa556d752 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 15 Aug 2019 16:11:30 +0100 Subject: chore: Remove remaining Bazel-related files --- .../bazel/rules_haskell/nixpkgs/cc-toolchain.nix | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 third_party/bazel/rules_haskell/nixpkgs/cc-toolchain.nix (limited to 'third_party/bazel/rules_haskell/nixpkgs/cc-toolchain.nix') diff --git a/third_party/bazel/rules_haskell/nixpkgs/cc-toolchain.nix b/third_party/bazel/rules_haskell/nixpkgs/cc-toolchain.nix deleted file mode 100644 index 1795dc55b71b..000000000000 --- a/third_party/bazel/rules_haskell/nixpkgs/cc-toolchain.nix +++ /dev/null @@ -1,36 +0,0 @@ -with import ./. {}; -with darwin.apple_sdk.frameworks; - -# XXX On Darwin, workaround -# https://github.com/NixOS/nixpkgs/issues/42059. See also -# https://github.com/NixOS/nixpkgs/pull/41589. -let cc = runCommand "cc-wrapper-bazel" { - buildInputs = [ pkgs.stdenv.cc makeWrapper ]; - } - '' - mkdir -p $out/bin - - # Copy the content of pkgs.stdenv.cc - for i in ${pkgs.stdenv.cc}/bin/* - do - ln -sf $i $out/bin - done - - # Override clang - rm $out/bin/clang - - makeWrapper ${pkgs.stdenv.cc}/bin/clang $out/bin/clang \ - --add-flags "-isystem ${llvmPackages.libcxx}/include/c++/v1 \ - -F${CoreFoundation}/Library/Frameworks \ - -F${CoreServices}/Library/Frameworks \ - -F${Security}/Library/Frameworks \ - -F${Foundation}/Library/Frameworks \ - -L${libcxx}/lib \ - -L${darwin.libobjc}/lib" - ''; - stdenv = if pkgs.stdenv.isDarwin then overrideCC pkgs.stdenv cc else pkgs.stdenv; -in -buildEnv { - name = "bazel-cc-toolchain"; - paths = [ stdenv.cc ] ++ (if stdenv.isDarwin then [ ] else [ binutils ]); -} -- cgit 1.4.1