1 { lib, stdenv, buildPackages
2 , autoreconfHook, bison, binutils-unwrapped_2_38
3 , libiberty, libbfd_2_38
8 inherit (binutils-unwrapped_2_38) version src;
10 outputs = [ "out" "dev" ];
12 patches = binutils-unwrapped_2_38.patches ++ [
13 ./build-components-separately.patch
16 # We just want to build libopcodes
19 find . ../include/opcode -type f -exec sed {} -i -e 's/"bfd.h"/<bfd.h>/' \;
22 depsBuildBuild = [ buildPackages.stdenv.cc ];
23 nativeBuildInputs = [ autoreconfHook bison ];
24 buildInputs = [ libiberty ];
25 # dis-asm.h includes bfd.h
26 propagatedBuildInputs = [ libbfd_2_38 ];
28 configurePlatforms = [ "build" "host" ];
30 "--enable-targets=all" "--enable-64-bit-bfd"
31 "--enable-install-libbfd"
35 enableParallelBuilding = true;
38 description = "A library from binutils for manipulating machine code";
39 homepage = "https://www.gnu.org/software/binutils/";
40 license = licenses.gpl3Plus;
41 maintainers = with maintainers; [ ericson2314 ];
42 platforms = platforms.unix;