diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-12-12 14:11:17 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-01-03 21:57:15 +0100 |
commit | 973bc2f2aec328798de48f1d8a7659c96cfd1f85 (patch) | |
tree | f3ce739d75869f725f60ade3a88f1c5fbfcf02bd /pkgs/development/tools/clang-tools | |
parent | 31682848cb879610334c6b1c6903c74548d55d35 (diff) |
clang-tools: 5 -> 7
Since this not typically used as build dependencies, just use the latest
and greatest.
Diffstat (limited to 'pkgs/development/tools/clang-tools')
-rw-r--r-- | pkgs/development/tools/clang-tools/default.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/tools/clang-tools/default.nix b/pkgs/development/tools/clang-tools/default.nix index e09da0287c76..2ababe85d0c1 100644 --- a/pkgs/development/tools/clang-tools/default.nix +++ b/pkgs/development/tools/clang-tools/default.nix @@ -1,14 +1,15 @@ -{ stdenv, makeWrapper, writeScript, llvmPackages }: +{ stdenv, writeScript, llvmPackages_latest }: let - clang = llvmPackages.clang-unwrapped; + clang = llvmPackages_latest.clang-unwrapped; version = stdenv.lib.getVersion clang; in stdenv.mkDerivation { name = "clang-tools-${version}"; - builder = writeScript "builder" '' - source $stdenv/setup + unpackPhase = ":"; + installPhase = '' + mkdir -p $out/bin for tool in \ clang-apply-replacements \ clang-check \ @@ -16,11 +17,9 @@ stdenv.mkDerivation { clang-rename \ clang-tidy do - makeWrapper $clang/bin/$tool $out/bin/$tool --argv0 $tool + ln -s ${clang}/bin/$tool $out/bin/$tool done ''; - buildInputs = [ makeWrapper ]; - inherit clang; meta = clang.meta // { description = "Standalone command line tools for C++ development"; maintainers = with stdenv.lib.maintainers; [ aherrmann ]; |