treewide: Depend on stdenv.cc.bintools instead of binutils directly

One should do this when needed executables at build time. It is more
honest and cross-friendly than refering to binutils directly.
This commit is contained in:
John Ericson
2017-10-10 19:01:42 -04:00
parent 5ae8f18f4d
commit 70d91badf5
8 changed files with 19 additions and 12 deletions

View File

@@ -1,5 +1,7 @@
{ fetchgit, pkgconfig, gettext, runCommand, makeWrapper
, elfutils, kernel, gnumake, python2, pythonPackages, binutils }:
, elfutils, kernel, gnumake, python2, pythonPackages
}:
let
## fetchgit info
url = git://sourceware.org/git/systemtap.git;
@@ -55,5 +57,5 @@ in runCommand "systemtap-${kernel.version}-${version}" {
rm $out/bin/stap
makeWrapper $stapBuild/bin/stap $out/bin/stap \
--add-flags "-r $kernelBuildDir" \
--prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc binutils elfutils gnumake ]}
--prefix PATH : ${lib.makeBinPath [ stdenv.cc.cc stdenv.cc.bintools elfutils gnumake ]}
''