Skip to content

Commit

Permalink
libclc: use clang-4
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Feb 12, 2018
1 parent cd121fd commit 81674e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/libraries/libclc/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python2, llvm_4, clang }:
{ stdenv, fetchFromGitHub, python, llvm, clang }:

stdenv.mkDerivation {
name = "libclc-2017-02-25";
Expand All @@ -10,15 +10,16 @@ stdenv.mkDerivation {
sha256 = "1c20jyh3sdwd9r37zs4vvppmsx8vhf2xbx0cxsrc27bhx5245p0s";
};

buildInputs = [ python2 llvm_4 clang ];
nativeBuildInputs = [ python ];
buildInputs = [ llvm ];

postPatch = ''
sed -i 's,llvm_clang =.*,llvm_clang = "${clang}/bin/clang",' configure.py
sed -i 's,cxx_compiler =.*,cxx_compiler = "${clang}/bin/clang++",' configure.py
'';

configurePhase = ''
${python2.interpreter} ./configure.py --prefix=$out
${python.interpreter} ./configure.py --prefix=$out
'';

meta = with stdenv.lib; {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -9336,7 +9336,9 @@ with pkgs;

libchop = callPackage ../development/libraries/libchop { };

libclc = callPackage ../development/libraries/libclc { };
libclc = callPackage ../development/libraries/libclc {
inherit (llvmPackages_4) clang llvm;
};

libcli = callPackage ../development/libraries/libcli { };

Expand Down

0 comments on commit 81674e0

Please sign in to comment.