about summary refs log tree commit diff
path: root/pkgs/development/tools/analysis
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-10-10 19:01:42 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-11-13 00:47:48 -0500
commitd7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410 (patch)
tree075aa2008d4bd95a79b8c63827284cc69764c58b /pkgs/development/tools/analysis
parentf72bffb4c4178bf648bffff2a6692684f69551cd (diff)
downloadnixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.tar
nixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.tar.gz
nixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.tar.bz2
nixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.tar.lz
nixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.tar.xz
nixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.tar.zst
nixlib-d7bddc27b23da8ce7bc19cfeeeb0cbebdb5a4410.zip
treewide: Try to avoid depending on binutils directly
One should depend on

 - `stdenv.cc.bintools`: for executables at build time
 - `libbfd` or `libiberty`: for those libraries
 - `targetPackages.cc.bintools`: for exectuables at *run* time
 - `binutils`: only for specifically GNU Binutils's executables, regardless of
   the host platform, at run time.
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r--pkgs/development/tools/analysis/kcov/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/tools/analysis/kcov/default.nix b/pkgs/development/tools/analysis/kcov/default.nix
index c960f54ab204..700e2b2126ca 100644
--- a/pkgs/development/tools/analysis/kcov/default.nix
+++ b/pkgs/development/tools/analysis/kcov/default.nix
@@ -1,4 +1,7 @@
-{stdenv, fetchurl, cmake, pkgconfig, zlib, curl, elfutils, python, libiberty, binutils}:
+{ stdenv
+, fetchurl, cmake, pkgconfig
+, zlib, curl, elfutils, python, libiberty, libopcodes
+}:
 
 stdenv.mkDerivation rec {
   name = "kcov-${version}";
@@ -10,8 +13,9 @@ stdenv.mkDerivation rec {
   };
 
   preConfigure = "patchShebangs src/bin-to-c-source.py";
-  nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ cmake zlib curl elfutils python libiberty binutils ];
+  nativeBuildInputs = [ cmake pkgconfig ];
+
+  buildInputs = [ zlib curl elfutils python libiberty libopcodes ];
 
   meta = with stdenv.lib; {
     description = "Code coverage tester for compiled programs, Python scripts and shell scripts";